WordPress.org

Plugin Directory

Changeset 610370


Ignore:
Timestamp:
10/10/12 13:57:54 (19 months ago)
Author:
greenshady
Message:

Version 0.1.1 update.

Location:
grid-columns
Files:
9 added
4 edited

Legend:

Unmodified
Added
Removed
  • grid-columns/trunk/css/columns.css

    r607491 r610370  
    22 * CSS for handling the [column] shortcode styles. 
    33 * 
    4  * @version   20120917 
     4 * @version   20121007 
    55 * @author    Justin Tadlock <justin@justintadlock.com> 
    66 * @copyright Copyright (c) 2012, Justin Tadlock 
     
    1919    visibility: hidden; 
    2020    } 
    21 .column { 
     21.column-grid .column { 
    2222    float: left; 
    2323    margin-right: 5%; 
     24    margin-left: 0; 
    2425    } 
    25 .column-first { 
     26.column-grid .column-first { 
     27    margin-left: 0; 
    2628    } 
    27 .column-last { 
     29.column-grid .column-last { 
    2830    float: right; 
    2931    margin-right: 0; 
     32    margin-left: 0; 
    3033    } 
    3134 
  • grid-columns/trunk/css/columns.min.css

    r607491 r610370  
    1 .column-grid{clear:both}.column-grid:after{content:".";display:block;height:0;clear:both;visibility:hidden}.column{float:left;margin-right:5%}.column-first{}.column-last{float:right;margin-right:0}.column-grid-2 .column-span-2{width:100%}.column-grid-2 .column-span-1{width:47.5%}.column-grid-2 .column-push-1{margin-left:52.5%}.column-grid-3 .column-span-3{width:100%}.column-grid-3 .column-span-2{width:65%}.column-grid-3 .column-span-1{width:30%}.column-grid-3 .column-push-2{margin-left:70%}.column-grid-3 .column-push-1{margin-left:35%}.column-grid-4 .column-span-4{width:100%}.column-grid-4 .column-span-3{width:73.75%}.column-grid-4 .column-span-2{width:47.5%}.column-grid-4 .column-span-1{width:21.25%}.column-grid-4 .column-push-3{margin-left:78.75%}.column-grid-4 .column-push-2{margin-left:52.5%}.column-grid-4 .column-push-1{margin-left:26.25%}.column-grid-5 .column-span-5{width:100%}.column-grid-5 .column-span-4{width:79%}.column-grid-5 .column-span-3{width:58%}.column-grid-5 .column-span-2{width:37%}.column-grid-5 .column-span-1{width:16%}.column-grid-5 .column-push-4{margin-left:84%}.column-grid-5 .column-push-3{margin-left:63%}.column-grid-5 .column-push-2{margin-left:42%}.column-grid-5 .column-push-1{margin-left:21%}.column-grid-12 .column-span-12{width:100%}.column-grid-12 .column-span-11{width:91.25%}.column-grid-12 .column-span-10{width:82.5%}.column-grid-12 .column-span-9 {width:73.75%}.column-grid-12 .column-span-8 {width:65%}.column-grid-12 .column-span-7 {width:56.25%}.column-grid-12 .column-span-6 {width:47.5%}.column-grid-12 .column-span-5 {width:38.75%}.column-grid-12 .column-span-4 {width:30%}.column-grid-12 .column-span-3 {width:21.25%}.column-grid-12 .column-span-2 {width:12.5%}.column-grid-12 .column-span-1 {width:3.75%}.column-grid-12 .column-push-11{margin-left:96.25%}.column-grid-12 .column-push-10{margin-left:87.5%}.column-grid-12 .column-push-9 {margin-left:78.75%}.column-grid-12 .column-push-8 {margin-left:69%}.column-grid-12 .column-push-7 {margin-left:61.25%}.column-grid-12 .column-push-6 {margin-left:52.5%}.column-grid-12 .column-push-5 {margin-left:43.75%}.column-grid-12 .column-push-4 {margin-left:35%}.column-grid-12 .column-push-3 {margin-left:26.25%}.column-grid-12 .column-push-2 {margin-left:17.5%}.column-grid-12 .column-push-1 {margin-left:8.75%} 
     1.column-grid{clear:both}.column-grid:after{content:".";display:block;height:0;clear:both;visibility:hidden}.column-grid .column{float:left;margin-right:5%;margin-left:0}.column-grid .column-first{margin-left:0}.column-grid .column-last{float:right;margin-right:0;margin-left:0}.column-grid-2 .column-span-2{width:100%}.column-grid-2 .column-span-1{width:47.5%}.column-grid-2 .column-push-1{margin-left:52.5%}.column-grid-3 .column-span-3{width:100%}.column-grid-3 .column-span-2{width:65%}.column-grid-3 .column-span-1{width:30%}.column-grid-3 .column-push-2{margin-left:70%}.column-grid-3 .column-push-1{margin-left:35%}.column-grid-4 .column-span-4{width:100%}.column-grid-4 .column-span-3{width:73.75%}.column-grid-4 .column-span-2{width:47.5%}.column-grid-4 .column-span-1{width:21.25%}.column-grid-4 .column-push-3{margin-left:78.75%}.column-grid-4 .column-push-2{margin-left:52.5%}.column-grid-4 .column-push-1{margin-left:26.25%}.column-grid-5 .column-span-5{width:100%}.column-grid-5 .column-span-4{width:79%}.column-grid-5 .column-span-3{width:58%}.column-grid-5 .column-span-2{width:37%}.column-grid-5 .column-span-1{width:16%}.column-grid-5 .column-push-4{margin-left:84%}.column-grid-5 .column-push-3{margin-left:63%}.column-grid-5 .column-push-2{margin-left:42%}.column-grid-5 .column-push-1{margin-left:21%}.column-grid-12 .column-span-12{width:100%}.column-grid-12 .column-span-11{width:91.25%}.column-grid-12 .column-span-10{width:82.5%}.column-grid-12 .column-span-9 {width:73.75%}.column-grid-12 .column-span-8 {width:65%}.column-grid-12 .column-span-7 {width:56.25%}.column-grid-12 .column-span-6 {width:47.5%}.column-grid-12 .column-span-5 {width:38.75%}.column-grid-12 .column-span-4 {width:30%}.column-grid-12 .column-span-3 {width:21.25%}.column-grid-12 .column-span-2 {width:12.5%}.column-grid-12 .column-span-1 {width:3.75%}.column-grid-12 .column-push-11{margin-left:96.25%}.column-grid-12 .column-push-10{margin-left:87.5%}.column-grid-12 .column-push-9 {margin-left:78.75%}.column-grid-12 .column-push-8 {margin-left:69%}.column-grid-12 .column-push-7 {margin-left:61.25%}.column-grid-12 .column-push-6 {margin-left:52.5%}.column-grid-12 .column-push-5 {margin-left:43.75%}.column-grid-12 .column-push-4 {margin-left:35%}.column-grid-12 .column-push-3 {margin-left:26.25%}.column-grid-12 .column-push-2 {margin-left:17.5%}.column-grid-12 .column-push-1 {margin-left:8.75%} 
  • grid-columns/trunk/grid-columns.php

    r607491 r610370  
    44 * Plugin URI: http://themehybrid.com/plugins/grid-columns 
    55 * Description: A [column] shortcode plugin. 
    6  * Version: 0.1 
     6 * Version: 0.1.1 
    77 * Author: Justin Tadlock 
    88 * Author URI: http://justintadlock.com 
     
    2424 * 
    2525 * @package   GridColumns 
    26  * @version   0.1.0 
     26 * @version   0.1.1 
    2727 * @author    Justin Tadlock <justin@justintadlock.com> 
    2828 * @copyright Copyright (c) 2012, Justin Tadlock 
     
    9292        /* Enqueue stylesheets on 'wp_enqueue_scripts'. */ 
    9393        add_action( 'wp_enqueue_scripts', array( &$this, 'enqueue_styles' ), 1 ); 
     94 
     95        /* Apply filters to the column content. */ 
     96        add_filter( 'gc_column_content', 'wpautop' ); 
     97        add_filter( 'gc_column_content', 'shortcode_unautop' ); 
     98        add_filter( 'gc_column_content', 'do_shortcode' ); 
    9499    } 
    95100 
     
    122127            trailingslashit( plugin_dir_url( __FILE__ ) ) . "css/columns$suffix.css", 
    123128            null, 
    124             '20120917' 
     129            '20121007' 
    125130        ); 
    126131    } 
     
    232237 
    233238        /* Add the current column to the output. */ 
    234         $output .= '<div class="' . $column_class . '">' . wpautop( do_shortcode( $content ) ) . '</div>'; 
     239        $output .= '<div class="' . $column_class . '">' . apply_filters( 'gc_column_content', $content ) . '</div>'; 
    235240 
    236241        /* If this is the last column. */ 
  • grid-columns/trunk/readme.txt

    r607491 r610370  
    66Tested up to: 3.5 
    77License: GPLv2 or later 
    8 Stable tag: 0.1 
     8Stable tag: 0.1.1 
    99 
    1010A [column] shortcode that allows users to create columnized content. 
     
    6262== Changelog == 
    6363 
     64**Version 0.1.1** 
     65 
     66* Add more specific prefixes in the CSS. 
     67* Add some better margin handling in case other CSS code is overwriting things willy-nilly. 
     68* Add the `gc_column_content` filter hook and use it to apply formatting. 
     69 
    6470**Version 0.1** 
    6571 
Note: See TracChangeset for help on using the changeset viewer.