Version Description
- Added shortcode attribute "rel" to buttons
- Updated tabs shortcode to support more characters like emojis!
- Fixed toggle shortcode styling bug on smaller screens
- Fixed notices when no title is provided in tabs shortcode
Download this release
Release Info
Developer | MyThemeShop |
Plugin | WP Shortcode by MyThemeShop |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.6 to 1.4.3
- js/wp-shortcode.js +37 -37
- readme.txt +99 -108
- tinymce/editor_plugin.css +6 -6
- tinymce/shortcodes.php +361 -361
- tinymce/tinymce.php +1 -1
- wp-shortcode.php +12 -12
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,108 +1,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.
|
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 |
-
*
|
70 |
-
|
71 |
-
|
72 |
-
* Fixed
|
73 |
-
|
74 |
-
= 1.4.
|
75 |
-
*
|
76 |
-
|
77 |
-
= 1.4.
|
78 |
-
*
|
79 |
-
|
80 |
-
|
81 |
-
*
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
* Fixed
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
*
|
92 |
-
*
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
* Fixed
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
* Made compatible with (with TinyMCE 3 & 4).
|
101 |
-
* Made translation-ready
|
102 |
-
* Added "centre" position for buttons.
|
103 |
-
|
104 |
-
= 1.1 =
|
105 |
-
* Fixed small issue in button shortcode CSS.
|
106 |
-
|
107 |
-
= 1.0 =
|
108 |
-
* 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.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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tinymce/editor_plugin.css
CHANGED
@@ -1,7 +1,7 @@
|
|
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 |
+
#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 }
|
tinymce/shortcodes.php
CHANGED
@@ -1,362 +1,362 @@
|
|
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="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"),
|
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 |
+
$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="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"),
|
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 |
?>
|
tinymce/tinymce.php
CHANGED
@@ -82,4 +82,4 @@ function mts_wpshortcodes_tinymce() {
|
|
82 |
$tinymce_button = new add_wpshortcodes_button();
|
83 |
}
|
84 |
add_action( 'after_setup_theme', 'mts_wpshortcodes_tinymce' );
|
85 |
-
?>
|
82 |
$tinymce_button = new add_wpshortcodes_button();
|
83 |
}
|
84 |
add_action( 'after_setup_theme', 'mts_wpshortcodes_tinymce' );
|
85 |
+
?>
|
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>' .
|
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.3
|
8 |
Author URI: http://mythemeshop.com/
|
9 |
*/
|
10 |
|
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 |
'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 |
'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 |
'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 |
'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 |
'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 |
'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 |
'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&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 " .$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 |
'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 |
/*-----------------------------------------------------------------------------------*/
|