Version Description
- added french and spanish language ( thanks to Mikel Aralar )
- improved script loading
- shortcodes HTML-view buttons hidden by default. Enable them by adding this to your functions.php:
add_filter('add_shortcode_html_buttons', '__return_true' );
Download this release
Release Info
Developer | tschutter |
Plugin | Column Shortcodes |
Version | 0.2 |
Comparing to | |
See all releases |
Code changes from version 0.1 to 0.2
- assets/css/admin.css +1 -1
- column-shortcodes.php +20 -14
- languages/column-shortcodes-es_ES.mo +0 -0
- languages/column-shortcodes-es_ES.po +64 -0
- languages/column-shortcodes-fr_FR.mo +0 -0
- languages/column-shortcodes-fr_FR.po +64 -0
- languages/column-shortcodes-nl_NL.po +69 -17
- readme.txt +61 -12
- screenshot-1.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
assets/css/admin.css
CHANGED
@@ -25,7 +25,7 @@
|
|
25 |
height: 20px;
|
26 |
line-height: 20px;
|
27 |
padding-left: 94px;
|
28 |
-
width: 130px;
|
29 |
text-decoration: none;
|
30 |
background: transparent url(../images/columns.png) no-repeat 0 6px;
|
31 |
}
|
25 |
height: 20px;
|
26 |
line-height: 20px;
|
27 |
padding-left: 94px;
|
28 |
+
min-width: 130px;
|
29 |
text-decoration: none;
|
30 |
background: transparent url(../images/columns.png) no-repeat 0 6px;
|
31 |
}
|
column-shortcodes.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Column Shortcodes
|
4 |
-
Version: 0.
|
5 |
Description: Adds shortcodes to easily create columns in your posts or pages
|
6 |
Author: Codepress
|
7 |
Author URI: http://www.codepress.nl
|
@@ -63,11 +63,13 @@ class Codepress_Column_Shortcodes
|
|
63 |
add_action('admin_init', array( $this, 'add_editor_buttons' ) );
|
64 |
add_action( 'admin_footer', array( $this, 'popup' ) );
|
65 |
|
66 |
-
// styling
|
67 |
-
add_action( 'admin_print_styles', array( $this, 'admin_styles') );
|
68 |
-
add_action( 'admin_print_scripts', array( $this, 'admin_scripts') );
|
69 |
add_action( 'wp_enqueue_scripts', array( $this, 'frontend_styles') );
|
70 |
|
|
|
|
|
|
|
71 |
// translations
|
72 |
load_plugin_textdomain( CPSH_TEXTDOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
73 |
}
|
@@ -87,9 +89,11 @@ class Codepress_Column_Shortcodes
|
|
87 |
*
|
88 |
* @since 0.1
|
89 |
*/
|
90 |
-
public function admin_scripts()
|
91 |
-
{
|
92 |
wp_enqueue_script( 'cpsh-admin', CPSH_URL.'/assets/js/admin.js', array('jquery'), CPSH_VERSION );
|
|
|
|
|
93 |
}
|
94 |
|
95 |
/**
|
@@ -151,16 +155,18 @@ class Codepress_Column_Shortcodes
|
|
151 |
*/
|
152 |
function add_editor_buttons()
|
153 |
{
|
154 |
-
|
155 |
-
|
|
|
156 |
|
157 |
-
|
|
|
158 |
add_action( 'admin_head', array( $this, 'add_html_buttons' ) );
|
159 |
-
|
160 |
-
// add shortcode button
|
161 |
-
add_action( 'media_buttons', array( $this, 'add_shortcode_button' ), 100 );
|
162 |
}
|
163 |
-
|
|
|
|
|
|
|
164 |
}
|
165 |
|
166 |
/**
|
@@ -269,7 +275,7 @@ class Codepress_Column_Shortcodes
|
|
269 |
* @since 0.1
|
270 |
*/
|
271 |
function add_html_buttons()
|
272 |
-
{
|
273 |
wp_print_scripts( 'quicktags' );
|
274 |
|
275 |
$shortcodes = $this->get_shortcodes();
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Column Shortcodes
|
4 |
+
Version: 0.2
|
5 |
Description: Adds shortcodes to easily create columns in your posts or pages
|
6 |
Author: Codepress
|
7 |
Author URI: http://www.codepress.nl
|
63 |
add_action('admin_init', array( $this, 'add_editor_buttons' ) );
|
64 |
add_action( 'admin_footer', array( $this, 'popup' ) );
|
65 |
|
66 |
+
// styling
|
67 |
+
add_action( 'admin_print_styles', array( $this, 'admin_styles') );
|
|
|
68 |
add_action( 'wp_enqueue_scripts', array( $this, 'frontend_styles') );
|
69 |
|
70 |
+
// scripts, only load when editor is available
|
71 |
+
add_action( 'tiny_mce_plugins', array( $this, 'admin_scripts') );
|
72 |
+
|
73 |
// translations
|
74 |
load_plugin_textdomain( CPSH_TEXTDOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
75 |
}
|
89 |
*
|
90 |
* @since 0.1
|
91 |
*/
|
92 |
+
public function admin_scripts( $plugins )
|
93 |
+
{
|
94 |
wp_enqueue_script( 'cpsh-admin', CPSH_URL.'/assets/js/admin.js', array('jquery'), CPSH_VERSION );
|
95 |
+
|
96 |
+
return $plugins;
|
97 |
}
|
98 |
|
99 |
/**
|
155 |
*/
|
156 |
function add_editor_buttons()
|
157 |
{
|
158 |
+
global $pagenow;
|
159 |
+
|
160 |
+
if ( current_user_can( 'edit_posts' ) && current_user_can( 'edit_pages' ) && in_array($pagenow, array('post-new.php', 'page-new.php', 'post.php', 'page.php', 'profile.php', 'user-edit.php', 'user-new.php') ) ) {
|
161 |
|
162 |
+
// add html buttons, when using this filter
|
163 |
+
if( apply_filters('add_shortcode_html_buttons', false ) ) {
|
164 |
add_action( 'admin_head', array( $this, 'add_html_buttons' ) );
|
|
|
|
|
|
|
165 |
}
|
166 |
+
|
167 |
+
// add shortcode button
|
168 |
+
add_action( 'media_buttons', array( $this, 'add_shortcode_button' ), 100 );
|
169 |
+
}
|
170 |
}
|
171 |
|
172 |
/**
|
275 |
* @since 0.1
|
276 |
*/
|
277 |
function add_html_buttons()
|
278 |
+
{
|
279 |
wp_print_scripts( 'quicktags' );
|
280 |
|
281 |
$shortcodes = $this->get_shortcodes();
|
languages/column-shortcodes-es_ES.mo
ADDED
Binary file
|
languages/column-shortcodes-es_ES.po
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Column Shortcodes\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-07-20 15:46+0100\n"
|
6 |
+
"PO-Revision-Date: 2012-08-28 08:24+0100\n"
|
7 |
+
"Last-Translator: Codepress <info@codepress.nl>\n"
|
8 |
+
"Language-Team: Codepress <info@codepress.nl>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
"X-Poedit-SearchPath-0: .\n"
|
16 |
+
"X-Poedit-SearchPath-1: ..\n"
|
17 |
+
|
18 |
+
#: ../column-shortcodes.php:174
|
19 |
+
msgid "Select shortcode"
|
20 |
+
msgstr "Seleccione códigos abreviados"
|
21 |
+
|
22 |
+
#: ../column-shortcodes.php:208
|
23 |
+
msgid "Column shortcodes"
|
24 |
+
msgstr "Códigos disponibles"
|
25 |
+
|
26 |
+
#: ../column-shortcodes.php:231
|
27 |
+
msgid "one half"
|
28 |
+
msgstr "la mitad"
|
29 |
+
|
30 |
+
#: ../column-shortcodes.php:232
|
31 |
+
msgid "one third"
|
32 |
+
msgstr "un tercio"
|
33 |
+
|
34 |
+
#: ../column-shortcodes.php:233
|
35 |
+
msgid "one fourth"
|
36 |
+
msgstr "un cuarto"
|
37 |
+
|
38 |
+
#: ../column-shortcodes.php:234
|
39 |
+
msgid "two third"
|
40 |
+
msgstr "dos tercios"
|
41 |
+
|
42 |
+
#: ../column-shortcodes.php:235
|
43 |
+
msgid "three fourth"
|
44 |
+
msgstr "tres cuartos"
|
45 |
+
|
46 |
+
#: ../column-shortcodes.php:236
|
47 |
+
msgid "one fifth"
|
48 |
+
msgstr "un quinto"
|
49 |
+
|
50 |
+
#: ../column-shortcodes.php:237
|
51 |
+
msgid "two fifth"
|
52 |
+
msgstr "dos quintos"
|
53 |
+
|
54 |
+
#: ../column-shortcodes.php:238
|
55 |
+
msgid "three fifth"
|
56 |
+
msgstr "tres quintos"
|
57 |
+
|
58 |
+
#: ../column-shortcodes.php:239
|
59 |
+
msgid "one sixth"
|
60 |
+
msgstr "un sexto"
|
61 |
+
|
62 |
+
#: ../column-shortcodes.php:255
|
63 |
+
msgid "last"
|
64 |
+
msgstr "final"
|
languages/column-shortcodes-fr_FR.mo
ADDED
Binary file
|
languages/column-shortcodes-fr_FR.po
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Column Shortcodes\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-08-27 16:24+0100\n"
|
6 |
+
"PO-Revision-Date: 2012-08-28 08:24+0100\n"
|
7 |
+
"Last-Translator: Codepress <info@codepress.nl>\n"
|
8 |
+
"Language-Team: Codepress <info@codepress.nl>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
"X-Poedit-SearchPath-0: .\n"
|
16 |
+
"X-Poedit-SearchPath-1: ..\n"
|
17 |
+
|
18 |
+
#: ../column-shortcodes.php:174
|
19 |
+
msgid "Select shortcode"
|
20 |
+
msgstr "Choisissez votre code abrégé"
|
21 |
+
|
22 |
+
#: ../column-shortcodes.php:208
|
23 |
+
msgid "Column shortcodes"
|
24 |
+
msgstr "Codes abrégés de colonnes"
|
25 |
+
|
26 |
+
#: ../column-shortcodes.php:231
|
27 |
+
msgid "one half"
|
28 |
+
msgstr "la moitié"
|
29 |
+
|
30 |
+
#: ../column-shortcodes.php:232
|
31 |
+
msgid "one third"
|
32 |
+
msgstr "un tiers"
|
33 |
+
|
34 |
+
#: ../column-shortcodes.php:233
|
35 |
+
msgid "one fourth"
|
36 |
+
msgstr "un quart"
|
37 |
+
|
38 |
+
#: ../column-shortcodes.php:234
|
39 |
+
msgid "two third"
|
40 |
+
msgstr "deux tiers"
|
41 |
+
|
42 |
+
#: ../column-shortcodes.php:235
|
43 |
+
msgid "three fourth"
|
44 |
+
msgstr "trois quarts"
|
45 |
+
|
46 |
+
#: ../column-shortcodes.php:236
|
47 |
+
msgid "one fifth"
|
48 |
+
msgstr "un cinquième"
|
49 |
+
|
50 |
+
#: ../column-shortcodes.php:237
|
51 |
+
msgid "two fifth"
|
52 |
+
msgstr "deux cinquièmes"
|
53 |
+
|
54 |
+
#: ../column-shortcodes.php:238
|
55 |
+
msgid "three fifth"
|
56 |
+
msgstr "trois cinquièmes"
|
57 |
+
|
58 |
+
#: ../column-shortcodes.php:239
|
59 |
+
msgid "one sixth"
|
60 |
+
msgstr "un sixième"
|
61 |
+
|
62 |
+
#: ../column-shortcodes.php:255
|
63 |
+
msgid "last"
|
64 |
+
msgstr "final"
|
languages/column-shortcodes-nl_NL.po
CHANGED
@@ -1,65 +1,117 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Column Shortcodes\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2012-07-20 15:46+0100\n"
|
6 |
-
"PO-Revision-Date: 2012-
|
7 |
"Last-Translator: Codepress <info@codepress.nl>\n"
|
8 |
"Language-Team: Codepress <info@codepress.nl>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"
|
13 |
-
"X-Poedit-
|
|
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
|
|
|
|
|
|
15 |
"X-Poedit-SearchPath-0: .\n"
|
16 |
-
"X-
|
17 |
|
18 |
-
#:
|
|
|
19 |
msgid "Select shortcode"
|
20 |
msgstr "Selecteer shortcode "
|
21 |
|
22 |
-
#:
|
|
|
23 |
msgid "Column shortcodes"
|
24 |
msgstr "Kolom shortcodes"
|
25 |
|
26 |
-
#:
|
|
|
27 |
msgid "one half"
|
28 |
msgstr "half"
|
29 |
|
30 |
-
#:
|
|
|
31 |
msgid "one third"
|
32 |
msgstr "een derde"
|
33 |
|
34 |
-
#:
|
|
|
35 |
msgid "one fourth"
|
36 |
msgstr "een vierde"
|
37 |
|
38 |
-
#:
|
|
|
39 |
msgid "two third"
|
40 |
msgstr "tweederde"
|
41 |
|
42 |
-
#:
|
|
|
43 |
msgid "three fourth"
|
44 |
msgstr "drie vierde"
|
45 |
|
46 |
-
#:
|
|
|
47 |
msgid "one fifth"
|
48 |
msgstr "een vijfde"
|
49 |
|
50 |
-
#:
|
|
|
51 |
msgid "two fifth"
|
52 |
msgstr "twee vijfde"
|
53 |
|
54 |
-
#:
|
|
|
55 |
msgid "three fifth"
|
56 |
msgstr "drie vijfde"
|
57 |
|
58 |
-
#:
|
|
|
59 |
msgid "one sixth"
|
60 |
msgstr "een zesde"
|
61 |
|
62 |
-
#:
|
|
|
63 |
msgid "last"
|
64 |
msgstr "laatste"
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Column Shortcodes v0.1\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2012-07-20 15:46+0100\n"
|
6 |
+
"PO-Revision-Date: 2012-08-14 10:03:31+0000\n"
|
7 |
"Last-Translator: Codepress <info@codepress.nl>\n"
|
8 |
"Language-Team: Codepress <info@codepress.nl>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
+
"X-Poedit-Language: \n"
|
14 |
+
"X-Poedit-Country: \n"
|
15 |
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
+
"X-Poedit-Basepath: .\n"
|
18 |
+
"X-Poedit-Bookmarks: \n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
"X-Textdomain-Support: yes"
|
21 |
|
22 |
+
#: column-shortcodes.php:174
|
23 |
+
#@ column-shortcodes
|
24 |
msgid "Select shortcode"
|
25 |
msgstr "Selecteer shortcode "
|
26 |
|
27 |
+
#: column-shortcodes.php:208
|
28 |
+
#@ column-shortcodes
|
29 |
msgid "Column shortcodes"
|
30 |
msgstr "Kolom shortcodes"
|
31 |
|
32 |
+
#: column-shortcodes.php:231
|
33 |
+
#@ column-shortcodes
|
34 |
msgid "one half"
|
35 |
msgstr "half"
|
36 |
|
37 |
+
#: column-shortcodes.php:232
|
38 |
+
#@ column-shortcodes
|
39 |
msgid "one third"
|
40 |
msgstr "een derde"
|
41 |
|
42 |
+
#: column-shortcodes.php:233
|
43 |
+
#@ column-shortcodes
|
44 |
msgid "one fourth"
|
45 |
msgstr "een vierde"
|
46 |
|
47 |
+
#: column-shortcodes.php:234
|
48 |
+
#@ column-shortcodes
|
49 |
msgid "two third"
|
50 |
msgstr "tweederde"
|
51 |
|
52 |
+
#: column-shortcodes.php:235
|
53 |
+
#@ column-shortcodes
|
54 |
msgid "three fourth"
|
55 |
msgstr "drie vierde"
|
56 |
|
57 |
+
#: column-shortcodes.php:236
|
58 |
+
#@ column-shortcodes
|
59 |
msgid "one fifth"
|
60 |
msgstr "een vijfde"
|
61 |
|
62 |
+
#: column-shortcodes.php:237
|
63 |
+
#@ column-shortcodes
|
64 |
msgid "two fifth"
|
65 |
msgstr "twee vijfde"
|
66 |
|
67 |
+
#: column-shortcodes.php:238
|
68 |
+
#@ column-shortcodes
|
69 |
msgid "three fifth"
|
70 |
msgstr "drie vijfde"
|
71 |
|
72 |
+
#: column-shortcodes.php:239
|
73 |
+
#@ column-shortcodes
|
74 |
msgid "one sixth"
|
75 |
msgstr "een zesde"
|
76 |
|
77 |
+
#: column-shortcodes.php:255
|
78 |
+
#@ column-shortcodes
|
79 |
msgid "last"
|
80 |
msgstr "laatste"
|
81 |
|
82 |
+
#. translators: plugin header field 'Name'
|
83 |
+
#: column-shortcodes.php:0
|
84 |
+
#@ column-shortcodes
|
85 |
+
msgid "Column Shortcodes"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#. translators: plugin header field 'PluginURI'
|
89 |
+
#: column-shortcodes.php:0
|
90 |
+
#@ column-shortcodes
|
91 |
+
msgid "http://www.codepress.nl/plugins/"
|
92 |
+
msgstr ""
|
93 |
+
|
94 |
+
#. translators: plugin header field 'Description'
|
95 |
+
#: column-shortcodes.php:0
|
96 |
+
#@ column-shortcodes
|
97 |
+
msgid "Adds shortcodes to easily create columns in your posts or pages"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#. translators: plugin header field 'Author'
|
101 |
+
#: column-shortcodes.php:0
|
102 |
+
#@ column-shortcodes
|
103 |
+
msgid "Codepress"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#. translators: plugin header field 'AuthorURI'
|
107 |
+
#: column-shortcodes.php:0
|
108 |
+
#@ column-shortcodes
|
109 |
+
msgid "http://www.codepress.nl"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#. translators: plugin header field 'Version'
|
113 |
+
#: column-shortcodes.php:0
|
114 |
+
#@ column-shortcodes
|
115 |
+
msgid "0.1"
|
116 |
+
msgstr ""
|
117 |
+
|
readme.txt
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
=== Column Shortcodes ===
|
2 |
-
Contributors: tschutter
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZDZRSYLQ4Z76J
|
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.4
|
7 |
-
Stable tag: 0.
|
|
|
|
|
8 |
|
9 |
== Description ==
|
10 |
|
@@ -34,31 +36,62 @@ A preset stylesheet is included, which you can also overwrite to you liking in y
|
|
34 |
|
35 |
1. Upload column-shortcodes to the /wp-content/plugins/ directory
|
36 |
2. Activate Column Shortcodes through the 'Plugins' menu in WordPress
|
37 |
-
3. A shortcode icon is added to the
|
|
|
38 |
|
39 |
== Frequently Asked Questions ==
|
40 |
|
41 |
-
=
|
42 |
|
43 |
-
|
|
|
|
|
|
|
|
|
44 |
|
45 |
`
|
46 |
[one_half][/one_half]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
`
|
48 |
|
49 |
-
|
|
|
|
|
50 |
|
51 |
`
|
52 |
-
|
53 |
`
|
54 |
|
55 |
-
= Will you be adding more shortcodes? =
|
56 |
|
57 |
-
|
58 |
|
59 |
-
|
60 |
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
= How can I replace the default Shortcode CSS stylesheet? =
|
64 |
|
@@ -103,14 +136,30 @@ You can easily overwrite the existing stylesheet. For example you would like to
|
|
103 |
}
|
104 |
`
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
== Screenshots ==
|
107 |
|
108 |
1. Editor with shortcode icon
|
109 |
2. Shortcode popup with shortcode selector
|
110 |
-
3.
|
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
= 0.1 =
|
115 |
|
116 |
* Initial release.
|
1 |
=== Column Shortcodes ===
|
2 |
+
Contributors: codepress, tschutter, davidmosterd
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZDZRSYLQ4Z76J
|
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.4
|
7 |
+
Stable tag: 0.2
|
8 |
+
|
9 |
+
Adds shortcodes to easily create columns in your posts or pages.
|
10 |
|
11 |
== Description ==
|
12 |
|
36 |
|
37 |
1. Upload column-shortcodes to the /wp-content/plugins/ directory
|
38 |
2. Activate Column Shortcodes through the 'Plugins' menu in WordPress
|
39 |
+
3. A shortcode icon is added to the top of the WYSIWYG editor.
|
40 |
+
4. Click the added icon and it will open a popup window from which you can pick your column shortcode.
|
41 |
|
42 |
== Frequently Asked Questions ==
|
43 |
|
44 |
+
= How do I add a column shortcode? =
|
45 |
|
46 |
+
**Standard**
|
47 |
+
The easiest way is to use the added icon on the top of your editor ( right next to the media icon ). This will open a popup window from which you can select a column icon by clicking on one of the shortcodes.
|
48 |
+
|
49 |
+
**Manual**
|
50 |
+
You could also type in the shortcode yourself inside the editor. The following shortcodes are available:
|
51 |
|
52 |
`
|
53 |
[one_half][/one_half]
|
54 |
+
[one_half_last][/one_half_last]
|
55 |
+
[one_third][/one_third]
|
56 |
+
[one_third_last][/one_third_last]
|
57 |
+
[two_third][/two_third]
|
58 |
+
[two_third_last][/two_third_last]
|
59 |
+
[one_fourth][/one_fourth]
|
60 |
+
[one_fourth_last][/one_fourth_last]
|
61 |
+
[three_fourth][/three_fourth]
|
62 |
+
[three_fourth_last][/three_fourth_last]
|
63 |
+
[one_fifth][/one_fifth]
|
64 |
+
[one_fifth_last][/one_fifth_last]
|
65 |
+
[two_fifth][/two_fifth]
|
66 |
+
[two_fifth_last][/two_fifth_last]
|
67 |
+
[three_fifth][/three_fifth]
|
68 |
+
[three_fifth_last][/three_fifth_last]
|
69 |
+
[one_sixth][/one_sixth]
|
70 |
+
[one_sixth_last][/one_sixth_last]
|
71 |
`
|
72 |
|
73 |
+
**Another option**
|
74 |
+
Another way to add shortcodes is to switch to HTML-view. On the top of editor you will now see all the shortcodes listed.
|
75 |
+
By default these buttons are hidden. If you'd like to use them you can add this to your theme's functions.php:
|
76 |
|
77 |
`
|
78 |
+
add_filter('add_shortcode_html_buttons', '__return_true' );
|
79 |
`
|
80 |
|
|
|
81 |
|
82 |
+
= Where do I add my content? =
|
83 |
|
84 |
+
When you have selected a shorcode it will be placed in you editor. You will see something like this:
|
85 |
|
86 |
+
`
|
87 |
+
[one_half][/one_half]
|
88 |
+
`
|
89 |
+
|
90 |
+
Make sure to place your content (text/images etc. ) between the two shortcodes, like so:
|
91 |
+
|
92 |
+
`
|
93 |
+
[one_half]My content goes here...[/one_half]
|
94 |
+
`
|
95 |
|
96 |
= How can I replace the default Shortcode CSS stylesheet? =
|
97 |
|
136 |
}
|
137 |
`
|
138 |
|
139 |
+
= Will you be adding more shortcodes? =
|
140 |
+
|
141 |
+
We would love to hear your feedback and suggestions on this. Just send an email to <a href="mailto:info@codepress.nl">info@codepress.nl</a>.
|
142 |
+
|
143 |
+
= How can I contribute a translation? =
|
144 |
+
|
145 |
+
You will find a .po file in the languages folder which you can use. You can send the translation to <a href="mailto:info@codepress.nl">info@codepress.nl</a>.
|
146 |
+
|
147 |
+
|
148 |
== Screenshots ==
|
149 |
|
150 |
1. Editor with shortcode icon
|
151 |
2. Shortcode popup with shortcode selector
|
152 |
+
3. Editor with shortcodes
|
153 |
+
4. Example post with the use of column shortcodes
|
154 |
|
155 |
== Changelog ==
|
156 |
|
157 |
+
= 0.2 =
|
158 |
+
|
159 |
+
* added french and spanish language ( thanks to Mikel Aralar )
|
160 |
+
* improved script loading
|
161 |
+
* shortcodes HTML-view buttons hidden by default. Enable them by adding this to your functions.php: `add_filter('add_shortcode_html_buttons', '__return_true' );`
|
162 |
+
|
163 |
= 0.1 =
|
164 |
|
165 |
* Initial release.
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
screenshot-4.png
ADDED
Binary file
|