Version Description
- Added filter to extend list of shortcodes
- Minor fixes
Download this release
Release Info
Developer | MyThemeShop |
Plugin | WP Shortcode by MyThemeShop |
Version | 1.4.8 |
Comparing to | |
See all releases |
Code changes from version 1.4.3 to 1.4.8
- css/tipsy.css +0 -0
- js/jquery.tipsy.js +0 -0
- js/wp-shortcode.js +37 -37
- readme.txt +115 -99
- tinymce/editor_plugin.css +7 -6
- tinymce/editor_plugin.php +8 -19
- tinymce/shortcodes.php +364 -361
- tinymce/tinymce.php +0 -9
- wp-shortcode.php +12 -12
css/tipsy.css
CHANGED
File without changes
|
js/jquery.tipsy.js
CHANGED
File without changes
|
js/wp-shortcode.js
CHANGED
@@ -1,38 +1,38 @@
|
|
1 |
-
jQuery(document).ready(function($){
|
2 |
-
// Toggles
|
3 |
-
if ($('.wp_shortcodes_toggle').length) {
|
4 |
-
$(".togglec").hide();
|
5 |
-
$(".wps_togglet").click(function(){
|
6 |
-
$(this).toggleClass("toggleta").next(".togglec").slideToggle("normal");
|
7 |
-
});
|
8 |
-
}
|
9 |
-
|
10 |
-
// Tabs
|
11 |
-
if ($('.wp_shortcodes_tabs').length) {
|
12 |
-
$('.wp_shortcodes_tabs').each(function() {
|
13 |
-
var $this = $(this);
|
14 |
-
$this.find('.tab_content').slice(1).hide();
|
15 |
-
$this.find('ul.wps_tabs li:first').addClass('active');
|
16 |
-
$this.find('ul.wps_tabs li a').click(function(e) {
|
17 |
-
e.preventDefault();
|
18 |
-
var $this_a = $(this);
|
19 |
-
var $tab = $this.find('#'+$this_a.data('tab'));
|
20 |
-
if (! $tab.is(':visible')) {
|
21 |
-
$this.find('.tab_content').hide();
|
22 |
-
$this_a.parent().addClass('active').siblings().removeClass('active');
|
23 |
-
$tab.fadeIn(600);
|
24 |
-
}
|
25 |
-
});
|
26 |
-
});
|
27 |
-
}
|
28 |
-
|
29 |
-
if ($('.wp_shortcodes_tooltip').length) {
|
30 |
-
$('.wp_shortcodes_tooltip').each(function(index, el) {
|
31 |
-
var $this = $(this),
|
32 |
-
ttgravity = $this.data('gravity'),
|
33 |
-
ttfade = Boolean($this.data('fade'));
|
34 |
-
$this.tipsy({gravity: ttgravity, fade: ttfade});
|
35 |
-
});
|
36 |
-
}
|
37 |
-
|
38 |
});
|
1 |
+
jQuery(document).ready(function($){
|
2 |
+
// Toggles
|
3 |
+
if ($('.wp_shortcodes_toggle').length) {
|
4 |
+
$(".togglec").hide();
|
5 |
+
$(".wps_togglet").click(function(){
|
6 |
+
$(this).toggleClass("toggleta").next(".togglec").slideToggle("normal");
|
7 |
+
});
|
8 |
+
}
|
9 |
+
|
10 |
+
// Tabs
|
11 |
+
if ($('.wp_shortcodes_tabs').length) {
|
12 |
+
$('.wp_shortcodes_tabs').each(function() {
|
13 |
+
var $this = $(this);
|
14 |
+
$this.find('.tab_content').slice(1).hide();
|
15 |
+
$this.find('ul.wps_tabs li:first').addClass('active');
|
16 |
+
$this.find('ul.wps_tabs li a').click(function(e) {
|
17 |
+
e.preventDefault();
|
18 |
+
var $this_a = $(this);
|
19 |
+
var $tab = $this.find('#'+$this_a.data('tab'));
|
20 |
+
if (! $tab.is(':visible')) {
|
21 |
+
$this.find('.tab_content').hide();
|
22 |
+
$this_a.parent().addClass('active').siblings().removeClass('active');
|
23 |
+
$tab.fadeIn(600);
|
24 |
+
}
|
25 |
+
});
|
26 |
+
});
|
27 |
+
}
|
28 |
+
|
29 |
+
if ($('.wp_shortcodes_tooltip').length) {
|
30 |
+
$('.wp_shortcodes_tooltip').each(function(index, el) {
|
31 |
+
var $this = $(this),
|
32 |
+
ttgravity = $this.data('gravity'),
|
33 |
+
ttfade = Boolean($this.data('fade'));
|
34 |
+
$this.tipsy({gravity: ttgravity, fade: ttfade});
|
35 |
+
});
|
36 |
+
}
|
37 |
+
|
38 |
});
|
readme.txt
CHANGED
@@ -1,99 +1,115 @@
|
|
1 |
-
=== WP Shortcode by MyThemeShop ===
|
2 |
-
Contributors: mythemeshop
|
3 |
-
Creator's website link: http://mythemeshop.com/
|
4 |
-
Tags: shortcodes, shortcode, shortcodes list, toggle shortcode, buttons, google map shortcode, youtube shortcode, vimeo shortcode, alert shortcode, notification shortcode, column shortcodes
|
5 |
-
Requires at least: 3.0.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.4.
|
8 |
-
License: GPLv2 or later
|
9 |
-
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
-
|
11 |
-
WP Shortcode is a premium WP plugin for free, that provides easy to use over 24 shortcodes. You can easily add buttons, alerts, videos and more.
|
12 |
-
|
13 |
-
== Description ==
|
14 |
-
|
15 |
-
Add sexy-buttons, spoiler warnings, column layouts and much more to WordPress. WP Shortcode makes it happen with a click of a button. Until now, this premium plugin was available to premium members of <a href="http://mythemeshop.com/">MyThemeShop</a>, but now everyone can use this premium plugin.
|
16 |
-
|
17 |
-
Why use WP Shortcode plugin? Tired of using a theme with built-in shortcodes, switching themes and then losing all your awesome styles? WP Shortcode offers over 24 useful shortcodes, so you'll never lose anything when changing your theme. Now you can add buttons, highlights, boxes, toggles, tabs, pricing tables, among other awesomeness, and take them with you no matter what theme you decide to use.
|
18 |
-
|
19 |
-
We at MyThemeShop realise there are already some free shortcode plugins out, but they either only include a very few amount of shortcodes, they are way too complex, not well-coded, not styled to our liking or they weren’t free. We wanted to create something that was 100% GPL so you can use it and abuse it on all of your websites and client projects – and of course that’s very easy to use and minimally styled, so it can fit most sites right out of the box or be easily customized.
|
20 |
-
|
21 |
-
To see a full list of options available with this powerful plugin, try this page: <a href="http://demo.mythemeshop.com/spike/shortcodes-examples/">http://demo.mythemeshop.com/spike/shortcodes-examples/</a>
|
22 |
-
|
23 |
-
= Shortcodes Included =
|
24 |
-
Buttons, Videos, Alerts, Google Maps, Toggle, Tabs, dividers, Columns And much more! Easily add nice looking elements to your WordPress website without any knowledge of coding!
|
25 |
-
|
26 |
-
= Support =
|
27 |
-
|
28 |
-
All support for this plugin is provided through our forums. If you have not registered yet, you can do so here for **FREE** <br>
|
29 |
-
<a href=“https://mythemeshop.com/#signup”>https://mythemeshop.com/#signup</a>
|
30 |
-
|
31 |
-
If after checking our Free WordPress video tutorials here:<br>
|
32 |
-
<a href=“https://mythemeshop.com/wordpress-101/”>https://mythemeshop.com/wordpress-101/</a><br>
|
33 |
-
&<br>
|
34 |
-
<a href=“https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/“>https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/</a><br>
|
35 |
-
<br>
|
36 |
-
you are still stuck, please feel free to open a new thread, and a member of our support team will be happy to help.<br>
|
37 |
-
|
38 |
-
Support link:<br>
|
39 |
-
<a href=“https://community.mythemeshop.com/forum/11-free-plugin-support/”>https://community.mythemeshop.com/forum/11-free-plugin-support/</a><br>
|
40 |
-
<br>
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
This section describes how to install the plugin and get it working.
|
45 |
-
|
46 |
-
1. Upload the `wp-shortcode` folder to the to the `/wp-content/plugins/` directory
|
47 |
-
2. Activate the plugin through the 'Plugins' menu in WordPress
|
48 |
-
3. You can see '+' button on post editor, using this button, you can add shortcodes in your posts.
|
49 |
-
|
50 |
-
== Frequently Asked Questions ==
|
51 |
-
|
52 |
-
= Shortcodes + button is not working =
|
53 |
-
|
54 |
-
Please disable all plugins and check if shortcode plugin is working properly. Then you can enable all plugins one by one to find out which plugin is conflicting with WP Shortcode plugin.
|
55 |
-
|
56 |
-
== Screenshots ==
|
57 |
-
|
58 |
-
1. Single Shortcode Configuration
|
59 |
-
2. List of all plugins.
|
60 |
-
3. Alerts and Buttons
|
61 |
-
4. Tabs and Toggles
|
62 |
-
5. Videos and Dividers
|
63 |
-
6. Columns Shortcodes
|
64 |
-
7. Google Maps Shortcode
|
65 |
-
|
66 |
-
== Changelog ==
|
67 |
-
|
68 |
-
= 1.4.
|
69 |
-
* Added
|
70 |
-
*
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
*
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
*
|
87 |
-
* Fixed
|
88 |
-
*
|
89 |
-
|
90 |
-
= 1.2 =
|
91 |
-
*
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== WP Shortcode by MyThemeShop ===
|
2 |
+
Contributors: mythemeshop
|
3 |
+
Creator's website link: http://mythemeshop.com/
|
4 |
+
Tags: shortcodes, shortcode, shortcodes list, toggle shortcode, buttons, google map shortcode, youtube shortcode, vimeo shortcode, alert shortcode, notification shortcode, column shortcodes
|
5 |
+
Requires at least: 3.0.1
|
6 |
+
Tested up to: 4.9.1
|
7 |
+
Stable tag: 1.4.8
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
+
|
11 |
+
WP Shortcode is a premium WP plugin for free, that provides easy to use over 24 shortcodes. You can easily add buttons, alerts, videos and more.
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
|
15 |
+
Add sexy-buttons, spoiler warnings, column layouts and much more to WordPress. WP Shortcode makes it happen with a click of a button. Until now, this premium plugin was available to premium members of <a href="http://mythemeshop.com/">MyThemeShop</a>, but now everyone can use this premium plugin.
|
16 |
+
|
17 |
+
Why use WP Shortcode plugin? Tired of using a theme with built-in shortcodes, switching themes and then losing all your awesome styles? WP Shortcode offers over 24 useful shortcodes, so you'll never lose anything when changing your theme. Now you can add buttons, highlights, boxes, toggles, tabs, pricing tables, among other awesomeness, and take them with you no matter what theme you decide to use.
|
18 |
+
|
19 |
+
We at MyThemeShop realise there are already some free shortcode plugins out, but they either only include a very few amount of shortcodes, they are way too complex, not well-coded, not styled to our liking or they weren’t free. We wanted to create something that was 100% GPL so you can use it and abuse it on all of your websites and client projects – and of course that’s very easy to use and minimally styled, so it can fit most sites right out of the box or be easily customized.
|
20 |
+
|
21 |
+
To see a full list of options available with this powerful plugin, try this page: <a href="http://demo.mythemeshop.com/spike/shortcodes-examples/">http://demo.mythemeshop.com/spike/shortcodes-examples/</a>
|
22 |
+
|
23 |
+
= Shortcodes Included =
|
24 |
+
Buttons, Videos, Alerts, Google Maps, Toggle, Tabs, dividers, Columns And much more! Easily add nice looking elements to your WordPress website without any knowledge of coding!
|
25 |
+
|
26 |
+
= Support =
|
27 |
+
|
28 |
+
All support for this plugin is provided through our forums. If you have not registered yet, you can do so here for **FREE** <br>
|
29 |
+
<a href=“https://mythemeshop.com/#signup”>https://mythemeshop.com/#signup</a>
|
30 |
+
|
31 |
+
If after checking our Free WordPress video tutorials here:<br>
|
32 |
+
<a href=“https://mythemeshop.com/wordpress-101/”>https://mythemeshop.com/wordpress-101/</a><br>
|
33 |
+
&<br>
|
34 |
+
<a href=“https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/“>https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/</a><br>
|
35 |
+
<br>
|
36 |
+
you are still stuck, please feel free to open a new thread, and a member of our support team will be happy to help.<br>
|
37 |
+
|
38 |
+
Support link:<br>
|
39 |
+
<a href=“https://community.mythemeshop.com/forum/11-free-plugin-support/”>https://community.mythemeshop.com/forum/11-free-plugin-support/</a><br>
|
40 |
+
<br>
|
41 |
+
|
42 |
+
== Installation ==
|
43 |
+
|
44 |
+
This section describes how to install the plugin and get it working.
|
45 |
+
|
46 |
+
1. Upload the `wp-shortcode` folder to the to the `/wp-content/plugins/` directory
|
47 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress
|
48 |
+
3. You can see '+' button on post editor, using this button, you can add shortcodes in your posts.
|
49 |
+
|
50 |
+
== Frequently Asked Questions ==
|
51 |
+
|
52 |
+
= Shortcodes + button is not working =
|
53 |
+
|
54 |
+
Please disable all plugins and check if shortcode plugin is working properly. Then you can enable all plugins one by one to find out which plugin is conflicting with WP Shortcode plugin.
|
55 |
+
|
56 |
+
== Screenshots ==
|
57 |
+
|
58 |
+
1. Single Shortcode Configuration
|
59 |
+
2. List of all plugins.
|
60 |
+
3. Alerts and Buttons
|
61 |
+
4. Tabs and Toggles
|
62 |
+
5. Videos and Dividers
|
63 |
+
6. Columns Shortcodes
|
64 |
+
7. Google Maps Shortcode
|
65 |
+
|
66 |
+
== Changelog ==
|
67 |
+
|
68 |
+
= 1.4.8 =
|
69 |
+
* Added filter to extend list of shortcodes
|
70 |
+
* Minor fixes
|
71 |
+
|
72 |
+
= 1.4.7 =
|
73 |
+
* Removed unused code
|
74 |
+
|
75 |
+
= 1.4.6 =
|
76 |
+
* Fixed styling and escaping issues
|
77 |
+
|
78 |
+
= 1.4.5 =
|
79 |
+
* Fixed sanitize_html_class() functions
|
80 |
+
|
81 |
+
= 1.4.4 =
|
82 |
+
* Fixed XSS vulnerability (thanks to https://www.threatpress.com)
|
83 |
+
|
84 |
+
= 1.4.3 =
|
85 |
+
* Added shortcode attribute "rel" to buttons
|
86 |
+
* Updated tabs shortcode to support more characters like emojis!
|
87 |
+
* Fixed toggle shortcode styling bug on smaller screens
|
88 |
+
* Fixed notices when no title is provided in tabs shortcode
|
89 |
+
|
90 |
+
= 1.4.2 =
|
91 |
+
* Changed text domain to 'wp-shortcode'
|
92 |
+
|
93 |
+
= 1.4.1 =
|
94 |
+
* Fixed embed video issue in half column
|
95 |
+
|
96 |
+
= 1.4 =
|
97 |
+
* Complete revamp of notification and button shortcode design.
|
98 |
+
* Removed unnecessary images.
|
99 |
+
* Optimized CSS code.
|
100 |
+
|
101 |
+
= 1.3 =
|
102 |
+
* Added Tooltip shortcode
|
103 |
+
* Fixed tab titles issue
|
104 |
+
* Made embed URLs protocol-relative
|
105 |
+
|
106 |
+
= 1.2 =
|
107 |
+
* Made compatible with (with TinyMCE 3 & 4).
|
108 |
+
* Made translation-ready
|
109 |
+
* Added "centre" position for buttons.
|
110 |
+
|
111 |
+
= 1.1 =
|
112 |
+
* Fixed small issue in button shortcode CSS.
|
113 |
+
|
114 |
+
= 1.0 =
|
115 |
+
* Official plugin release.
|
tinymce/editor_plugin.css
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
-
#
|
2 |
-
#
|
3 |
-
#mnmshortcode_panel
|
4 |
-
|
5 |
-
.
|
6 |
-
|
|
|
7 |
#mnmshortcode_panel textarea { height: 120px }
|
1 |
+
body#link { background: #fff; }
|
2 |
+
#mnmshortcode_tag { width: 200px }
|
3 |
+
#mnmshortcode_panel { margin-bottom: 8px }
|
4 |
+
#mnmshortcode_panel table { width: 100%; font-size: 12px; }
|
5 |
+
.mnmshortcode_description { color: #666; font-size: 12px; }
|
6 |
+
.mnmshortcode_att_name { text-transform: capitalize }
|
7 |
+
#mnmshortcode_panel input, #mnmshortcode_panel select, #mnmshortcode_panel textarea { width: 100%; padding: 4px 4px; font-size: 12px; font-family: 'Open Sans', sans-serif; }
|
8 |
#mnmshortcode_panel textarea { height: 120px }
|
tinymce/editor_plugin.php
CHANGED
@@ -8,7 +8,7 @@ if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
|
|
8 |
?>
|
9 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
10 |
<head>
|
11 |
-
<title
|
12 |
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
|
13 |
<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
14 |
<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
|
@@ -30,25 +30,14 @@ if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
|
|
30 |
<tr>
|
31 |
<td><label for="mnmshortcode_tag"><?php _e("Select Shortcode", 'wp-shortcode'); ?></label></td>
|
32 |
<td><select id="mnmshortcode_tag" name="mnmshortcode_tag">
|
33 |
-
<option value="0"
|
34 |
-
<?php
|
35 |
-
if(is_array($
|
36 |
-
|
37 |
-
$i=1;
|
38 |
|
39 |
-
foreach ($
|
40 |
-
|
41 |
-
|
42 |
-
{
|
43 |
-
$mnm_shortcode_name = str_replace('mts_', '' ,$short_code_value);
|
44 |
-
$mnm_shortcode_names = str_replace('_', ' ' ,$mnm_shortcode_name);
|
45 |
-
$mnm_shortcodenames = ucwords($mnm_shortcode_names);
|
46 |
-
$shortcode_label = (empty($shortcodes[$mnm_shortcodekey]['label']) ? $mnm_shortcodenames : $shortcodes[$mnm_shortcodekey]['label']);
|
47 |
-
echo '<option value="' . $mnm_shortcodekey . '" >' . $shortcode_label.'</option>' . "\n";
|
48 |
-
echo '</optgroup>';
|
49 |
-
|
50 |
-
$i++;
|
51 |
-
}
|
52 |
}
|
53 |
}
|
54 |
?>
|
8 |
?>
|
9 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
10 |
<head>
|
11 |
+
<title><?php _e('Shortcode Panel', 'wp-shortcode'); ?></title>
|
12 |
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
|
13 |
<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
14 |
<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
|
30 |
<tr>
|
31 |
<td><label for="mnmshortcode_tag"><?php _e("Select Shortcode", 'wp-shortcode'); ?></label></td>
|
32 |
<td><select id="mnmshortcode_tag" name="mnmshortcode_tag">
|
33 |
+
<option value="0"><?php _e('Select Shortcode', 'wp-shortcode'); ?></option>
|
34 |
+
<?php
|
35 |
+
if(is_array($shortcodes)) {
|
36 |
+
$i = 1;
|
|
|
37 |
|
38 |
+
foreach ( $shortcodes as $mnm_shortcodekey => $short_code_value ) {
|
39 |
+
echo '<option value="' . $mnm_shortcodekey . '" >' . (isset($short_code_value['label']) ? $short_code_value['label'] : $mnm_shortcodekey).'</option>' . "\n";
|
40 |
+
$i++;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
}
|
43 |
?>
|
tinymce/shortcodes.php
CHANGED
@@ -1,362 +1,365 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
"
|
6 |
-
|
7 |
-
"
|
8 |
-
"
|
9 |
-
|
10 |
-
|
11 |
-
"
|
12 |
-
"
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
"
|
17 |
-
|
18 |
-
"
|
19 |
-
"
|
20 |
-
|
21 |
-
|
22 |
-
"
|
23 |
-
"
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
"
|
28 |
-
|
29 |
-
"
|
30 |
-
"
|
31 |
-
|
32 |
-
|
33 |
-
"
|
34 |
-
"
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
"
|
39 |
-
|
40 |
-
"
|
41 |
-
"
|
42 |
-
|
43 |
-
|
44 |
-
"
|
45 |
-
"
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
"
|
50 |
-
|
51 |
-
"
|
52 |
-
"
|
53 |
-
|
54 |
-
|
55 |
-
"
|
56 |
-
"
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
"
|
61 |
-
|
62 |
-
"
|
63 |
-
"
|
64 |
-
|
65 |
-
|
66 |
-
"
|
67 |
-
"
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
"
|
72 |
-
"
|
73 |
-
"
|
74 |
-
"
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
"
|
79 |
-
"
|
80 |
-
"
|
81 |
-
"
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
"
|
86 |
-
"
|
87 |
-
"
|
88 |
-
"
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
"
|
93 |
-
"
|
94 |
-
"
|
95 |
-
"
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
"
|
100 |
-
|
101 |
-
"
|
102 |
-
"
|
103 |
-
"
|
104 |
-
|
105 |
-
|
106 |
-
"
|
107 |
-
"
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
"
|
112 |
-
|
113 |
-
"
|
114 |
-
"
|
115 |
-
"
|
116 |
-
|
117 |
-
|
118 |
-
"
|
119 |
-
"
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
"
|
124 |
-
|
125 |
-
"
|
126 |
-
"
|
127 |
-
"
|
128 |
-
|
129 |
-
|
130 |
-
"
|
131 |
-
"
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
"
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
"
|
140 |
-
"
|
141 |
-
"
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
"
|
146 |
-
"
|
147 |
-
"
|
148 |
-
"
|
149 |
-
"
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
"
|
154 |
-
"
|
155 |
-
"
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
"
|
161 |
-
"
|
162 |
-
|
163 |
-
|
164 |
-
"
|
165 |
-
|
166 |
-
|
167 |
-
"
|
168 |
-
"
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
"
|
178 |
-
"
|
179 |
-
"
|
180 |
-
|
181 |
-
|
182 |
-
"
|
183 |
-
|
184 |
-
|
185 |
-
"
|
186 |
-
"
|
187 |
-
"
|
188 |
-
|
189 |
-
|
190 |
-
"
|
191 |
-
|
192 |
-
|
193 |
-
"
|
194 |
-
"
|
195 |
-
"
|
196 |
-
|
197 |
-
|
198 |
-
"
|
199 |
-
|
200 |
-
|
201 |
-
"
|
202 |
-
"
|
203 |
-
"
|
204 |
-
|
205 |
-
|
206 |
-
"
|
207 |
-
|
208 |
-
|
209 |
-
"
|
210 |
-
"
|
211 |
-
"
|
212 |
-
|
213 |
-
|
214 |
-
"
|
215 |
-
|
216 |
-
|
217 |
-
"
|
218 |
-
"
|
219 |
-
"
|
220 |
-
|
221 |
-
|
222 |
-
"
|
223 |
-
|
224 |
-
|
225 |
-
"
|
226 |
-
"
|
227 |
-
"
|
228 |
-
|
229 |
-
|
230 |
-
"
|
231 |
-
|
232 |
-
|
233 |
-
"
|
234 |
-
"
|
235 |
-
"
|
236 |
-
|
237 |
-
|
238 |
-
"
|
239 |
-
|
240 |
-
|
241 |
-
"
|
242 |
-
"
|
243 |
-
"
|
244 |
-
|
245 |
-
|
246 |
-
"
|
247 |
-
|
248 |
-
|
249 |
-
"
|
250 |
-
"
|
251 |
-
"
|
252 |
-
|
253 |
-
|
254 |
-
"
|
255 |
-
|
256 |
-
|
257 |
-
"
|
258 |
-
"
|
259 |
-
"
|
260 |
-
|
261 |
-
|
262 |
-
"
|
263 |
-
|
264 |
-
|
265 |
-
"
|
266 |
-
"
|
267 |
-
"
|
268 |
-
|
269 |
-
|
270 |
-
"
|
271 |
-
|
272 |
-
|
273 |
-
"
|
274 |
-
"
|
275 |
-
"
|
276 |
-
|
277 |
-
|
278 |
-
"
|
279 |
-
|
280 |
-
|
281 |
-
"
|
282 |
-
"
|
283 |
-
"
|
284 |
-
|
285 |
-
|
286 |
-
"
|
287 |
-
|
288 |
-
|
289 |
-
"
|
290 |
-
"
|
291 |
-
"
|
292 |
-
|
293 |
-
|
294 |
-
"
|
295 |
-
|
296 |
-
|
297 |
-
"
|
298 |
-
"
|
299 |
-
"
|
300 |
-
|
301 |
-
|
302 |
-
"
|
303 |
-
|
304 |
-
|
305 |
-
"
|
306 |
-
"
|
307 |
-
"
|
308 |
-
|
309 |
-
|
310 |
-
"
|
311 |
-
|
312 |
-
|
313 |
-
"
|
314 |
-
"
|
315 |
-
"
|
316 |
-
|
317 |
-
|
318 |
-
"
|
319 |
-
|
320 |
-
|
321 |
-
"
|
322 |
-
"
|
323 |
-
"
|
324 |
-
|
325 |
-
|
326 |
-
"
|
327 |
-
|
328 |
-
|
329 |
-
"
|
330 |
-
"
|
331 |
-
"
|
332 |
-
|
333 |
-
|
334 |
-
"
|
335 |
-
|
336 |
-
|
337 |
-
"
|
338 |
-
"
|
339 |
-
"
|
340 |
-
|
341 |
-
|
342 |
-
"
|
343 |
-
|
344 |
-
|
345 |
-
"
|
346 |
-
"
|
347 |
-
"
|
348 |
-
|
349 |
-
|
350 |
-
"
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
)
|
361 |
-
|
|
|
|
|
|
|
362 |
?>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$shortcodes = array(
|
4 |
+
"button-brown" => array(
|
5 |
+
"self-closing" => false,
|
6 |
+
"atts" => array(
|
7 |
+
"url" => "#",
|
8 |
+
"target" => "_self",
|
9 |
+
"position" => "left"
|
10 |
+
),
|
11 |
+
"label" => __("Brown Button", "wp-shortcode"),
|
12 |
+
"content" => __("Button text", "wp-shortcode"),
|
13 |
+
"description" => __("Inserts a brown button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
14 |
+
),
|
15 |
+
"button-blue" => array(
|
16 |
+
"self-closing" => false,
|
17 |
+
"atts" => array(
|
18 |
+
"url" => "#",
|
19 |
+
"target" => "_self",
|
20 |
+
"position" => "left"
|
21 |
+
),
|
22 |
+
"label" => __("Blue Button", "wp-shortcode"),
|
23 |
+
"content" => __("Button text", "wp-shortcode") ,
|
24 |
+
"description" => __("Inserts a blue button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
25 |
+
),
|
26 |
+
"button-green" => array(
|
27 |
+
"self-closing" => false,
|
28 |
+
"atts" => array(
|
29 |
+
"url" => "#",
|
30 |
+
"target" => "_self",
|
31 |
+
"position" => "left"
|
32 |
+
),
|
33 |
+
"label" => __("Green Button", "wp-shortcode"),
|
34 |
+
"content" => __("Button text", "wp-shortcode") ,
|
35 |
+
"description" => __("Inserts a green button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
36 |
+
),
|
37 |
+
"button-yellow" => array(
|
38 |
+
"self-closing" => false,
|
39 |
+
"atts" => array(
|
40 |
+
"url" => "#",
|
41 |
+
"target" => "_self",
|
42 |
+
"position" => "left"
|
43 |
+
),
|
44 |
+
"label" => __("Yellow Button", "wp-shortcode"),
|
45 |
+
"content" => __("Button text", "wp-shortcode") ,
|
46 |
+
"description" => __("Inserts a yellow button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
47 |
+
),
|
48 |
+
"button-red" => array(
|
49 |
+
"self-closing" => false,
|
50 |
+
"atts" => array(
|
51 |
+
"url" => "#",
|
52 |
+
"target" => "_self",
|
53 |
+
"position" => "left"
|
54 |
+
),
|
55 |
+
"label" => __("Red Button", "wp-shortcode"),
|
56 |
+
"content" => __("Button text", "wp-shortcode") ,
|
57 |
+
"description" => __("Inserts a red button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
58 |
+
),
|
59 |
+
"button-white" => array(
|
60 |
+
"self-closing" => false,
|
61 |
+
"atts" => array(
|
62 |
+
"url" => "#",
|
63 |
+
"target" => "_self",
|
64 |
+
"position" => "left"
|
65 |
+
),
|
66 |
+
"label" => __("White Button", "wp-shortcode"),
|
67 |
+
"content" => __("Button text", "wp-shortcode") ,
|
68 |
+
"description" => __("Inserts a white button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
69 |
+
),
|
70 |
+
"alert-note" => array(
|
71 |
+
"self-closing" => false,
|
72 |
+
"atts" => array(),
|
73 |
+
"label" => __("Alert Note", "wp-shortcode"),
|
74 |
+
"content" => __("Note text", "wp-shortcode"),
|
75 |
+
"description" => __("Display a note.", "wp-shortcode")
|
76 |
+
),
|
77 |
+
"alert-announce" => array(
|
78 |
+
"self-closing" => false,
|
79 |
+
"atts" => array(),
|
80 |
+
"label" => __("Alert Announce", "wp-shortcode"),
|
81 |
+
"content" => __("Announce text", "wp-shortcode"),
|
82 |
+
"description" => __("Display an announcement.", "wp-shortcode")
|
83 |
+
),
|
84 |
+
"alert-success" => array(
|
85 |
+
"self-closing" => false,
|
86 |
+
"atts" => array(),
|
87 |
+
"label" => __("Alert Success", "wp-shortcode"),
|
88 |
+
"content" => __("Success text", "wp-shortcode"),
|
89 |
+
"description" => __("Display a success message.", "wp-shortcode")
|
90 |
+
),
|
91 |
+
"alert-warning" => array(
|
92 |
+
"self-closing" => false,
|
93 |
+
"atts" => array(),
|
94 |
+
"label" => __("Alert Warning", "wp-shortcode"),
|
95 |
+
"content" => __("Warning text", "wp-shortcode"),
|
96 |
+
"description" => __("Display warning or error message.", "wp-shortcode")
|
97 |
+
),
|
98 |
+
"youtube" => array(
|
99 |
+
"self-closing" => true,
|
100 |
+
"atts" => array(
|
101 |
+
"id" => "#",
|
102 |
+
"width" => "600",
|
103 |
+
"height" => "340",
|
104 |
+
"position" => "left"
|
105 |
+
),
|
106 |
+
"label" => __("YouTube Video", "wp-shortcode"),
|
107 |
+
"content" => "",
|
108 |
+
"description" => __("Embed a Youtube Video", "wp-shortcode")
|
109 |
+
),
|
110 |
+
"vimeo" => array(
|
111 |
+
"self-closing" => true,
|
112 |
+
"atts" => array(
|
113 |
+
"id" => "#",
|
114 |
+
"width" => "600",
|
115 |
+
"height" => "340",
|
116 |
+
"position" => "left"
|
117 |
+
),
|
118 |
+
"label" => __("Vimeo Video", "wp-shortcode"),
|
119 |
+
"content" => "",
|
120 |
+
"description" => __("Embed a Vimeo Video.", "wp-shortcode")
|
121 |
+
),
|
122 |
+
"googlemap" => array(
|
123 |
+
"self-closing" => true,
|
124 |
+
"atts" => array(
|
125 |
+
"address" => "Libertyville, Illinois, USA",
|
126 |
+
"width" => "600",
|
127 |
+
"height" => "340",
|
128 |
+
"position" => "left"
|
129 |
+
),
|
130 |
+
"label" => __("Google Map", "wp-shortcode"),
|
131 |
+
"content" => "",
|
132 |
+
"description" => __("Embed a Google Map. Insert address or GPS location.", "wp-shortcode")
|
133 |
+
),
|
134 |
+
"toggle" => array(
|
135 |
+
"self-closing" => false,
|
136 |
+
"atts" => array(
|
137 |
+
"title" => "Toggle Title"
|
138 |
+
),
|
139 |
+
"label" => __("Toggle", "wp-shortcode"),
|
140 |
+
"content" => __("Insert Content Here", "wp-shortcode"),
|
141 |
+
"content_field" => "textarea",
|
142 |
+
"description" => __("Content will be shown after clicking on the toggle title.", "wp-shortcode")
|
143 |
+
),
|
144 |
+
"tabs" => array(
|
145 |
+
"self-closing" => false,
|
146 |
+
"atts" => array(),
|
147 |
+
"label" => __("Tabs", "wp-shortcode"),
|
148 |
+
"content" => __("[tab title="Tab 1 Title"]Insert tab 1 content here[/tab]\n[tab title="Tab 2 Title"]Insert tab 2 content here[/tab]\n[tab title="Tab 3 Title"]Insert tab 3 content here[/tab]", "wp-shortcode"),
|
149 |
+
"content_field" => "textarea",
|
150 |
+
"description" => __("Display content in tabbed form.", "wp-shortcode")
|
151 |
+
),
|
152 |
+
"divider" => array(
|
153 |
+
"self-closing" => true,
|
154 |
+
"atts" => array(),
|
155 |
+
"label" => __("Divider", "wp-shortcode"),
|
156 |
+
"content" => "Divider",
|
157 |
+
"description" => __("Simple horizontal divider.", "wp-shortcode")
|
158 |
+
),
|
159 |
+
"divider_top" => array(
|
160 |
+
"self-closing" => true,
|
161 |
+
"atts" => array(),
|
162 |
+
"label" => __("Divider with link", "wp-shortcode"),
|
163 |
+
"content" => "Divider with link",
|
164 |
+
"description" => __("Divider with an anchor link to top of page.", "wp-shortcode")
|
165 |
+
),
|
166 |
+
"clear" => array(
|
167 |
+
"self-closing" => true,
|
168 |
+
"atts" => array(),
|
169 |
+
"label" => __("Clear", "wp-shortcode"),
|
170 |
+
"content" => "",
|
171 |
+
"description" => __("Clear shortcode can be used to clear an element of its neighbors, no floating elements are allowed on the left or the right side.", "wp-shortcode")
|
172 |
+
),
|
173 |
+
|
174 |
+
// Column Shortcodes
|
175 |
+
|
176 |
+
"one_third" => array(
|
177 |
+
"self-closing" => false,
|
178 |
+
"atts" => array(),
|
179 |
+
"label" => __("One Third", "wp-shortcode"),
|
180 |
+
"content" => __("Column content", "wp-shortcode"),
|
181 |
+
"content_field" => "textarea",
|
182 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
183 |
+
),
|
184 |
+
"one_third_last" => array(
|
185 |
+
"self-closing" => false,
|
186 |
+
"atts" => array(),
|
187 |
+
"label" => __("One Third (Last)", "wp-shortcode"),
|
188 |
+
"content" => __("Column content", "wp-shortcode"),
|
189 |
+
"content_field" => "textarea",
|
190 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
191 |
+
),
|
192 |
+
"two_third" => array(
|
193 |
+
"self-closing" => false,
|
194 |
+
"atts" => array(),
|
195 |
+
"label" => __("Two Third", "wp-shortcode"),
|
196 |
+
"content" => __("Column content", "wp-shortcode"),
|
197 |
+
"content_field" => "textarea",
|
198 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
199 |
+
),
|
200 |
+
"two_third_last" => array(
|
201 |
+
"self-closing" => false,
|
202 |
+
"atts" => array(),
|
203 |
+
"label" => __("Two Third (Last)", "wp-shortcode"),
|
204 |
+
"content" => __("Column content", "wp-shortcode"),
|
205 |
+
"content_field" => "textarea",
|
206 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
207 |
+
),
|
208 |
+
"one_half" => array(
|
209 |
+
"self-closing" => false,
|
210 |
+
"atts" => array(),
|
211 |
+
"label" => __("One Half", "wp-shortcode"),
|
212 |
+
"content" => __("Column content", "wp-shortcode"),
|
213 |
+
"content_field" => "textarea",
|
214 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
215 |
+
),
|
216 |
+
"one_half_last" => array(
|
217 |
+
"self-closing" => false,
|
218 |
+
"atts" => array(),
|
219 |
+
"label" => __("One Half (Last)", "wp-shortcode"),
|
220 |
+
"content" => __("Column content", "wp-shortcode"),
|
221 |
+
"content_field" => "textarea",
|
222 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
223 |
+
),
|
224 |
+
"one_fourth" => array(
|
225 |
+
"self-closing" => false,
|
226 |
+
"atts" => array(),
|
227 |
+
"label" => __("One Fourth", "wp-shortcode"),
|
228 |
+
"content" => __("Column content", "wp-shortcode"),
|
229 |
+
"content_field" => "textarea",
|
230 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
231 |
+
),
|
232 |
+
"one_fourth_last" => array(
|
233 |
+
"self-closing" => false,
|
234 |
+
"atts" => array(),
|
235 |
+
"label" => __("One Fourth (Last)", "wp-shortcode"),
|
236 |
+
"content" => __("Column content", "wp-shortcode"),
|
237 |
+
"content_field" => "textarea",
|
238 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
239 |
+
),
|
240 |
+
"three_fourth" => array(
|
241 |
+
"self-closing" => false,
|
242 |
+
"atts" => array(),
|
243 |
+
"label" => __("Three Fourth", "wp-shortcode"),
|
244 |
+
"content" => __("Column content", "wp-shortcode"),
|
245 |
+
"content_field" => "textarea",
|
246 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
247 |
+
),
|
248 |
+
"three_fourth_last" => array(
|
249 |
+
"self-closing" => false,
|
250 |
+
"atts" => array(),
|
251 |
+
"label" => __("Three Fourth (Last)", "wp-shortcode"),
|
252 |
+
"content" => __("Column content", "wp-shortcode"),
|
253 |
+
"content_field" => "textarea",
|
254 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
255 |
+
),
|
256 |
+
"one_fifth" => array(
|
257 |
+
"self-closing" => false,
|
258 |
+
"atts" => array(),
|
259 |
+
"label" => __("One Fifth", "wp-shortcode"),
|
260 |
+
"content" => __("Column content", "wp-shortcode"),
|
261 |
+
"content_field" => "textarea",
|
262 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
263 |
+
),
|
264 |
+
"one_fifth_last" => array(
|
265 |
+
"self-closing" => false,
|
266 |
+
"atts" => array(),
|
267 |
+
"label" => __("One Fifth (Last)", "wp-shortcode"),
|
268 |
+
"content" => __("Column content", "wp-shortcode"),
|
269 |
+
"content_field" => "textarea",
|
270 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
271 |
+
),
|
272 |
+
"two_fifth" => array(
|
273 |
+
"self-closing" => false,
|
274 |
+
"atts" => array(),
|
275 |
+
"label" => __("Two Fifth", "wp-shortcode"),
|
276 |
+
"content" => __("Column content", "wp-shortcode"),
|
277 |
+
"content_field" => "textarea",
|
278 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
279 |
+
),
|
280 |
+
"two_fifth_last" => array(
|
281 |
+
"self-closing" => false,
|
282 |
+
"atts" => array(),
|
283 |
+
"label" => __("Two Fifth (Last)", "wp-shortcode"),
|
284 |
+
"content" => __("Column content", "wp-shortcode"),
|
285 |
+
"content_field" => "textarea",
|
286 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
287 |
+
),
|
288 |
+
"three_fifth" => array(
|
289 |
+
"self-closing" => false,
|
290 |
+
"atts" => array(),
|
291 |
+
"label" => __("Three Fifth", "wp-shortcode"),
|
292 |
+
"content" => __("Column content", "wp-shortcode"),
|
293 |
+
"content_field" => "textarea",
|
294 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
295 |
+
),
|
296 |
+
"three_fifth_last" => array(
|
297 |
+
"self-closing" => false,
|
298 |
+
"atts" => array(),
|
299 |
+
"label" => __("Three Fifth (Last)", "wp-shortcode"),
|
300 |
+
"content" => __("Column content", "wp-shortcode"),
|
301 |
+
"content_field" => "textarea",
|
302 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
303 |
+
),
|
304 |
+
"four_fifth" => array(
|
305 |
+
"self-closing" => false,
|
306 |
+
"atts" => array(),
|
307 |
+
"label" => __("Four Fifth", "wp-shortcode"),
|
308 |
+
"content" => __("Column content", "wp-shortcode"),
|
309 |
+
"content_field" => "textarea",
|
310 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
311 |
+
),
|
312 |
+
"four_fifth_last" => array(
|
313 |
+
"self-closing" => false,
|
314 |
+
"atts" => array(),
|
315 |
+
"label" => __("Four Fifth (Last)", "wp-shortcode"),
|
316 |
+
"content" => __("Column content", "wp-shortcode"),
|
317 |
+
"content_field" => "textarea",
|
318 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
319 |
+
),
|
320 |
+
"one_sixth" => array(
|
321 |
+
"self-closing" => false,
|
322 |
+
"atts" => array(),
|
323 |
+
"label" => __("One Sixth", "wp-shortcode"),
|
324 |
+
"content" => __("Column content", "wp-shortcode"),
|
325 |
+
"content_field" => "textarea",
|
326 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
327 |
+
),
|
328 |
+
"one_sixth_last" => array(
|
329 |
+
"self-closing" => false,
|
330 |
+
"atts" => array(),
|
331 |
+
"label" => __("One Sixth (Last)", "wp-shortcode"),
|
332 |
+
"content" => __("Column content", "wp-shortcode"),
|
333 |
+
"content_field" => "textarea",
|
334 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
335 |
+
),
|
336 |
+
"five_sixth" => array(
|
337 |
+
"self-closing" => false,
|
338 |
+
"atts" => array(),
|
339 |
+
"label" => __("Five Sixth", "wp-shortcode"),
|
340 |
+
"content" => __("Column content", "wp-shortcode"),
|
341 |
+
"content_field" => "textarea",
|
342 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
343 |
+
),
|
344 |
+
"five_sixth_last" => array(
|
345 |
+
"self-closing" => false,
|
346 |
+
"atts" => array(),
|
347 |
+
"label" => __("Five Sixth (Last)", "wp-shortcode"),
|
348 |
+
"content" => __("Column content", "wp-shortcode"),
|
349 |
+
"content_field" => "textarea",
|
350 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
351 |
+
),
|
352 |
+
"tooltip" => array(
|
353 |
+
"self-closing" => false,
|
354 |
+
"atts" => array(
|
355 |
+
"content" => "Tooltip content",
|
356 |
+
"gravity" => "n",
|
357 |
+
"fade" => "0"
|
358 |
+
),
|
359 |
+
"label" => __("Tooltip", "wp-shortcode"),
|
360 |
+
"content" => __("Trigger text", "wp-shortcode"),
|
361 |
+
"description" => __("Add a tooltip that appears on hover. Possible values for direction(Cardinal) of bubble: nw | n | ne | w | e | sw | s | se", "wp-shortcode")
|
362 |
+
)
|
363 |
+
);
|
364 |
+
echo "<script type=\"text/javascript\">var shortcodes = ".json_encode( apply_filters( 'mts_wp_shortcode_list', $shortcodes ) ).";</script>";
|
365 |
?>
|
tinymce/tinymce.php
CHANGED
@@ -41,15 +41,6 @@
|
|
41 |
|
42 |
function add_tinymce_plugin($plugin_array)
|
43 |
{
|
44 |
-
global $page_handle;
|
45 |
-
global $post_id;
|
46 |
-
|
47 |
-
if(isset($_GET['post'])) {
|
48 |
-
$post_id = $_GET['post'];
|
49 |
-
}
|
50 |
-
$post = get_post($post_id);
|
51 |
-
$post_type = $post->post_type;
|
52 |
-
|
53 |
$plugin_array[$this->pluginname] = $this->path . 'editor_plugin.js';
|
54 |
|
55 |
return $plugin_array;
|
41 |
|
42 |
function add_tinymce_plugin($plugin_array)
|
43 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
$plugin_array[$this->pluginname] = $this->path . 'editor_plugin.js';
|
45 |
|
46 |
return $plugin_array;
|
wp-shortcode.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Shortcode by MyThemeShop
|
|
4 |
Plugin URI: http://mythemeshop.com/
|
5 |
Description: With the vast array of shortcodes, you can quickly and easily build content for your posts and pages and turbocharge your blogging experience.
|
6 |
Author: MyThemeShop
|
7 |
-
Version: 1.4.
|
8 |
Author URI: http://mythemeshop.com/
|
9 |
*/
|
10 |
|
@@ -96,7 +96,7 @@ function mts_button_brown( $atts, $content = null ) {
|
|
96 |
'position' => 'left',
|
97 |
'rel' => '',
|
98 |
), $atts));
|
99 |
-
$out = "<a href=\""
|
100 |
if ($position == 'center') {
|
101 |
$out = '<div class="button-center">'.$out.'</div>';
|
102 |
}
|
@@ -110,7 +110,7 @@ function mts_button_blue( $atts, $content = null ) {
|
|
110 |
'position' => 'left',
|
111 |
'rel' => '',
|
112 |
), $atts));
|
113 |
-
$out = "<a href=\""
|
114 |
if ($position == 'center') {
|
115 |
$out = '<div class="button-center">'.$out.'</div>';
|
116 |
}
|
@@ -124,7 +124,7 @@ function mts_button_green( $atts, $content = null ) {
|
|
124 |
'position' => 'left',
|
125 |
'rel' => '',
|
126 |
), $atts));
|
127 |
-
$out = "<a href=\""
|
128 |
if ($position == 'center') {
|
129 |
$out = '<div class="button-center">'.$out.'</div>';
|
130 |
}
|
@@ -138,7 +138,7 @@ function mts_button_red( $atts, $content = null ) {
|
|
138 |
'position' => 'left',
|
139 |
'rel' => '',
|
140 |
), $atts));
|
141 |
-
$out = "<a href=\""
|
142 |
if ($position == 'center') {
|
143 |
$out = '<div class="button-center">'.$out.'</div>';
|
144 |
}
|
@@ -152,7 +152,7 @@ function mts_button_white( $atts, $content = null ) {
|
|
152 |
'position' => 'left',
|
153 |
'rel' => '',
|
154 |
), $atts));
|
155 |
-
$out = "<a href=\""
|
156 |
if ($position == 'center') {
|
157 |
$out = '<div class="button-center">'.$out.'</div>';
|
158 |
}
|
@@ -166,7 +166,7 @@ function mts_button_yellow( $atts, $content = null ) {
|
|
166 |
'position' => 'left',
|
167 |
'rel' => '',
|
168 |
), $atts));
|
169 |
-
$out = "<a href=\""
|
170 |
if ($position == 'center') {
|
171 |
$out = '<div class="button-center">'.$out.'</div>';
|
172 |
}
|
@@ -311,7 +311,7 @@ function mts_youtube_video( $atts, $content = null ) {
|
|
311 |
'height' => '340',
|
312 |
'position' => 'left'
|
313 |
), $atts));
|
314 |
-
$out = "<div class=\"youtube-video "
|
315 |
return $out;
|
316 |
}
|
317 |
|
@@ -322,7 +322,7 @@ function mts_vimeo_video( $atts, $content = null ) {
|
|
322 |
'height' => '340',
|
323 |
'position' => 'left'
|
324 |
), $atts));
|
325 |
-
$out = "<div class=\"vimeo-video "
|
326 |
return $out;
|
327 |
}
|
328 |
|
@@ -338,9 +338,9 @@ function mts_googleMaps($atts, $content = null) {
|
|
338 |
'position' => 'left'
|
339 |
), $atts));
|
340 |
if (!empty($src)) {
|
341 |
-
$out = "<div class=\"googlemaps "
|
342 |
} else {
|
343 |
-
$out = "<div class=\"googlemaps "
|
344 |
}
|
345 |
return $out;
|
346 |
}
|
@@ -392,7 +392,7 @@ function mts_toggle( $atts, $content = null ) {
|
|
392 |
'title' => __('Toggle Title', 'wp-shortcode')
|
393 |
), $atts));
|
394 |
|
395 |
-
return '<div class="toggle clearfix wp_shortcodes_toggle"><div class="wps_togglet"><span>' . $title . '</span></div><div class="togglec clearfix">' . do_shortcode(trim($content)) . '</div></div><div class="clear"></div>';
|
396 |
}
|
397 |
|
398 |
/*-----------------------------------------------------------------------------------*/
|
4 |
Plugin URI: http://mythemeshop.com/
|
5 |
Description: With the vast array of shortcodes, you can quickly and easily build content for your posts and pages and turbocharge your blogging experience.
|
6 |
Author: MyThemeShop
|
7 |
+
Version: 1.4.8
|
8 |
Author URI: http://mythemeshop.com/
|
9 |
*/
|
10 |
|
96 |
'position' => 'left',
|
97 |
'rel' => '',
|
98 |
), $atts));
|
99 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_brown " .sanitize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
100 |
if ($position == 'center') {
|
101 |
$out = '<div class="button-center">'.$out.'</div>';
|
102 |
}
|
110 |
'position' => 'left',
|
111 |
'rel' => '',
|
112 |
), $atts));
|
113 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_blue " .sanitize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
114 |
if ($position == 'center') {
|
115 |
$out = '<div class="button-center">'.$out.'</div>';
|
116 |
}
|
124 |
'position' => 'left',
|
125 |
'rel' => '',
|
126 |
), $atts));
|
127 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_green " .sanitize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
128 |
if ($position == 'center') {
|
129 |
$out = '<div class="button-center">'.$out.'</div>';
|
130 |
}
|
138 |
'position' => 'left',
|
139 |
'rel' => '',
|
140 |
), $atts));
|
141 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_red " .sanitize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
142 |
if ($position == 'center') {
|
143 |
$out = '<div class="button-center">'.$out.'</div>';
|
144 |
}
|
152 |
'position' => 'left',
|
153 |
'rel' => '',
|
154 |
), $atts));
|
155 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_white " .sanitize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
156 |
if ($position == 'center') {
|
157 |
$out = '<div class="button-center">'.$out.'</div>';
|
158 |
}
|
166 |
'position' => 'left',
|
167 |
'rel' => '',
|
168 |
), $atts));
|
169 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_yellow " .sanitize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
170 |
if ($position == 'center') {
|
171 |
$out = '<div class="button-center">'.$out.'</div>';
|
172 |
}
|
311 |
'height' => '340',
|
312 |
'position' => 'left'
|
313 |
), $atts));
|
314 |
+
$out = "<div class=\"youtube-video " .sanitize_html_class( $position ) . "\"><iframe width=\"" .esc_attr( $width ) . "\" height=\"" .esc_attr( $height ) ."\" src=\"//www.youtube.com/embed/" . esc_attr( $id ) . "?rel=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
|
315 |
return $out;
|
316 |
}
|
317 |
|
322 |
'height' => '340',
|
323 |
'position' => 'left'
|
324 |
), $atts));
|
325 |
+
$out = "<div class=\"vimeo-video " . sanitize_html_class( $position ) . "\"><iframe width=\"" .esc_attr( $width ) . "\" height=\"" .esc_attr( $height ) ."\" src=\"//player.vimeo.com/video/" . esc_attr( $id ) . "?title=0&byline=0&portrait=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
|
326 |
return $out;
|
327 |
}
|
328 |
|
338 |
'position' => 'left'
|
339 |
), $atts));
|
340 |
if (!empty($src)) {
|
341 |
+
$out = "<div class=\"googlemaps " .sanitize_html_class( $position ) . "\"><iframe width=\"".esc_attr( $width )."\" height=\"".esc_attr( $height )."\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"".esc_url( $src )."&output=embed\"></iframe></div>";
|
342 |
} else {
|
343 |
+
$out = "<div class=\"googlemaps " .sanitize_html_class( $position ) . "\"><iframe width=\"".esc_attr( $width )."\" height=\"".esc_attr( $height )."\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"//maps.google.com/maps?q=".urlencode( $address )."&output=embed\"></iframe></div>";
|
344 |
}
|
345 |
return $out;
|
346 |
}
|
392 |
'title' => __('Toggle Title', 'wp-shortcode')
|
393 |
), $atts));
|
394 |
|
395 |
+
return '<div class="toggle clearfix wp_shortcodes_toggle"><div class="wps_togglet"><span>' . wp_kses_post( $title ) . '</span></div><div class="togglec clearfix">' . do_shortcode(trim($content)) . '</div></div><div class="clear"></div>';
|
396 |
}
|
397 |
|
398 |
/*-----------------------------------------------------------------------------------*/
|