WP Shortcode by MyThemeShop - Version 1.4.8

Version Description

  • Added filter to extend list of shortcodes
  • Minor fixes
Download this release

Release Info

Developer MyThemeShop
Plugin Icon 128x128 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 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.2
7
- Stable tag: 1.4.3
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.3 =
69
- * Added shortcode attribute "rel" to buttons
70
- * Updated tabs shortcode to support more characters like emojis!
71
- * Fixed toggle shortcode styling bug on smaller screens
72
- * Fixed notices when no title is provided in tabs shortcode
73
-
74
- = 1.4.2 =
75
- * Changed text domain to 'wp-shortcode'
76
-
77
- = 1.4.1 =
78
- * Fixed embed video issue in half column
79
-
80
- = 1.4 =
81
- * Complete revamp of notification and button shortcode design.
82
- * Removed unnecessary images.
83
- * Optimized CSS code.
84
-
85
- = 1.3 =
86
- * Added Tooltip shortcode
87
- * Fixed tab titles issue
88
- * Made embed URLs protocol-relative
89
-
90
- = 1.2 =
91
- * Made compatible with (with TinyMCE 3 & 4).
92
- * Made translation-ready
93
- * Added "centre" position for buttons.
94
-
95
- = 1.1 =
96
- * Fixed small issue in button shortcode CSS.
97
-
98
- = 1.0 =
99
- * Official plugin release.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
- #mnmshortcode_tag { width: 200px }
2
- #mnmshortcode_panel { margin-bottom: 8px }
3
- #mnmshortcode_panel table { width: 100%; font-size: 12px; }
4
- .mnmshortcode_description { color: #666; font-size: 12px; }
5
- .mnmshortcode_att_name { text-transform: capitalize }
6
- #mnmshortcode_panel input, #mnmshortcode_panel select, #mnmshortcode_panel textarea { width: 100%; padding: 4px 4px; font-size: 12px; font-family: 'Open Sans', sans-serif; }
 
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>Shortcode Panel</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">Select Shortcode</option>
34
- <?php
35
- if(is_array($shortcode_tags))
36
- {
37
- $i=1;
38
 
39
- foreach ($shortcode_tags as $mnm_shortcodekey => $short_code_value)
40
- {
41
- if( stristr($short_code_value, 'mts_') )
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
- $shortcodes = array(
3
- "button-brown" => array(
4
- "self-closing" => false,
5
- "atts" => array(
6
- "url" => "#",
7
- "target" => "_self",
8
- "position" => "left"
9
- ),
10
- "label" => __("Brown Button", "wp-shortcode"),
11
- "content" => __("Button text", "wp-shortcode"),
12
- "description" => __("Inserts a brown button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
13
- ),
14
- "button-blue" => array(
15
- "self-closing" => false,
16
- "atts" => array(
17
- "url" => "#",
18
- "target" => "_self",
19
- "position" => "left"
20
- ),
21
- "label" => __("Blue Button", "wp-shortcode"),
22
- "content" => __("Button text", "wp-shortcode") ,
23
- "description" => __("Inserts a blue button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
24
- ),
25
- "button-green" => array(
26
- "self-closing" => false,
27
- "atts" => array(
28
- "url" => "#",
29
- "target" => "_self",
30
- "position" => "left"
31
- ),
32
- "label" => __("Green Button", "wp-shortcode"),
33
- "content" => __("Button text", "wp-shortcode") ,
34
- "description" => __("Inserts a green button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
35
- ),
36
- "button-yellow" => array(
37
- "self-closing" => false,
38
- "atts" => array(
39
- "url" => "#",
40
- "target" => "_self",
41
- "position" => "left"
42
- ),
43
- "label" => __("Yellow Button", "wp-shortcode"),
44
- "content" => __("Button text", "wp-shortcode") ,
45
- "description" => __("Inserts a yellow button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
46
- ),
47
- "button-red" => array(
48
- "self-closing" => false,
49
- "atts" => array(
50
- "url" => "#",
51
- "target" => "_self",
52
- "position" => "left"
53
- ),
54
- "label" => __("Red Button", "wp-shortcode"),
55
- "content" => __("Button text", "wp-shortcode") ,
56
- "description" => __("Inserts a red button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
57
- ),
58
- "button-white" => array(
59
- "self-closing" => false,
60
- "atts" => array(
61
- "url" => "#",
62
- "target" => "_self",
63
- "position" => "left"
64
- ),
65
- "label" => __("White Button", "wp-shortcode"),
66
- "content" => __("Button text", "wp-shortcode") ,
67
- "description" => __("Inserts a white button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
68
- ),
69
- "alert-note" => array(
70
- "self-closing" => false,
71
- "atts" => array(),
72
- "label" => __("Alert Note", "wp-shortcode"),
73
- "content" => __("Note text", "wp-shortcode"),
74
- "description" => __("Display a note.", "wp-shortcode")
75
- ),
76
- "alert-announce" => array(
77
- "self-closing" => false,
78
- "atts" => array(),
79
- "label" => __("Alert Announce", "wp-shortcode"),
80
- "content" => __("Announce text", "wp-shortcode"),
81
- "description" => __("Display an announcement.", "wp-shortcode")
82
- ),
83
- "alert-success" => array(
84
- "self-closing" => false,
85
- "atts" => array(),
86
- "label" => __("Alert Success", "wp-shortcode"),
87
- "content" => __("Success text", "wp-shortcode"),
88
- "description" => __("Display a success message.", "wp-shortcode")
89
- ),
90
- "alert-warning" => array(
91
- "self-closing" => false,
92
- "atts" => array(),
93
- "label" => __("Alert Warning", "wp-shortcode"),
94
- "content" => __("Warning text", "wp-shortcode"),
95
- "description" => __("Display warning or error message.", "wp-shortcode")
96
- ),
97
- "youtube" => array(
98
- "self-closing" => true,
99
- "atts" => array(
100
- "id" => "#",
101
- "width" => "600",
102
- "height" => "340",
103
- "position" => "left"
104
- ),
105
- "label" => __("YouTube Video", "wp-shortcode"),
106
- "content" => "",
107
- "description" => __("Embed a Youtube Video", "wp-shortcode")
108
- ),
109
- "vimeo" => array(
110
- "self-closing" => true,
111
- "atts" => array(
112
- "id" => "#",
113
- "width" => "600",
114
- "height" => "340",
115
- "position" => "left"
116
- ),
117
- "label" => __("Vimeo Video", "wp-shortcode"),
118
- "content" => "",
119
- "description" => __("Embed a Vimeo Video.", "wp-shortcode")
120
- ),
121
- "googlemap" => array(
122
- "self-closing" => true,
123
- "atts" => array(
124
- "address" => "Libertyville, Illinois, USA",
125
- "width" => "600",
126
- "height" => "340",
127
- "position" => "left"
128
- ),
129
- "label" => __("Google Map", "wp-shortcode"),
130
- "content" => "",
131
- "description" => __("Embed a Google Map. Insert address or GPS location.", "wp-shortcode")
132
- ),
133
- "toggle" => array(
134
- "self-closing" => false,
135
- "atts" => array(
136
- "title" => "Toggle Title"
137
- ),
138
- "label" => __("Toggle", "wp-shortcode"),
139
- "content" => __("Insert Content Here", "wp-shortcode"),
140
- "content_field" => "textarea",
141
- "description" => __("Content will be shown after clicking on the toggle title.", "wp-shortcode")
142
- ),
143
- "tabs" => array(
144
- "self-closing" => false,
145
- "atts" => array(),
146
- "label" => __("Tabs", "wp-shortcode"),
147
- "content" => __("[tab title=&quot;Tab 1 Title&quot;]Insert tab 1 content here[/tab]\n[tab title=&quot;Tab 2 Title&quot;]Insert tab 2 content here[/tab]\n[tab title=&quot;Tab 3 Title&quot;]Insert tab 3 content here[/tab]", "wp-shortcode"),
148
- "content_field" => "textarea",
149
- "description" => __("Display content in tabbed form.", "wp-shortcode")
150
- ),
151
- "divider" => array(
152
- "self-closing" => true,
153
- "atts" => array(),
154
- "content" => "Divider",
155
- "description" => __("Simple horizontal divider.", "wp-shortcode")
156
- ),
157
- "divider_top" => array(
158
- "self-closing" => true,
159
- "atts" => array(),
160
- "content" => "Divider with link",
161
- "description" => __("Divider with an anchor link to top of page.", "wp-shortcode")
162
- ),
163
- "clear" => array(
164
- "self-closing" => true,
165
- "atts" => array(),
166
- "label" => __("Clear", "wp-shortcode"),
167
- "content" => "",
168
- "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")
169
- ),
170
-
171
- // Column Shortcodes
172
-
173
- "one_third" => array(
174
- "self-closing" => false,
175
- "atts" => array(),
176
- "label" => __("One Third", "wp-shortcode"),
177
- "content" => __("Column content", "wp-shortcode"),
178
- "content_field" => "textarea",
179
- "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")
180
- ),
181
- "one_third_last" => array(
182
- "self-closing" => false,
183
- "atts" => array(),
184
- "label" => __("One Third (Last)", "wp-shortcode"),
185
- "content" => __("Column content", "wp-shortcode"),
186
- "content_field" => "textarea",
187
- "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")
188
- ),
189
- "two_third" => array(
190
- "self-closing" => false,
191
- "atts" => array(),
192
- "label" => __("Two Third", "wp-shortcode"),
193
- "content" => __("Column content", "wp-shortcode"),
194
- "content_field" => "textarea",
195
- "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")
196
- ),
197
- "two_third_last" => array(
198
- "self-closing" => false,
199
- "atts" => array(),
200
- "label" => __("Two Third (Last)", "wp-shortcode"),
201
- "content" => __("Column content", "wp-shortcode"),
202
- "content_field" => "textarea",
203
- "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")
204
- ),
205
- "one_half" => array(
206
- "self-closing" => false,
207
- "atts" => array(),
208
- "label" => __("One Half", "wp-shortcode"),
209
- "content" => __("Column content", "wp-shortcode"),
210
- "content_field" => "textarea",
211
- "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")
212
- ),
213
- "one_half_last" => array(
214
- "self-closing" => false,
215
- "atts" => array(),
216
- "label" => __("One Half (Last)", "wp-shortcode"),
217
- "content" => __("Column content", "wp-shortcode"),
218
- "content_field" => "textarea",
219
- "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")
220
- ),
221
- "one_fourth" => array(
222
- "self-closing" => false,
223
- "atts" => array(),
224
- "label" => __("One Fourth", "wp-shortcode"),
225
- "content" => __("Column content", "wp-shortcode"),
226
- "content_field" => "textarea",
227
- "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")
228
- ),
229
- "one_fourth_last" => array(
230
- "self-closing" => false,
231
- "atts" => array(),
232
- "label" => __("One Fourth (Last)", "wp-shortcode"),
233
- "content" => __("Column content", "wp-shortcode"),
234
- "content_field" => "textarea",
235
- "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")
236
- ),
237
- "three_fourth" => array(
238
- "self-closing" => false,
239
- "atts" => array(),
240
- "label" => __("Three Fourth", "wp-shortcode"),
241
- "content" => __("Column content", "wp-shortcode"),
242
- "content_field" => "textarea",
243
- "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")
244
- ),
245
- "three_fourth_last" => array(
246
- "self-closing" => false,
247
- "atts" => array(),
248
- "label" => __("Three Fourth (Last)", "wp-shortcode"),
249
- "content" => __("Column content", "wp-shortcode"),
250
- "content_field" => "textarea",
251
- "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")
252
- ),
253
- "one_fifth" => array(
254
- "self-closing" => false,
255
- "atts" => array(),
256
- "label" => __("One Fifth", "wp-shortcode"),
257
- "content" => __("Column content", "wp-shortcode"),
258
- "content_field" => "textarea",
259
- "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")
260
- ),
261
- "one_fifth_last" => array(
262
- "self-closing" => false,
263
- "atts" => array(),
264
- "label" => __("One Fifth (Last)", "wp-shortcode"),
265
- "content" => __("Column content", "wp-shortcode"),
266
- "content_field" => "textarea",
267
- "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")
268
- ),
269
- "two_fifth" => array(
270
- "self-closing" => false,
271
- "atts" => array(),
272
- "label" => __("Two Fifth", "wp-shortcode"),
273
- "content" => __("Column content", "wp-shortcode"),
274
- "content_field" => "textarea",
275
- "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")
276
- ),
277
- "two_fifth_last" => array(
278
- "self-closing" => false,
279
- "atts" => array(),
280
- "label" => __("Two Fifth (Last)", "wp-shortcode"),
281
- "content" => __("Column content", "wp-shortcode"),
282
- "content_field" => "textarea",
283
- "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")
284
- ),
285
- "three_fifth" => array(
286
- "self-closing" => false,
287
- "atts" => array(),
288
- "label" => __("Three Fifth", "wp-shortcode"),
289
- "content" => __("Column content", "wp-shortcode"),
290
- "content_field" => "textarea",
291
- "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")
292
- ),
293
- "three_fifth_last" => array(
294
- "self-closing" => false,
295
- "atts" => array(),
296
- "label" => __("Three Fifth (Last)", "wp-shortcode"),
297
- "content" => __("Column content", "wp-shortcode"),
298
- "content_field" => "textarea",
299
- "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")
300
- ),
301
- "four_fifth" => array(
302
- "self-closing" => false,
303
- "atts" => array(),
304
- "label" => __("Four Fifth", "wp-shortcode"),
305
- "content" => __("Column content", "wp-shortcode"),
306
- "content_field" => "textarea",
307
- "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")
308
- ),
309
- "four_fifth_last" => array(
310
- "self-closing" => false,
311
- "atts" => array(),
312
- "label" => __("Four Fifth (Last)", "wp-shortcode"),
313
- "content" => __("Column content", "wp-shortcode"),
314
- "content_field" => "textarea",
315
- "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")
316
- ),
317
- "one_sixth" => array(
318
- "self-closing" => false,
319
- "atts" => array(),
320
- "label" => __("One Sixth", "wp-shortcode"),
321
- "content" => __("Column content", "wp-shortcode"),
322
- "content_field" => "textarea",
323
- "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")
324
- ),
325
- "one_sixth_last" => array(
326
- "self-closing" => false,
327
- "atts" => array(),
328
- "label" => __("One Sixth (Last)", "wp-shortcode"),
329
- "content" => __("Column content", "wp-shortcode"),
330
- "content_field" => "textarea",
331
- "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")
332
- ),
333
- "five_sixth" => array(
334
- "self-closing" => false,
335
- "atts" => array(),
336
- "label" => __("Five Sixth", "wp-shortcode"),
337
- "content" => __("Column content", "wp-shortcode"),
338
- "content_field" => "textarea",
339
- "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")
340
- ),
341
- "five_sixth_last" => array(
342
- "self-closing" => false,
343
- "atts" => array(),
344
- "label" => __("Five Sixth (Last)", "wp-shortcode"),
345
- "content" => __("Column content", "wp-shortcode"),
346
- "content_field" => "textarea",
347
- "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")
348
- ),
349
- "tooltip" => array(
350
- "self-closing" => false,
351
- "atts" => array(
352
- "content" => "Tooltip content",
353
- "gravity" => "n",
354
- "fade" => "0"
355
- ),
356
- "label" => __("Tooltip", "wp-shortcode"),
357
- "content" => __("Trigger text", "wp-shortcode"),
358
- "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")
359
- )
360
- );
361
- echo "<script type=\"text/javascript\">var shortcodes = ".json_encode($shortcodes).";</script>";
 
 
 
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=&quot;Tab 1 Title&quot;]Insert tab 1 content here[/tab]\n[tab title=&quot;Tab 2 Title&quot;]Insert tab 2 content here[/tab]\n[tab title=&quot;Tab 3 Title&quot;]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.3
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=\"" .$url. "\" target=\"" .$target. "\" class=\"buttons btn_brown " .$position. "\"" .($rel? " rel=\"" .$rel. "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
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=\"" .$url. "\" target=\"" .$target. "\" class=\"buttons btn_blue " .$position. "\"" .($rel? " rel=\"" .$rel. "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
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=\"" .$url. "\" target=\"" .$target. "\" class=\"buttons btn_green " .$position. "\"" .($rel? " rel=\"" .$rel. "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
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=\"" .$url. "\" target=\"" .$target. "\" class=\"buttons btn_red " .$position. "\"" .($rel? " rel=\"" .$rel. "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
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=\"" .$url. "\" target=\"" .$target. "\" class=\"buttons btn_white " .$position. "\"" .($rel? " rel=\"" .$rel. "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
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=\"" .$url. "\" target=\"" .$target. "\" class=\"buttons btn_yellow " .$position. "\"" .($rel? " rel=\"" .$rel. "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
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 " .$position . "\"><iframe width=\"" .$width . "\" height=\"" .$height ."\" src=\"//www.youtube.com/embed/" . $id . "?rel=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
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 " .$position . "\"><iframe width=\"" .$width . "\" height=\"" .$height ."\" src=\"//player.vimeo.com/video/" . $id . "?title=0&amp;byline=0&amp;portrait=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
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 " .$position . "\"><iframe width=\"".$width."\" height=\"".$height."\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"".$src."&output=embed\"></iframe></div>";
342
  } else {
343
- $out = "<div class=\"googlemaps " .$position . "\"><iframe width=\"".$width."\" height=\"".$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,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&amp;byline=0&amp;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
  /*-----------------------------------------------------------------------------------*/