Version Description
- fixed jquery.cookie.js issue where in some cases the server would reject it
- added filter for hiding certain column shortcodes from view.
Download this release
Release Info
Developer | tschutter |
Plugin | Column Shortcodes |
Version | 0.6.1 |
Comparing to | |
See all releases |
Code changes from version 0.6 to 0.6.1
- assets/js/{jquery.cookie.js → jquery.ck.js} +0 -0
- column-shortcodes.php +7 -4
- readme.txt +31 -1
assets/js/{jquery.cookie.js → jquery.ck.js}
RENAMED
File without changes
|
column-shortcodes.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/*
|
4 |
Plugin Name: Column Shortcodes
|
5 |
-
Version: 0.6
|
6 |
Description: Adds shortcodes to easily create columns in your posts or pages
|
7 |
Author: Codepress
|
8 |
Author URI: http://www.codepress.nl
|
@@ -96,7 +96,7 @@ class Codepress_Column_Shortcodes {
|
|
96 |
public function admin_scripts( $plugins ) {
|
97 |
if ( $this->has_permissions() && $this->is_edit_screen() ) {
|
98 |
wp_enqueue_script( 'cpsh-admin', CPSH_URL . '/assets/js/admin.js', array( 'jquery' ), CPSH_VERSION );
|
99 |
-
wp_enqueue_script( 'jquery-cookie', CPSH_URL . '/assets/js/jquery.
|
100 |
}
|
101 |
|
102 |
return $plugins;
|
@@ -331,7 +331,7 @@ class Codepress_Column_Shortcodes {
|
|
331 |
return $shortcodes;
|
332 |
|
333 |
// define column shortcodes
|
334 |
-
$column_shortcodes = array(
|
335 |
'full_width' => array ('display_name' => __('full width', CPSH_TEXTDOMAIN) ),
|
336 |
'one_half' => array ('display_name' => __('one half', CPSH_TEXTDOMAIN) ),
|
337 |
'one_third' => array ('display_name' => __('one third', CPSH_TEXTDOMAIN) ),
|
@@ -343,7 +343,10 @@ class Codepress_Column_Shortcodes {
|
|
343 |
'three_fifth' => array ('display_name' => __('three fifth', CPSH_TEXTDOMAIN) ),
|
344 |
'four_fifth' => array ('display_name' => __('four fifth', CPSH_TEXTDOMAIN) ),
|
345 |
'one_sixth' => array ('display_name' => __('one sixth', CPSH_TEXTDOMAIN) )
|
346 |
-
);
|
|
|
|
|
|
|
347 |
|
348 |
foreach ( $column_shortcodes as $short => $options ) {
|
349 |
|
2 |
|
3 |
/*
|
4 |
Plugin Name: Column Shortcodes
|
5 |
+
Version: 0.6.1
|
6 |
Description: Adds shortcodes to easily create columns in your posts or pages
|
7 |
Author: Codepress
|
8 |
Author URI: http://www.codepress.nl
|
96 |
public function admin_scripts( $plugins ) {
|
97 |
if ( $this->has_permissions() && $this->is_edit_screen() ) {
|
98 |
wp_enqueue_script( 'cpsh-admin', CPSH_URL . '/assets/js/admin.js', array( 'jquery' ), CPSH_VERSION );
|
99 |
+
wp_enqueue_script( 'jquery-cookie', CPSH_URL . '/assets/js/jquery.ck.js', array( 'jquery' ), CPSH_VERSION );
|
100 |
}
|
101 |
|
102 |
return $plugins;
|
331 |
return $shortcodes;
|
332 |
|
333 |
// define column shortcodes
|
334 |
+
$column_shortcodes = apply_filters( 'cpsh_column_shortcodes', array(
|
335 |
'full_width' => array ('display_name' => __('full width', CPSH_TEXTDOMAIN) ),
|
336 |
'one_half' => array ('display_name' => __('one half', CPSH_TEXTDOMAIN) ),
|
337 |
'one_third' => array ('display_name' => __('one third', CPSH_TEXTDOMAIN) ),
|
343 |
'three_fifth' => array ('display_name' => __('three fifth', CPSH_TEXTDOMAIN) ),
|
344 |
'four_fifth' => array ('display_name' => __('four fifth', CPSH_TEXTDOMAIN) ),
|
345 |
'one_sixth' => array ('display_name' => __('one sixth', CPSH_TEXTDOMAIN) )
|
346 |
+
));
|
347 |
+
|
348 |
+
if ( ! $column_shortcodes )
|
349 |
+
return array();
|
350 |
|
351 |
foreach ( $column_shortcodes as $short => $options ) {
|
352 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: columns, column, shortcodes, shortcode, divider, layout, posts, editor, wp-admin, admin, codepress, wordpress
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.5
|
7 |
-
Stable tag: 0.6
|
8 |
|
9 |
Adds shortcodes to easily create columns in your posts or pages.
|
10 |
|
@@ -116,6 +116,32 @@ In patch 0.6 we added padding settings (optional) to the plugin. If you would li
|
|
116 |
add_filter( 'cpsh_hide_padding_settings', '__return_true' );
|
117 |
`
|
118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
= How can I replace the default Shortcode CSS stylesheet? =
|
120 |
|
121 |
You can easily overwrite the existing stylesheet. For example you would like to add a margin between your columns, you just place the following in your theme's style.css:
|
@@ -221,6 +247,10 @@ You will find a .po file in the languages folder which you can use. You can send
|
|
221 |
|
222 |
== Changelog ==
|
223 |
|
|
|
|
|
|
|
|
|
224 |
= 0.6 =
|
225 |
* added Danish translation ( thanks to Mads Rosendahl )
|
226 |
* added full width column
|
4 |
Tags: columns, column, shortcodes, shortcode, divider, layout, posts, editor, wp-admin, admin, codepress, wordpress
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 0.6.1
|
8 |
|
9 |
Adds shortcodes to easily create columns in your posts or pages.
|
10 |
|
116 |
add_filter( 'cpsh_hide_padding_settings', '__return_true' );
|
117 |
`
|
118 |
|
119 |
+
= How can I hide certain Column Shortcodes from the menu? =
|
120 |
+
|
121 |
+
If you would like to hide certain column from the menu; place the following in your functions.php
|
122 |
+
|
123 |
+
`
|
124 |
+
function hide_column_shortcodes( $shortcodes ) {
|
125 |
+
|
126 |
+
/* uncommented ( remove the '//' ) any of the following to renove its shortcode from menu */
|
127 |
+
|
128 |
+
// unset( $shortcodes['full_width'] );
|
129 |
+
// unset( $shortcodes['one_half'] );
|
130 |
+
// unset( $shortcodes['one_third'] );
|
131 |
+
// unset( $shortcodes['one_fourth'] );
|
132 |
+
// unset( $shortcodes['two_third'] );
|
133 |
+
// unset( $shortcodes['three_fourth'] );
|
134 |
+
// unset( $shortcodes['one_fifth'] );
|
135 |
+
// unset( $shortcodes['two_fifth'] );
|
136 |
+
// unset( $shortcodes['three_fifth'] );
|
137 |
+
// unset( $shortcodes['four_fifth'] );
|
138 |
+
// unset( $shortcodes['one_sixth'] );
|
139 |
+
|
140 |
+
return $shortcodes;
|
141 |
+
}
|
142 |
+
add_filter( 'cpsh_column_shortcodes', 'hide_column_shortcodes' );
|
143 |
+
`
|
144 |
+
|
145 |
= How can I replace the default Shortcode CSS stylesheet? =
|
146 |
|
147 |
You can easily overwrite the existing stylesheet. For example you would like to add a margin between your columns, you just place the following in your theme's style.css:
|
247 |
|
248 |
== Changelog ==
|
249 |
|
250 |
+
= 0.6.1 =
|
251 |
+
* fixed jquery.cookie.js issue where in some cases the server would reject it
|
252 |
+
* added filter for hiding certain column shortcodes from view.
|
253 |
+
|
254 |
= 0.6 =
|
255 |
* added Danish translation ( thanks to Mads Rosendahl )
|
256 |
* added full width column
|