Version Description
- Enqueued required scripts only on the pages where the plugin's shortcodes are used.
Download this release
Release Info
Developer | pratikmts |
Plugin | WP Shortcode by MyThemeShop |
Version | 1.4.10 |
Comparing to | |
See all releases |
Code changes from version 1.4.9 to 1.4.10
- css/tipsy.css +19 -19
- js/jquery.tipsy.js +258 -258
- languages/default.po +377 -377
- readme.txt +5 -2
- tinymce/shortcodes.php +367 -367
- wp-shortcode.php +79 -24
css/tipsy.css
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
-
.tipsy { font-size: 10px; position: absolute; padding: 5px; z-index: 100000; }
|
2 |
-
.tipsy-inner { background-color: #000; color: #FFF; max-width: 200px; padding: 5px 8px 4px 8px; text-align: center; }
|
3 |
-
/* Rounded corners */
|
4 |
-
.tipsy-inner { border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
|
5 |
-
/* Uncomment for shadow */
|
6 |
-
/*.tipsy-inner { box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; -moz-box-shadow: 0 0 5px #000000; }_NO__DOTCOMMA__AFTER__*/
|
7 |
-
.tipsy-arrow { position: absolute; width: 0; height: 0; line-height: 0; border: 5px dashed #000; }
|
8 |
-
/* Rules to colour arrows */
|
9 |
-
.tipsy-arrow-n { border-bottom-color: #000 }
|
10 |
-
.tipsy-arrow-s { border-top-color: #000 }
|
11 |
-
.tipsy-arrow-e { border-left-color: #000 }
|
12 |
-
.tipsy-arrow-w { border-right-color: #000 }
|
13 |
-
.tipsy-n .tipsy-arrow { top: 0px; left: 50%; margin-left: -5px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
|
14 |
-
.tipsy-nw .tipsy-arrow { top: 0; left: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
|
15 |
-
.tipsy-ne .tipsy-arrow { top: 0; right: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
|
16 |
-
.tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
|
17 |
-
.tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
|
18 |
-
.tipsy-se .tipsy-arrow { bottom: 0; right: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
|
19 |
-
.tipsy-e .tipsy-arrow { right: 0; top: 50%; margin-top: -5px; border-left-style: solid; border-right: none; border-top-color: transparent; border-bottom-color: transparent; }
|
20 |
.tipsy-w .tipsy-arrow { left: 0; top: 50%; margin-top: -5px; border-right-style: solid; border-left: none; border-top-color: transparent; border-bottom-color: transparent; }
|
1 |
+
.tipsy { font-size: 10px; position: absolute; padding: 5px; z-index: 100000; }
|
2 |
+
.tipsy-inner { background-color: #000; color: #FFF; max-width: 200px; padding: 5px 8px 4px 8px; text-align: center; }
|
3 |
+
/* Rounded corners */
|
4 |
+
.tipsy-inner { border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
|
5 |
+
/* Uncomment for shadow */
|
6 |
+
/*.tipsy-inner { box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; -moz-box-shadow: 0 0 5px #000000; }_NO__DOTCOMMA__AFTER__*/
|
7 |
+
.tipsy-arrow { position: absolute; width: 0; height: 0; line-height: 0; border: 5px dashed #000; }
|
8 |
+
/* Rules to colour arrows */
|
9 |
+
.tipsy-arrow-n { border-bottom-color: #000 }
|
10 |
+
.tipsy-arrow-s { border-top-color: #000 }
|
11 |
+
.tipsy-arrow-e { border-left-color: #000 }
|
12 |
+
.tipsy-arrow-w { border-right-color: #000 }
|
13 |
+
.tipsy-n .tipsy-arrow { top: 0px; left: 50%; margin-left: -5px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
|
14 |
+
.tipsy-nw .tipsy-arrow { top: 0; left: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
|
15 |
+
.tipsy-ne .tipsy-arrow { top: 0; right: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
|
16 |
+
.tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
|
17 |
+
.tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
|
18 |
+
.tipsy-se .tipsy-arrow { bottom: 0; right: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
|
19 |
+
.tipsy-e .tipsy-arrow { right: 0; top: 50%; margin-top: -5px; border-left-style: solid; border-right: none; border-top-color: transparent; border-bottom-color: transparent; }
|
20 |
.tipsy-w .tipsy-arrow { left: 0; top: 50%; margin-top: -5px; border-right-style: solid; border-left: none; border-top-color: transparent; border-bottom-color: transparent; }
|
js/jquery.tipsy.js
CHANGED
@@ -1,258 +1,258 @@
|
|
1 |
-
// tipsy, facebook style tooltips for jquery
|
2 |
-
// version 1.0.0a
|
3 |
-
// (c) 2008-2010 jason frame [jason@onehackoranother.com]
|
4 |
-
// released under the MIT license
|
5 |
-
|
6 |
-
(function($) {
|
7 |
-
|
8 |
-
function maybeCall(thing, ctx) {
|
9 |
-
return (typeof thing == 'function') ? (thing.call(ctx)) : thing;
|
10 |
-
};
|
11 |
-
|
12 |
-
function isElementInDOM(ele) {
|
13 |
-
while (ele = ele.parentNode) {
|
14 |
-
if (ele == document) return true;
|
15 |
-
}
|
16 |
-
return false;
|
17 |
-
};
|
18 |
-
|
19 |
-
function Tipsy(element, options) {
|
20 |
-
this.$element = $(element);
|
21 |
-
this.options = options;
|
22 |
-
this.enabled = true;
|
23 |
-
this.fixTitle();
|
24 |
-
};
|
25 |
-
|
26 |
-
Tipsy.prototype = {
|
27 |
-
show: function() {
|
28 |
-
var title = this.getTitle();
|
29 |
-
if (title && this.enabled) {
|
30 |
-
var $tip = this.tip();
|
31 |
-
|
32 |
-
$tip.find('.tipsy-inner')[this.options.html ? 'html' : 'text'](title);
|
33 |
-
$tip[0].className = 'tipsy'; // reset classname in case of dynamic gravity
|
34 |
-
$tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).prependTo(document.body);
|
35 |
-
|
36 |
-
var pos = $.extend({}, this.$element.offset(), {
|
37 |
-
width: this.$element[0].offsetWidth,
|
38 |
-
height: this.$element[0].offsetHeight
|
39 |
-
});
|
40 |
-
|
41 |
-
var actualWidth = $tip[0].offsetWidth,
|
42 |
-
actualHeight = $tip[0].offsetHeight,
|
43 |
-
gravity = maybeCall(this.options.gravity, this.$element[0]);
|
44 |
-
|
45 |
-
var tp;
|
46 |
-
switch (gravity.charAt(0)) {
|
47 |
-
case 'n':
|
48 |
-
tp = {top: pos.top + pos.height + this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
|
49 |
-
break;
|
50 |
-
case 's':
|
51 |
-
tp = {top: pos.top - actualHeight - this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
|
52 |
-
break;
|
53 |
-
case 'e':
|
54 |
-
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth - this.options.offset};
|
55 |
-
break;
|
56 |
-
case 'w':
|
57 |
-
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width + this.options.offset};
|
58 |
-
break;
|
59 |
-
}
|
60 |
-
|
61 |
-
if (gravity.length == 2) {
|
62 |
-
if (gravity.charAt(1) == 'w') {
|
63 |
-
tp.left = pos.left + pos.width / 2 - 15;
|
64 |
-
} else {
|
65 |
-
tp.left = pos.left + pos.width / 2 - actualWidth + 15;
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
$tip.css(tp).addClass('tipsy-' + gravity);
|
70 |
-
$tip.find('.tipsy-arrow')[0].className = 'tipsy-arrow tipsy-arrow-' + gravity.charAt(0);
|
71 |
-
if (this.options.className) {
|
72 |
-
$tip.addClass(maybeCall(this.options.className, this.$element[0]));
|
73 |
-
}
|
74 |
-
|
75 |
-
if (this.options.fade) {
|
76 |
-
$tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity});
|
77 |
-
} else {
|
78 |
-
$tip.css({visibility: 'visible', opacity: this.options.opacity});
|
79 |
-
}
|
80 |
-
}
|
81 |
-
},
|
82 |
-
|
83 |
-
hide: function() {
|
84 |
-
if (this.options.fade) {
|
85 |
-
this.tip().stop().fadeOut(function() { $(this).remove(); });
|
86 |
-
} else {
|
87 |
-
this.tip().remove();
|
88 |
-
}
|
89 |
-
},
|
90 |
-
|
91 |
-
fixTitle: function() {
|
92 |
-
var $e = this.$element;
|
93 |
-
if ($e.attr('title') || typeof($e.attr('original-title')) != 'string') {
|
94 |
-
$e.attr('original-title', $e.attr('title') || '').removeAttr('title');
|
95 |
-
}
|
96 |
-
},
|
97 |
-
|
98 |
-
getTitle: function() {
|
99 |
-
var title, $e = this.$element, o = this.options;
|
100 |
-
this.fixTitle();
|
101 |
-
var title, o = this.options;
|
102 |
-
if (typeof o.title == 'string') {
|
103 |
-
title = $e.attr(o.title == 'title' ? 'original-title' : o.title);
|
104 |
-
} else if (typeof o.title == 'function') {
|
105 |
-
title = o.title.call($e[0]);
|
106 |
-
}
|
107 |
-
title = ('' + title).replace(/(^\s*|\s*$)/, "");
|
108 |
-
return title || o.fallback;
|
109 |
-
},
|
110 |
-
|
111 |
-
tip: function() {
|
112 |
-
if (!this.$tip) {
|
113 |
-
this.$tip = $('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');
|
114 |
-
this.$tip.data('tipsy-pointee', this.$element[0]);
|
115 |
-
}
|
116 |
-
return this.$tip;
|
117 |
-
},
|
118 |
-
|
119 |
-
validate: function() {
|
120 |
-
if (!this.$element[0].parentNode) {
|
121 |
-
this.hide();
|
122 |
-
this.$element = null;
|
123 |
-
this.options = null;
|
124 |
-
}
|
125 |
-
},
|
126 |
-
|
127 |
-
enable: function() { this.enabled = true; },
|
128 |
-
disable: function() { this.enabled = false; },
|
129 |
-
toggleEnabled: function() { this.enabled = !this.enabled; }
|
130 |
-
};
|
131 |
-
|
132 |
-
$.fn.tipsy = function(options) {
|
133 |
-
|
134 |
-
if (options === true) {
|
135 |
-
return this.data('tipsy');
|
136 |
-
} else if (typeof options == 'string') {
|
137 |
-
var tipsy = this.data('tipsy');
|
138 |
-
if (tipsy) tipsy[options]();
|
139 |
-
return this;
|
140 |
-
}
|
141 |
-
|
142 |
-
options = $.extend({}, $.fn.tipsy.defaults, options);
|
143 |
-
|
144 |
-
function get(ele) {
|
145 |
-
var tipsy = $.data(ele, 'tipsy');
|
146 |
-
if (!tipsy) {
|
147 |
-
tipsy = new Tipsy(ele, $.fn.tipsy.elementOptions(ele, options));
|
148 |
-
$.data(ele, 'tipsy', tipsy);
|
149 |
-
}
|
150 |
-
return tipsy;
|
151 |
-
}
|
152 |
-
|
153 |
-
function enter() {
|
154 |
-
var tipsy = get(this);
|
155 |
-
tipsy.hoverState = 'in';
|
156 |
-
if (options.delayIn == 0) {
|
157 |
-
tipsy.show();
|
158 |
-
} else {
|
159 |
-
tipsy.fixTitle();
|
160 |
-
setTimeout(function() { if (tipsy.hoverState == 'in') tipsy.show(); }, options.delayIn);
|
161 |
-
}
|
162 |
-
};
|
163 |
-
|
164 |
-
function leave() {
|
165 |
-
var tipsy = get(this);
|
166 |
-
tipsy.hoverState = 'out';
|
167 |
-
if (options.delayOut == 0) {
|
168 |
-
tipsy.hide();
|
169 |
-
} else {
|
170 |
-
setTimeout(function() { if (tipsy.hoverState == 'out') tipsy.hide(); }, options.delayOut);
|
171 |
-
}
|
172 |
-
};
|
173 |
-
|
174 |
-
if (!options.live) this.each(function() { get(this); });
|
175 |
-
|
176 |
-
if (options.trigger != 'manual') {
|
177 |
-
var binder = options.live ? 'live' : 'bind',
|
178 |
-
eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
|
179 |
-
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
|
180 |
-
this[binder](eventIn, enter)[binder](eventOut, leave);
|
181 |
-
}
|
182 |
-
|
183 |
-
return this;
|
184 |
-
|
185 |
-
};
|
186 |
-
|
187 |
-
$.fn.tipsy.defaults = {
|
188 |
-
className: null,
|
189 |
-
delayIn: 0,
|
190 |
-
delayOut: 0,
|
191 |
-
fade: false,
|
192 |
-
fallback: '',
|
193 |
-
gravity: 'n',
|
194 |
-
html: false,
|
195 |
-
live: false,
|
196 |
-
offset: 0,
|
197 |
-
opacity: 0.8,
|
198 |
-
title: 'title',
|
199 |
-
trigger: 'hover'
|
200 |
-
};
|
201 |
-
|
202 |
-
$.fn.tipsy.revalidate = function() {
|
203 |
-
$('.tipsy').each(function() {
|
204 |
-
var pointee = $.data(this, 'tipsy-pointee');
|
205 |
-
if (!pointee || !isElementInDOM(pointee)) {
|
206 |
-
$(this).remove();
|
207 |
-
}
|
208 |
-
});
|
209 |
-
};
|
210 |
-
|
211 |
-
// Overwrite this method to provide options on a per-element basis.
|
212 |
-
// For example, you could store the gravity in a 'tipsy-gravity' attribute:
|
213 |
-
// return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' });
|
214 |
-
// (remember - do not modify 'options' in place!)
|
215 |
-
$.fn.tipsy.elementOptions = function(ele, options) {
|
216 |
-
return $.metadata ? $.extend({}, options, $(ele).metadata()) : options;
|
217 |
-
};
|
218 |
-
|
219 |
-
$.fn.tipsy.autoNS = function() {
|
220 |
-
return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
|
221 |
-
};
|
222 |
-
|
223 |
-
$.fn.tipsy.autoWE = function() {
|
224 |
-
return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
|
225 |
-
};
|
226 |
-
|
227 |
-
/**
|
228 |
-
* yields a closure of the supplied parameters, producing a function that takes
|
229 |
-
* no arguments and is suitable for use as an autogravity function like so:
|
230 |
-
*
|
231 |
-
* @param margin (int) - distance from the viewable region edge that an
|
232 |
-
* element should be before setting its tooltip's gravity to be away
|
233 |
-
* from that edge.
|
234 |
-
* @param prefer (string, e.g. 'n', 'sw', 'w') - the direction to prefer
|
235 |
-
* if there are no viewable region edges effecting the tooltip's
|
236 |
-
* gravity. It will try to vary from this minimally, for example,
|
237 |
-
* if 'sw' is preferred and an element is near the right viewable
|
238 |
-
* region edge, but not the top edge, it will set the gravity for
|
239 |
-
* that element's tooltip to be 'se', preserving the southern
|
240 |
-
* component.
|
241 |
-
*/
|
242 |
-
$.fn.tipsy.autoBounds = function(margin, prefer) {
|
243 |
-
return function() {
|
244 |
-
var dir = {ns: prefer[0], ew: (prefer.length > 1 ? prefer[1] : false)},
|
245 |
-
boundTop = $(document).scrollTop() + margin,
|
246 |
-
boundLeft = $(document).scrollLeft() + margin,
|
247 |
-
$this = $(this);
|
248 |
-
|
249 |
-
if ($this.offset().top < boundTop) dir.ns = 'n';
|
250 |
-
if ($this.offset().left < boundLeft) dir.ew = 'w';
|
251 |
-
if ($(window).width() + $(document).scrollLeft() - $this.offset().left < margin) dir.ew = 'e';
|
252 |
-
if ($(window).height() + $(document).scrollTop() - $this.offset().top < margin) dir.ns = 's';
|
253 |
-
|
254 |
-
return dir.ns + (dir.ew ? dir.ew : '');
|
255 |
-
}
|
256 |
-
};
|
257 |
-
|
258 |
-
})(jQuery);
|
1 |
+
// tipsy, facebook style tooltips for jquery
|
2 |
+
// version 1.0.0a
|
3 |
+
// (c) 2008-2010 jason frame [jason@onehackoranother.com]
|
4 |
+
// released under the MIT license
|
5 |
+
|
6 |
+
(function($) {
|
7 |
+
|
8 |
+
function maybeCall(thing, ctx) {
|
9 |
+
return (typeof thing == 'function') ? (thing.call(ctx)) : thing;
|
10 |
+
};
|
11 |
+
|
12 |
+
function isElementInDOM(ele) {
|
13 |
+
while (ele = ele.parentNode) {
|
14 |
+
if (ele == document) return true;
|
15 |
+
}
|
16 |
+
return false;
|
17 |
+
};
|
18 |
+
|
19 |
+
function Tipsy(element, options) {
|
20 |
+
this.$element = $(element);
|
21 |
+
this.options = options;
|
22 |
+
this.enabled = true;
|
23 |
+
this.fixTitle();
|
24 |
+
};
|
25 |
+
|
26 |
+
Tipsy.prototype = {
|
27 |
+
show: function() {
|
28 |
+
var title = this.getTitle();
|
29 |
+
if (title && this.enabled) {
|
30 |
+
var $tip = this.tip();
|
31 |
+
|
32 |
+
$tip.find('.tipsy-inner')[this.options.html ? 'html' : 'text'](title);
|
33 |
+
$tip[0].className = 'tipsy'; // reset classname in case of dynamic gravity
|
34 |
+
$tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).prependTo(document.body);
|
35 |
+
|
36 |
+
var pos = $.extend({}, this.$element.offset(), {
|
37 |
+
width: this.$element[0].offsetWidth,
|
38 |
+
height: this.$element[0].offsetHeight
|
39 |
+
});
|
40 |
+
|
41 |
+
var actualWidth = $tip[0].offsetWidth,
|
42 |
+
actualHeight = $tip[0].offsetHeight,
|
43 |
+
gravity = maybeCall(this.options.gravity, this.$element[0]);
|
44 |
+
|
45 |
+
var tp;
|
46 |
+
switch (gravity.charAt(0)) {
|
47 |
+
case 'n':
|
48 |
+
tp = {top: pos.top + pos.height + this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
|
49 |
+
break;
|
50 |
+
case 's':
|
51 |
+
tp = {top: pos.top - actualHeight - this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
|
52 |
+
break;
|
53 |
+
case 'e':
|
54 |
+
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth - this.options.offset};
|
55 |
+
break;
|
56 |
+
case 'w':
|
57 |
+
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width + this.options.offset};
|
58 |
+
break;
|
59 |
+
}
|
60 |
+
|
61 |
+
if (gravity.length == 2) {
|
62 |
+
if (gravity.charAt(1) == 'w') {
|
63 |
+
tp.left = pos.left + pos.width / 2 - 15;
|
64 |
+
} else {
|
65 |
+
tp.left = pos.left + pos.width / 2 - actualWidth + 15;
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
$tip.css(tp).addClass('tipsy-' + gravity);
|
70 |
+
$tip.find('.tipsy-arrow')[0].className = 'tipsy-arrow tipsy-arrow-' + gravity.charAt(0);
|
71 |
+
if (this.options.className) {
|
72 |
+
$tip.addClass(maybeCall(this.options.className, this.$element[0]));
|
73 |
+
}
|
74 |
+
|
75 |
+
if (this.options.fade) {
|
76 |
+
$tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity});
|
77 |
+
} else {
|
78 |
+
$tip.css({visibility: 'visible', opacity: this.options.opacity});
|
79 |
+
}
|
80 |
+
}
|
81 |
+
},
|
82 |
+
|
83 |
+
hide: function() {
|
84 |
+
if (this.options.fade) {
|
85 |
+
this.tip().stop().fadeOut(function() { $(this).remove(); });
|
86 |
+
} else {
|
87 |
+
this.tip().remove();
|
88 |
+
}
|
89 |
+
},
|
90 |
+
|
91 |
+
fixTitle: function() {
|
92 |
+
var $e = this.$element;
|
93 |
+
if ($e.attr('title') || typeof($e.attr('original-title')) != 'string') {
|
94 |
+
$e.attr('original-title', $e.attr('title') || '').removeAttr('title');
|
95 |
+
}
|
96 |
+
},
|
97 |
+
|
98 |
+
getTitle: function() {
|
99 |
+
var title, $e = this.$element, o = this.options;
|
100 |
+
this.fixTitle();
|
101 |
+
var title, o = this.options;
|
102 |
+
if (typeof o.title == 'string') {
|
103 |
+
title = $e.attr(o.title == 'title' ? 'original-title' : o.title);
|
104 |
+
} else if (typeof o.title == 'function') {
|
105 |
+
title = o.title.call($e[0]);
|
106 |
+
}
|
107 |
+
title = ('' + title).replace(/(^\s*|\s*$)/, "");
|
108 |
+
return title || o.fallback;
|
109 |
+
},
|
110 |
+
|
111 |
+
tip: function() {
|
112 |
+
if (!this.$tip) {
|
113 |
+
this.$tip = $('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');
|
114 |
+
this.$tip.data('tipsy-pointee', this.$element[0]);
|
115 |
+
}
|
116 |
+
return this.$tip;
|
117 |
+
},
|
118 |
+
|
119 |
+
validate: function() {
|
120 |
+
if (!this.$element[0].parentNode) {
|
121 |
+
this.hide();
|
122 |
+
this.$element = null;
|
123 |
+
this.options = null;
|
124 |
+
}
|
125 |
+
},
|
126 |
+
|
127 |
+
enable: function() { this.enabled = true; },
|
128 |
+
disable: function() { this.enabled = false; },
|
129 |
+
toggleEnabled: function() { this.enabled = !this.enabled; }
|
130 |
+
};
|
131 |
+
|
132 |
+
$.fn.tipsy = function(options) {
|
133 |
+
|
134 |
+
if (options === true) {
|
135 |
+
return this.data('tipsy');
|
136 |
+
} else if (typeof options == 'string') {
|
137 |
+
var tipsy = this.data('tipsy');
|
138 |
+
if (tipsy) tipsy[options]();
|
139 |
+
return this;
|
140 |
+
}
|
141 |
+
|
142 |
+
options = $.extend({}, $.fn.tipsy.defaults, options);
|
143 |
+
|
144 |
+
function get(ele) {
|
145 |
+
var tipsy = $.data(ele, 'tipsy');
|
146 |
+
if (!tipsy) {
|
147 |
+
tipsy = new Tipsy(ele, $.fn.tipsy.elementOptions(ele, options));
|
148 |
+
$.data(ele, 'tipsy', tipsy);
|
149 |
+
}
|
150 |
+
return tipsy;
|
151 |
+
}
|
152 |
+
|
153 |
+
function enter() {
|
154 |
+
var tipsy = get(this);
|
155 |
+
tipsy.hoverState = 'in';
|
156 |
+
if (options.delayIn == 0) {
|
157 |
+
tipsy.show();
|
158 |
+
} else {
|
159 |
+
tipsy.fixTitle();
|
160 |
+
setTimeout(function() { if (tipsy.hoverState == 'in') tipsy.show(); }, options.delayIn);
|
161 |
+
}
|
162 |
+
};
|
163 |
+
|
164 |
+
function leave() {
|
165 |
+
var tipsy = get(this);
|
166 |
+
tipsy.hoverState = 'out';
|
167 |
+
if (options.delayOut == 0) {
|
168 |
+
tipsy.hide();
|
169 |
+
} else {
|
170 |
+
setTimeout(function() { if (tipsy.hoverState == 'out') tipsy.hide(); }, options.delayOut);
|
171 |
+
}
|
172 |
+
};
|
173 |
+
|
174 |
+
if (!options.live) this.each(function() { get(this); });
|
175 |
+
|
176 |
+
if (options.trigger != 'manual') {
|
177 |
+
var binder = options.live ? 'live' : 'bind',
|
178 |
+
eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
|
179 |
+
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
|
180 |
+
this[binder](eventIn, enter)[binder](eventOut, leave);
|
181 |
+
}
|
182 |
+
|
183 |
+
return this;
|
184 |
+
|
185 |
+
};
|
186 |
+
|
187 |
+
$.fn.tipsy.defaults = {
|
188 |
+
className: null,
|
189 |
+
delayIn: 0,
|
190 |
+
delayOut: 0,
|
191 |
+
fade: false,
|
192 |
+
fallback: '',
|
193 |
+
gravity: 'n',
|
194 |
+
html: false,
|
195 |
+
live: false,
|
196 |
+
offset: 0,
|
197 |
+
opacity: 0.8,
|
198 |
+
title: 'title',
|
199 |
+
trigger: 'hover'
|
200 |
+
};
|
201 |
+
|
202 |
+
$.fn.tipsy.revalidate = function() {
|
203 |
+
$('.tipsy').each(function() {
|
204 |
+
var pointee = $.data(this, 'tipsy-pointee');
|
205 |
+
if (!pointee || !isElementInDOM(pointee)) {
|
206 |
+
$(this).remove();
|
207 |
+
}
|
208 |
+
});
|
209 |
+
};
|
210 |
+
|
211 |
+
// Overwrite this method to provide options on a per-element basis.
|
212 |
+
// For example, you could store the gravity in a 'tipsy-gravity' attribute:
|
213 |
+
// return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' });
|
214 |
+
// (remember - do not modify 'options' in place!)
|
215 |
+
$.fn.tipsy.elementOptions = function(ele, options) {
|
216 |
+
return $.metadata ? $.extend({}, options, $(ele).metadata()) : options;
|
217 |
+
};
|
218 |
+
|
219 |
+
$.fn.tipsy.autoNS = function() {
|
220 |
+
return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
|
221 |
+
};
|
222 |
+
|
223 |
+
$.fn.tipsy.autoWE = function() {
|
224 |
+
return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
|
225 |
+
};
|
226 |
+
|
227 |
+
/**
|
228 |
+
* yields a closure of the supplied parameters, producing a function that takes
|
229 |
+
* no arguments and is suitable for use as an autogravity function like so:
|
230 |
+
*
|
231 |
+
* @param margin (int) - distance from the viewable region edge that an
|
232 |
+
* element should be before setting its tooltip's gravity to be away
|
233 |
+
* from that edge.
|
234 |
+
* @param prefer (string, e.g. 'n', 'sw', 'w') - the direction to prefer
|
235 |
+
* if there are no viewable region edges effecting the tooltip's
|
236 |
+
* gravity. It will try to vary from this minimally, for example,
|
237 |
+
* if 'sw' is preferred and an element is near the right viewable
|
238 |
+
* region edge, but not the top edge, it will set the gravity for
|
239 |
+
* that element's tooltip to be 'se', preserving the southern
|
240 |
+
* component.
|
241 |
+
*/
|
242 |
+
$.fn.tipsy.autoBounds = function(margin, prefer) {
|
243 |
+
return function() {
|
244 |
+
var dir = {ns: prefer[0], ew: (prefer.length > 1 ? prefer[1] : false)},
|
245 |
+
boundTop = $(document).scrollTop() + margin,
|
246 |
+
boundLeft = $(document).scrollLeft() + margin,
|
247 |
+
$this = $(this);
|
248 |
+
|
249 |
+
if ($this.offset().top < boundTop) dir.ns = 'n';
|
250 |
+
if ($this.offset().left < boundLeft) dir.ew = 'w';
|
251 |
+
if ($(window).width() + $(document).scrollLeft() - $this.offset().left < margin) dir.ew = 'e';
|
252 |
+
if ($(window).height() + $(document).scrollTop() - $this.offset().top < margin) dir.ns = 's';
|
253 |
+
|
254 |
+
return dir.ns + (dir.ew ? dir.ew : '');
|
255 |
+
}
|
256 |
+
};
|
257 |
+
|
258 |
+
})(jQuery);
|
languages/default.po
CHANGED
@@ -1,377 +1,377 @@
|
|
1 |
-
# Copyright (C) 2017 WP Shortcode by MyThemeShop
|
2 |
-
# This file is distributed under the same license as the WP Shortcode by MyThemeShop package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: WP Shortcode by MyThemeShop 1.4.3\n"
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-shortcode\n"
|
7 |
-
"POT-Creation-Date: 2017-02-07 15:55:48+00:00\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
|
12 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
-
|
15 |
-
#: tinymce/editor_plugin.php:6
|
16 |
-
msgid "You are not allowed to be here"
|
17 |
-
msgstr ""
|
18 |
-
|
19 |
-
#: tinymce/editor_plugin.php:31
|
20 |
-
msgid "Select Shortcode"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: tinymce/editor_plugin.php:68
|
24 |
-
msgid "Cancel"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: tinymce/editor_plugin.php:72
|
28 |
-
msgid "Insert"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: tinymce/shortcodes.php:10
|
32 |
-
msgid "Brown Button"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: tinymce/shortcodes.php:11 tinymce/shortcodes.php:22
|
36 |
-
#: tinymce/shortcodes.php:33 tinymce/shortcodes.php:44
|
37 |
-
#: tinymce/shortcodes.php:55 tinymce/shortcodes.php:66
|
38 |
-
msgid "Button text"
|
39 |
-
msgstr ""
|
40 |
-
|
41 |
-
#: tinymce/shortcodes.php:12
|
42 |
-
msgid ""
|
43 |
-
"Inserts a brown button. Set target to <strong>_blank</strong> to open link "
|
44 |
-
"in a new window."
|
45 |
-
msgstr ""
|
46 |
-
|
47 |
-
#: tinymce/shortcodes.php:21
|
48 |
-
msgid "Blue Button"
|
49 |
-
msgstr ""
|
50 |
-
|
51 |
-
#: tinymce/shortcodes.php:23
|
52 |
-
msgid ""
|
53 |
-
"Inserts a blue button. Set target to <strong>_blank</strong> to open link in "
|
54 |
-
"a new window."
|
55 |
-
msgstr ""
|
56 |
-
|
57 |
-
#: tinymce/shortcodes.php:32
|
58 |
-
msgid "Green Button"
|
59 |
-
msgstr ""
|
60 |
-
|
61 |
-
#: tinymce/shortcodes.php:34
|
62 |
-
msgid ""
|
63 |
-
"Inserts a green button. Set target to <strong>_blank</strong> to open link "
|
64 |
-
"in a new window."
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: tinymce/shortcodes.php:43
|
68 |
-
msgid "Yellow Button"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: tinymce/shortcodes.php:45
|
72 |
-
msgid ""
|
73 |
-
"Inserts a yellow button. Set target to <strong>_blank</strong> to open link "
|
74 |
-
"in a new window."
|
75 |
-
msgstr ""
|
76 |
-
|
77 |
-
#: tinymce/shortcodes.php:54
|
78 |
-
msgid "Red Button"
|
79 |
-
msgstr ""
|
80 |
-
|
81 |
-
#: tinymce/shortcodes.php:56
|
82 |
-
msgid ""
|
83 |
-
"Inserts a red button. Set target to <strong>_blank</strong> to open link in "
|
84 |
-
"a new window."
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: tinymce/shortcodes.php:65
|
88 |
-
msgid "White Button"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
-
#: tinymce/shortcodes.php:67
|
92 |
-
msgid ""
|
93 |
-
"Inserts a white button. Set target to <strong>_blank</strong> to open link "
|
94 |
-
"in a new window."
|
95 |
-
msgstr ""
|
96 |
-
|
97 |
-
#: tinymce/shortcodes.php:72
|
98 |
-
msgid "Alert Note"
|
99 |
-
msgstr ""
|
100 |
-
|
101 |
-
#: tinymce/shortcodes.php:73
|
102 |
-
msgid "Note text"
|
103 |
-
msgstr ""
|
104 |
-
|
105 |
-
#: tinymce/shortcodes.php:74
|
106 |
-
msgid "Display a note."
|
107 |
-
msgstr ""
|
108 |
-
|
109 |
-
#: tinymce/shortcodes.php:79
|
110 |
-
msgid "Alert Announce"
|
111 |
-
msgstr ""
|
112 |
-
|
113 |
-
#: tinymce/shortcodes.php:80
|
114 |
-
msgid "Announce text"
|
115 |
-
msgstr ""
|
116 |
-
|
117 |
-
#: tinymce/shortcodes.php:81
|
118 |
-
msgid "Display an announcement."
|
119 |
-
msgstr ""
|
120 |
-
|
121 |
-
#: tinymce/shortcodes.php:86
|
122 |
-
msgid "Alert Success"
|
123 |
-
msgstr ""
|
124 |
-
|
125 |
-
#: tinymce/shortcodes.php:87
|
126 |
-
msgid "Success text"
|
127 |
-
msgstr ""
|
128 |
-
|
129 |
-
#: tinymce/shortcodes.php:88
|
130 |
-
msgid "Display a success message."
|
131 |
-
msgstr ""
|
132 |
-
|
133 |
-
#: tinymce/shortcodes.php:93
|
134 |
-
msgid "Alert Warning"
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#: tinymce/shortcodes.php:94
|
138 |
-
msgid "Warning text"
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#: tinymce/shortcodes.php:95
|
142 |
-
msgid "Display warning or error message."
|
143 |
-
msgstr ""
|
144 |
-
|
145 |
-
#: tinymce/shortcodes.php:105
|
146 |
-
msgid "YouTube Video"
|
147 |
-
msgstr ""
|
148 |
-
|
149 |
-
#: tinymce/shortcodes.php:107
|
150 |
-
msgid "Embed a Youtube Video"
|
151 |
-
msgstr ""
|
152 |
-
|
153 |
-
#: tinymce/shortcodes.php:117
|
154 |
-
msgid "Vimeo Video"
|
155 |
-
msgstr ""
|
156 |
-
|
157 |
-
#: tinymce/shortcodes.php:119
|
158 |
-
msgid "Embed a Vimeo Video."
|
159 |
-
msgstr ""
|
160 |
-
|
161 |
-
#: tinymce/shortcodes.php:129
|
162 |
-
msgid "Google Map"
|
163 |
-
msgstr ""
|
164 |
-
|
165 |
-
#: tinymce/shortcodes.php:131
|
166 |
-
msgid "Embed a Google Map. Insert address or GPS location."
|
167 |
-
msgstr ""
|
168 |
-
|
169 |
-
#: tinymce/shortcodes.php:138
|
170 |
-
msgid "Toggle"
|
171 |
-
msgstr ""
|
172 |
-
|
173 |
-
#: tinymce/shortcodes.php:139
|
174 |
-
msgid "Insert Content Here"
|
175 |
-
msgstr ""
|
176 |
-
|
177 |
-
#: tinymce/shortcodes.php:141
|
178 |
-
msgid "Content will be shown after clicking on the toggle title."
|
179 |
-
msgstr ""
|
180 |
-
|
181 |
-
#: tinymce/shortcodes.php:146
|
182 |
-
msgid "Tabs"
|
183 |
-
msgstr ""
|
184 |
-
|
185 |
-
#: tinymce/shortcodes.php:147
|
186 |
-
msgid ""
|
187 |
-
"[tab title="Tab 1 Title"]Insert tab 1 content here[/tab]\n"
|
188 |
-
"[tab title="Tab 2 Title"]Insert tab 2 content here[/tab]\n"
|
189 |
-
"[tab title="Tab 3 Title"]Insert tab 3 content here[/tab]"
|
190 |
-
msgstr ""
|
191 |
-
|
192 |
-
#: tinymce/shortcodes.php:149
|
193 |
-
msgid "Display content in tabbed form."
|
194 |
-
msgstr ""
|
195 |
-
|
196 |
-
#: tinymce/shortcodes.php:155
|
197 |
-
msgid "Simple horizontal divider."
|
198 |
-
msgstr ""
|
199 |
-
|
200 |
-
#: tinymce/shortcodes.php:161
|
201 |
-
msgid "Divider with an anchor link to top of page."
|
202 |
-
msgstr ""
|
203 |
-
|
204 |
-
#: tinymce/shortcodes.php:166
|
205 |
-
msgid "Clear"
|
206 |
-
msgstr ""
|
207 |
-
|
208 |
-
#: tinymce/shortcodes.php:168
|
209 |
-
msgid ""
|
210 |
-
"Clear shortcode can be used to clear an element of its neighbors, no "
|
211 |
-
"floating elements are allowed on the left or the right side."
|
212 |
-
msgstr ""
|
213 |
-
|
214 |
-
#: tinymce/shortcodes.php:176
|
215 |
-
msgid "One Third"
|
216 |
-
msgstr ""
|
217 |
-
|
218 |
-
#: tinymce/shortcodes.php:177 tinymce/shortcodes.php:185
|
219 |
-
#: tinymce/shortcodes.php:193 tinymce/shortcodes.php:201
|
220 |
-
#: tinymce/shortcodes.php:209 tinymce/shortcodes.php:217
|
221 |
-
#: tinymce/shortcodes.php:225 tinymce/shortcodes.php:233
|
222 |
-
#: tinymce/shortcodes.php:241 tinymce/shortcodes.php:249
|
223 |
-
#: tinymce/shortcodes.php:257 tinymce/shortcodes.php:265
|
224 |
-
#: tinymce/shortcodes.php:273 tinymce/shortcodes.php:281
|
225 |
-
#: tinymce/shortcodes.php:289 tinymce/shortcodes.php:297
|
226 |
-
#: tinymce/shortcodes.php:305 tinymce/shortcodes.php:313
|
227 |
-
#: tinymce/shortcodes.php:321 tinymce/shortcodes.php:329
|
228 |
-
#: tinymce/shortcodes.php:337 tinymce/shortcodes.php:345
|
229 |
-
msgid "Column content"
|
230 |
-
msgstr ""
|
231 |
-
|
232 |
-
#: tinymce/shortcodes.php:179 tinymce/shortcodes.php:187
|
233 |
-
#: tinymce/shortcodes.php:195 tinymce/shortcodes.php:203
|
234 |
-
#: tinymce/shortcodes.php:211 tinymce/shortcodes.php:219
|
235 |
-
#: tinymce/shortcodes.php:227 tinymce/shortcodes.php:235
|
236 |
-
#: tinymce/shortcodes.php:243 tinymce/shortcodes.php:251
|
237 |
-
#: tinymce/shortcodes.php:259 tinymce/shortcodes.php:267
|
238 |
-
#: tinymce/shortcodes.php:275 tinymce/shortcodes.php:283
|
239 |
-
#: tinymce/shortcodes.php:291 tinymce/shortcodes.php:299
|
240 |
-
#: tinymce/shortcodes.php:307 tinymce/shortcodes.php:315
|
241 |
-
#: tinymce/shortcodes.php:323 tinymce/shortcodes.php:331
|
242 |
-
#: tinymce/shortcodes.php:339 tinymce/shortcodes.php:347
|
243 |
-
msgid ""
|
244 |
-
"Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. "
|
245 |
-
"<br /><strong>One Third + One Third + One Third (Last)</strong>"
|
246 |
-
msgstr ""
|
247 |
-
|
248 |
-
#: tinymce/shortcodes.php:184
|
249 |
-
msgid "One Third (Last)"
|
250 |
-
msgstr ""
|
251 |
-
|
252 |
-
#: tinymce/shortcodes.php:192
|
253 |
-
msgid "Two Third"
|
254 |
-
msgstr ""
|
255 |
-
|
256 |
-
#: tinymce/shortcodes.php:200
|
257 |
-
msgid "Two Third (Last)"
|
258 |
-
msgstr ""
|
259 |
-
|
260 |
-
#: tinymce/shortcodes.php:208
|
261 |
-
msgid "One Half"
|
262 |
-
msgstr ""
|
263 |
-
|
264 |
-
#: tinymce/shortcodes.php:216
|
265 |
-
msgid "One Half (Last)"
|
266 |
-
msgstr ""
|
267 |
-
|
268 |
-
#: tinymce/shortcodes.php:224
|
269 |
-
msgid "One Fourth"
|
270 |
-
msgstr ""
|
271 |
-
|
272 |
-
#: tinymce/shortcodes.php:232
|
273 |
-
msgid "One Fourth (Last)"
|
274 |
-
msgstr ""
|
275 |
-
|
276 |
-
#: tinymce/shortcodes.php:240
|
277 |
-
msgid "Three Fourth"
|
278 |
-
msgstr ""
|
279 |
-
|
280 |
-
#: tinymce/shortcodes.php:248
|
281 |
-
msgid "Three Fourth (Last)"
|
282 |
-
msgstr ""
|
283 |
-
|
284 |
-
#: tinymce/shortcodes.php:256
|
285 |
-
msgid "One Fifth"
|
286 |
-
msgstr ""
|
287 |
-
|
288 |
-
#: tinymce/shortcodes.php:264
|
289 |
-
msgid "One Fifth (Last)"
|
290 |
-
msgstr ""
|
291 |
-
|
292 |
-
#: tinymce/shortcodes.php:272
|
293 |
-
msgid "Two Fifth"
|
294 |
-
msgstr ""
|
295 |
-
|
296 |
-
#: tinymce/shortcodes.php:280
|
297 |
-
msgid "Two Fifth (Last)"
|
298 |
-
msgstr ""
|
299 |
-
|
300 |
-
#: tinymce/shortcodes.php:288
|
301 |
-
msgid "Three Fifth"
|
302 |
-
msgstr ""
|
303 |
-
|
304 |
-
#: tinymce/shortcodes.php:296
|
305 |
-
msgid "Three Fifth (Last)"
|
306 |
-
msgstr ""
|
307 |
-
|
308 |
-
#: tinymce/shortcodes.php:304
|
309 |
-
msgid "Four Fifth"
|
310 |
-
msgstr ""
|
311 |
-
|
312 |
-
#: tinymce/shortcodes.php:312
|
313 |
-
msgid "Four Fifth (Last)"
|
314 |
-
msgstr ""
|
315 |
-
|
316 |
-
#: tinymce/shortcodes.php:320
|
317 |
-
msgid "One Sixth"
|
318 |
-
msgstr ""
|
319 |
-
|
320 |
-
#: tinymce/shortcodes.php:328
|
321 |
-
msgid "One Sixth (Last)"
|
322 |
-
msgstr ""
|
323 |
-
|
324 |
-
#: tinymce/shortcodes.php:336
|
325 |
-
msgid "Five Sixth"
|
326 |
-
msgstr ""
|
327 |
-
|
328 |
-
#: tinymce/shortcodes.php:344
|
329 |
-
msgid "Five Sixth (Last)"
|
330 |
-
msgstr ""
|
331 |
-
|
332 |
-
#: tinymce/shortcodes.php:356
|
333 |
-
msgid "Tooltip"
|
334 |
-
msgstr ""
|
335 |
-
|
336 |
-
#: tinymce/shortcodes.php:357
|
337 |
-
msgid "Trigger text"
|
338 |
-
msgstr ""
|
339 |
-
|
340 |
-
#: tinymce/shortcodes.php:358
|
341 |
-
msgid ""
|
342 |
-
"Add a tooltip that appears on hover. Possible values for direction(Cardinal) "
|
343 |
-
"of bubble: nw | n | ne | w | e | sw | s | se"
|
344 |
-
msgstr ""
|
345 |
-
|
346 |
-
#: wp-shortcode.php:358
|
347 |
-
msgid "Untitled"
|
348 |
-
msgstr ""
|
349 |
-
|
350 |
-
#: wp-shortcode.php:392
|
351 |
-
msgid "Toggle Title"
|
352 |
-
msgstr ""
|
353 |
-
|
354 |
-
#: wp-shortcode.php:408
|
355 |
-
msgid "Back to Top"
|
356 |
-
msgstr ""
|
357 |
-
|
358 |
-
#. Plugin Name of the plugin/theme
|
359 |
-
msgid "WP Shortcode by MyThemeShop"
|
360 |
-
msgstr ""
|
361 |
-
|
362 |
-
#. #-#-#-#-# default.po (WP Shortcode by MyThemeShop 1.4.3) #-#-#-#-#
|
363 |
-
#. Plugin URI of the plugin/theme
|
364 |
-
#. #-#-#-#-# default.po (WP Shortcode by MyThemeShop 1.4.3) #-#-#-#-#
|
365 |
-
#. Author URI of the plugin/theme
|
366 |
-
msgid "http://mythemeshop.com/"
|
367 |
-
msgstr ""
|
368 |
-
|
369 |
-
#. Description of the plugin/theme
|
370 |
-
msgid ""
|
371 |
-
"With the vast array of shortcodes, you can quickly and easily build content "
|
372 |
-
"for your posts and pages and turbocharge your blogging experience."
|
373 |
-
msgstr ""
|
374 |
-
|
375 |
-
#. Author of the plugin/theme
|
376 |
-
msgid "MyThemeShop"
|
377 |
-
msgstr ""
|
1 |
+
# Copyright (C) 2017 WP Shortcode by MyThemeShop
|
2 |
+
# This file is distributed under the same license as the WP Shortcode by MyThemeShop package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: WP Shortcode by MyThemeShop 1.4.3\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-shortcode\n"
|
7 |
+
"POT-Creation-Date: 2017-02-07 15:55:48+00:00\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
+
|
15 |
+
#: tinymce/editor_plugin.php:6
|
16 |
+
msgid "You are not allowed to be here"
|
17 |
+
msgstr ""
|
18 |
+
|
19 |
+
#: tinymce/editor_plugin.php:31
|
20 |
+
msgid "Select Shortcode"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: tinymce/editor_plugin.php:68
|
24 |
+
msgid "Cancel"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: tinymce/editor_plugin.php:72
|
28 |
+
msgid "Insert"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: tinymce/shortcodes.php:10
|
32 |
+
msgid "Brown Button"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: tinymce/shortcodes.php:11 tinymce/shortcodes.php:22
|
36 |
+
#: tinymce/shortcodes.php:33 tinymce/shortcodes.php:44
|
37 |
+
#: tinymce/shortcodes.php:55 tinymce/shortcodes.php:66
|
38 |
+
msgid "Button text"
|
39 |
+
msgstr ""
|
40 |
+
|
41 |
+
#: tinymce/shortcodes.php:12
|
42 |
+
msgid ""
|
43 |
+
"Inserts a brown button. Set target to <strong>_blank</strong> to open link "
|
44 |
+
"in a new window."
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: tinymce/shortcodes.php:21
|
48 |
+
msgid "Blue Button"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#: tinymce/shortcodes.php:23
|
52 |
+
msgid ""
|
53 |
+
"Inserts a blue button. Set target to <strong>_blank</strong> to open link in "
|
54 |
+
"a new window."
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: tinymce/shortcodes.php:32
|
58 |
+
msgid "Green Button"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: tinymce/shortcodes.php:34
|
62 |
+
msgid ""
|
63 |
+
"Inserts a green button. Set target to <strong>_blank</strong> to open link "
|
64 |
+
"in a new window."
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: tinymce/shortcodes.php:43
|
68 |
+
msgid "Yellow Button"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: tinymce/shortcodes.php:45
|
72 |
+
msgid ""
|
73 |
+
"Inserts a yellow button. Set target to <strong>_blank</strong> to open link "
|
74 |
+
"in a new window."
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: tinymce/shortcodes.php:54
|
78 |
+
msgid "Red Button"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: tinymce/shortcodes.php:56
|
82 |
+
msgid ""
|
83 |
+
"Inserts a red button. Set target to <strong>_blank</strong> to open link in "
|
84 |
+
"a new window."
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: tinymce/shortcodes.php:65
|
88 |
+
msgid "White Button"
|
89 |
+
msgstr ""
|
90 |
+
|
91 |
+
#: tinymce/shortcodes.php:67
|
92 |
+
msgid ""
|
93 |
+
"Inserts a white button. Set target to <strong>_blank</strong> to open link "
|
94 |
+
"in a new window."
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: tinymce/shortcodes.php:72
|
98 |
+
msgid "Alert Note"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#: tinymce/shortcodes.php:73
|
102 |
+
msgid "Note text"
|
103 |
+
msgstr ""
|
104 |
+
|
105 |
+
#: tinymce/shortcodes.php:74
|
106 |
+
msgid "Display a note."
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: tinymce/shortcodes.php:79
|
110 |
+
msgid "Alert Announce"
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: tinymce/shortcodes.php:80
|
114 |
+
msgid "Announce text"
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: tinymce/shortcodes.php:81
|
118 |
+
msgid "Display an announcement."
|
119 |
+
msgstr ""
|
120 |
+
|
121 |
+
#: tinymce/shortcodes.php:86
|
122 |
+
msgid "Alert Success"
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#: tinymce/shortcodes.php:87
|
126 |
+
msgid "Success text"
|
127 |
+
msgstr ""
|
128 |
+
|
129 |
+
#: tinymce/shortcodes.php:88
|
130 |
+
msgid "Display a success message."
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: tinymce/shortcodes.php:93
|
134 |
+
msgid "Alert Warning"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: tinymce/shortcodes.php:94
|
138 |
+
msgid "Warning text"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: tinymce/shortcodes.php:95
|
142 |
+
msgid "Display warning or error message."
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: tinymce/shortcodes.php:105
|
146 |
+
msgid "YouTube Video"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: tinymce/shortcodes.php:107
|
150 |
+
msgid "Embed a Youtube Video"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: tinymce/shortcodes.php:117
|
154 |
+
msgid "Vimeo Video"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: tinymce/shortcodes.php:119
|
158 |
+
msgid "Embed a Vimeo Video."
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: tinymce/shortcodes.php:129
|
162 |
+
msgid "Google Map"
|
163 |
+
msgstr ""
|
164 |
+
|
165 |
+
#: tinymce/shortcodes.php:131
|
166 |
+
msgid "Embed a Google Map. Insert address or GPS location."
|
167 |
+
msgstr ""
|
168 |
+
|
169 |
+
#: tinymce/shortcodes.php:138
|
170 |
+
msgid "Toggle"
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#: tinymce/shortcodes.php:139
|
174 |
+
msgid "Insert Content Here"
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: tinymce/shortcodes.php:141
|
178 |
+
msgid "Content will be shown after clicking on the toggle title."
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: tinymce/shortcodes.php:146
|
182 |
+
msgid "Tabs"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: tinymce/shortcodes.php:147
|
186 |
+
msgid ""
|
187 |
+
"[tab title="Tab 1 Title"]Insert tab 1 content here[/tab]\n"
|
188 |
+
"[tab title="Tab 2 Title"]Insert tab 2 content here[/tab]\n"
|
189 |
+
"[tab title="Tab 3 Title"]Insert tab 3 content here[/tab]"
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#: tinymce/shortcodes.php:149
|
193 |
+
msgid "Display content in tabbed form."
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#: tinymce/shortcodes.php:155
|
197 |
+
msgid "Simple horizontal divider."
|
198 |
+
msgstr ""
|
199 |
+
|
200 |
+
#: tinymce/shortcodes.php:161
|
201 |
+
msgid "Divider with an anchor link to top of page."
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: tinymce/shortcodes.php:166
|
205 |
+
msgid "Clear"
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: tinymce/shortcodes.php:168
|
209 |
+
msgid ""
|
210 |
+
"Clear shortcode can be used to clear an element of its neighbors, no "
|
211 |
+
"floating elements are allowed on the left or the right side."
|
212 |
+
msgstr ""
|
213 |
+
|
214 |
+
#: tinymce/shortcodes.php:176
|
215 |
+
msgid "One Third"
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#: tinymce/shortcodes.php:177 tinymce/shortcodes.php:185
|
219 |
+
#: tinymce/shortcodes.php:193 tinymce/shortcodes.php:201
|
220 |
+
#: tinymce/shortcodes.php:209 tinymce/shortcodes.php:217
|
221 |
+
#: tinymce/shortcodes.php:225 tinymce/shortcodes.php:233
|
222 |
+
#: tinymce/shortcodes.php:241 tinymce/shortcodes.php:249
|
223 |
+
#: tinymce/shortcodes.php:257 tinymce/shortcodes.php:265
|
224 |
+
#: tinymce/shortcodes.php:273 tinymce/shortcodes.php:281
|
225 |
+
#: tinymce/shortcodes.php:289 tinymce/shortcodes.php:297
|
226 |
+
#: tinymce/shortcodes.php:305 tinymce/shortcodes.php:313
|
227 |
+
#: tinymce/shortcodes.php:321 tinymce/shortcodes.php:329
|
228 |
+
#: tinymce/shortcodes.php:337 tinymce/shortcodes.php:345
|
229 |
+
msgid "Column content"
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#: tinymce/shortcodes.php:179 tinymce/shortcodes.php:187
|
233 |
+
#: tinymce/shortcodes.php:195 tinymce/shortcodes.php:203
|
234 |
+
#: tinymce/shortcodes.php:211 tinymce/shortcodes.php:219
|
235 |
+
#: tinymce/shortcodes.php:227 tinymce/shortcodes.php:235
|
236 |
+
#: tinymce/shortcodes.php:243 tinymce/shortcodes.php:251
|
237 |
+
#: tinymce/shortcodes.php:259 tinymce/shortcodes.php:267
|
238 |
+
#: tinymce/shortcodes.php:275 tinymce/shortcodes.php:283
|
239 |
+
#: tinymce/shortcodes.php:291 tinymce/shortcodes.php:299
|
240 |
+
#: tinymce/shortcodes.php:307 tinymce/shortcodes.php:315
|
241 |
+
#: tinymce/shortcodes.php:323 tinymce/shortcodes.php:331
|
242 |
+
#: tinymce/shortcodes.php:339 tinymce/shortcodes.php:347
|
243 |
+
msgid ""
|
244 |
+
"Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. "
|
245 |
+
"<br /><strong>One Third + One Third + One Third (Last)</strong>"
|
246 |
+
msgstr ""
|
247 |
+
|
248 |
+
#: tinymce/shortcodes.php:184
|
249 |
+
msgid "One Third (Last)"
|
250 |
+
msgstr ""
|
251 |
+
|
252 |
+
#: tinymce/shortcodes.php:192
|
253 |
+
msgid "Two Third"
|
254 |
+
msgstr ""
|
255 |
+
|
256 |
+
#: tinymce/shortcodes.php:200
|
257 |
+
msgid "Two Third (Last)"
|
258 |
+
msgstr ""
|
259 |
+
|
260 |
+
#: tinymce/shortcodes.php:208
|
261 |
+
msgid "One Half"
|
262 |
+
msgstr ""
|
263 |
+
|
264 |
+
#: tinymce/shortcodes.php:216
|
265 |
+
msgid "One Half (Last)"
|
266 |
+
msgstr ""
|
267 |
+
|
268 |
+
#: tinymce/shortcodes.php:224
|
269 |
+
msgid "One Fourth"
|
270 |
+
msgstr ""
|
271 |
+
|
272 |
+
#: tinymce/shortcodes.php:232
|
273 |
+
msgid "One Fourth (Last)"
|
274 |
+
msgstr ""
|
275 |
+
|
276 |
+
#: tinymce/shortcodes.php:240
|
277 |
+
msgid "Three Fourth"
|
278 |
+
msgstr ""
|
279 |
+
|
280 |
+
#: tinymce/shortcodes.php:248
|
281 |
+
msgid "Three Fourth (Last)"
|
282 |
+
msgstr ""
|
283 |
+
|
284 |
+
#: tinymce/shortcodes.php:256
|
285 |
+
msgid "One Fifth"
|
286 |
+
msgstr ""
|
287 |
+
|
288 |
+
#: tinymce/shortcodes.php:264
|
289 |
+
msgid "One Fifth (Last)"
|
290 |
+
msgstr ""
|
291 |
+
|
292 |
+
#: tinymce/shortcodes.php:272
|
293 |
+
msgid "Two Fifth"
|
294 |
+
msgstr ""
|
295 |
+
|
296 |
+
#: tinymce/shortcodes.php:280
|
297 |
+
msgid "Two Fifth (Last)"
|
298 |
+
msgstr ""
|
299 |
+
|
300 |
+
#: tinymce/shortcodes.php:288
|
301 |
+
msgid "Three Fifth"
|
302 |
+
msgstr ""
|
303 |
+
|
304 |
+
#: tinymce/shortcodes.php:296
|
305 |
+
msgid "Three Fifth (Last)"
|
306 |
+
msgstr ""
|
307 |
+
|
308 |
+
#: tinymce/shortcodes.php:304
|
309 |
+
msgid "Four Fifth"
|
310 |
+
msgstr ""
|
311 |
+
|
312 |
+
#: tinymce/shortcodes.php:312
|
313 |
+
msgid "Four Fifth (Last)"
|
314 |
+
msgstr ""
|
315 |
+
|
316 |
+
#: tinymce/shortcodes.php:320
|
317 |
+
msgid "One Sixth"
|
318 |
+
msgstr ""
|
319 |
+
|
320 |
+
#: tinymce/shortcodes.php:328
|
321 |
+
msgid "One Sixth (Last)"
|
322 |
+
msgstr ""
|
323 |
+
|
324 |
+
#: tinymce/shortcodes.php:336
|
325 |
+
msgid "Five Sixth"
|
326 |
+
msgstr ""
|
327 |
+
|
328 |
+
#: tinymce/shortcodes.php:344
|
329 |
+
msgid "Five Sixth (Last)"
|
330 |
+
msgstr ""
|
331 |
+
|
332 |
+
#: tinymce/shortcodes.php:356
|
333 |
+
msgid "Tooltip"
|
334 |
+
msgstr ""
|
335 |
+
|
336 |
+
#: tinymce/shortcodes.php:357
|
337 |
+
msgid "Trigger text"
|
338 |
+
msgstr ""
|
339 |
+
|
340 |
+
#: tinymce/shortcodes.php:358
|
341 |
+
msgid ""
|
342 |
+
"Add a tooltip that appears on hover. Possible values for direction(Cardinal) "
|
343 |
+
"of bubble: nw | n | ne | w | e | sw | s | se"
|
344 |
+
msgstr ""
|
345 |
+
|
346 |
+
#: wp-shortcode.php:358
|
347 |
+
msgid "Untitled"
|
348 |
+
msgstr ""
|
349 |
+
|
350 |
+
#: wp-shortcode.php:392
|
351 |
+
msgid "Toggle Title"
|
352 |
+
msgstr ""
|
353 |
+
|
354 |
+
#: wp-shortcode.php:408
|
355 |
+
msgid "Back to Top"
|
356 |
+
msgstr ""
|
357 |
+
|
358 |
+
#. Plugin Name of the plugin/theme
|
359 |
+
msgid "WP Shortcode by MyThemeShop"
|
360 |
+
msgstr ""
|
361 |
+
|
362 |
+
#. #-#-#-#-# default.po (WP Shortcode by MyThemeShop 1.4.3) #-#-#-#-#
|
363 |
+
#. Plugin URI of the plugin/theme
|
364 |
+
#. #-#-#-#-# default.po (WP Shortcode by MyThemeShop 1.4.3) #-#-#-#-#
|
365 |
+
#. Author URI of the plugin/theme
|
366 |
+
msgid "http://mythemeshop.com/"
|
367 |
+
msgstr ""
|
368 |
+
|
369 |
+
#. Description of the plugin/theme
|
370 |
+
msgid ""
|
371 |
+
"With the vast array of shortcodes, you can quickly and easily build content "
|
372 |
+
"for your posts and pages and turbocharge your blogging experience."
|
373 |
+
msgstr ""
|
374 |
+
|
375 |
+
#. Author of the plugin/theme
|
376 |
+
msgid "MyThemeShop"
|
377 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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.
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -65,6 +65,9 @@ Please disable all plugins and check if shortcode plugin is working properly. Th
|
|
65 |
|
66 |
== Changelog ==
|
67 |
|
|
|
|
|
|
|
68 |
= 1.4.9 =
|
69 |
* Fixed shortcodes filter
|
70 |
|
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.4
|
7 |
+
Stable tag: 1.4.10
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
65 |
|
66 |
== Changelog ==
|
67 |
|
68 |
+
= 1.4.10 =
|
69 |
+
* Enqueued required scripts only on the pages where the plugin's shortcodes are used.
|
70 |
+
|
71 |
= 1.4.9 =
|
72 |
* Fixed shortcodes filter
|
73 |
|
tinymce/shortcodes.php
CHANGED
@@ -1,368 +1,368 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$shortcodes = array(
|
4 |
-
"button-brown" => array(
|
5 |
-
"self-closing" => false,
|
6 |
-
"atts" => array(
|
7 |
-
"url" => "#",
|
8 |
-
"target" => "_self",
|
9 |
-
"position" => "left"
|
10 |
-
),
|
11 |
-
"label" => __("Brown Button", "wp-shortcode"),
|
12 |
-
"content" => __("Button text", "wp-shortcode"),
|
13 |
-
"description" => __("Inserts a brown button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
14 |
-
),
|
15 |
-
"button-blue" => array(
|
16 |
-
"self-closing" => false,
|
17 |
-
"atts" => array(
|
18 |
-
"url" => "#",
|
19 |
-
"target" => "_self",
|
20 |
-
"position" => "left"
|
21 |
-
),
|
22 |
-
"label" => __("Blue Button", "wp-shortcode"),
|
23 |
-
"content" => __("Button text", "wp-shortcode") ,
|
24 |
-
"description" => __("Inserts a blue button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
25 |
-
),
|
26 |
-
"button-green" => array(
|
27 |
-
"self-closing" => false,
|
28 |
-
"atts" => array(
|
29 |
-
"url" => "#",
|
30 |
-
"target" => "_self",
|
31 |
-
"position" => "left"
|
32 |
-
),
|
33 |
-
"label" => __("Green Button", "wp-shortcode"),
|
34 |
-
"content" => __("Button text", "wp-shortcode") ,
|
35 |
-
"description" => __("Inserts a green button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
36 |
-
),
|
37 |
-
"button-yellow" => array(
|
38 |
-
"self-closing" => false,
|
39 |
-
"atts" => array(
|
40 |
-
"url" => "#",
|
41 |
-
"target" => "_self",
|
42 |
-
"position" => "left"
|
43 |
-
),
|
44 |
-
"label" => __("Yellow Button", "wp-shortcode"),
|
45 |
-
"content" => __("Button text", "wp-shortcode") ,
|
46 |
-
"description" => __("Inserts a yellow button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
47 |
-
),
|
48 |
-
"button-red" => array(
|
49 |
-
"self-closing" => false,
|
50 |
-
"atts" => array(
|
51 |
-
"url" => "#",
|
52 |
-
"target" => "_self",
|
53 |
-
"position" => "left"
|
54 |
-
),
|
55 |
-
"label" => __("Red Button", "wp-shortcode"),
|
56 |
-
"content" => __("Button text", "wp-shortcode") ,
|
57 |
-
"description" => __("Inserts a red button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
58 |
-
),
|
59 |
-
"button-white" => array(
|
60 |
-
"self-closing" => false,
|
61 |
-
"atts" => array(
|
62 |
-
"url" => "#",
|
63 |
-
"target" => "_self",
|
64 |
-
"position" => "left"
|
65 |
-
),
|
66 |
-
"label" => __("White Button", "wp-shortcode"),
|
67 |
-
"content" => __("Button text", "wp-shortcode") ,
|
68 |
-
"description" => __("Inserts a white button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
69 |
-
),
|
70 |
-
"alert-note" => array(
|
71 |
-
"self-closing" => false,
|
72 |
-
"atts" => array(),
|
73 |
-
"label" => __("Alert Note", "wp-shortcode"),
|
74 |
-
"content" => __("Note text", "wp-shortcode"),
|
75 |
-
"description" => __("Display a note.", "wp-shortcode")
|
76 |
-
),
|
77 |
-
"alert-announce" => array(
|
78 |
-
"self-closing" => false,
|
79 |
-
"atts" => array(),
|
80 |
-
"label" => __("Alert Announce", "wp-shortcode"),
|
81 |
-
"content" => __("Announce text", "wp-shortcode"),
|
82 |
-
"description" => __("Display an announcement.", "wp-shortcode")
|
83 |
-
),
|
84 |
-
"alert-success" => array(
|
85 |
-
"self-closing" => false,
|
86 |
-
"atts" => array(),
|
87 |
-
"label" => __("Alert Success", "wp-shortcode"),
|
88 |
-
"content" => __("Success text", "wp-shortcode"),
|
89 |
-
"description" => __("Display a success message.", "wp-shortcode")
|
90 |
-
),
|
91 |
-
"alert-warning" => array(
|
92 |
-
"self-closing" => false,
|
93 |
-
"atts" => array(),
|
94 |
-
"label" => __("Alert Warning", "wp-shortcode"),
|
95 |
-
"content" => __("Warning text", "wp-shortcode"),
|
96 |
-
"description" => __("Display warning or error message.", "wp-shortcode")
|
97 |
-
),
|
98 |
-
"youtube" => array(
|
99 |
-
"self-closing" => true,
|
100 |
-
"atts" => array(
|
101 |
-
"id" => "#",
|
102 |
-
"width" => "600",
|
103 |
-
"height" => "340",
|
104 |
-
"position" => "left"
|
105 |
-
),
|
106 |
-
"label" => __("YouTube Video", "wp-shortcode"),
|
107 |
-
"content" => "",
|
108 |
-
"description" => __("Embed a Youtube Video", "wp-shortcode")
|
109 |
-
),
|
110 |
-
"vimeo" => array(
|
111 |
-
"self-closing" => true,
|
112 |
-
"atts" => array(
|
113 |
-
"id" => "#",
|
114 |
-
"width" => "600",
|
115 |
-
"height" => "340",
|
116 |
-
"position" => "left"
|
117 |
-
),
|
118 |
-
"label" => __("Vimeo Video", "wp-shortcode"),
|
119 |
-
"content" => "",
|
120 |
-
"description" => __("Embed a Vimeo Video.", "wp-shortcode")
|
121 |
-
),
|
122 |
-
"googlemap" => array(
|
123 |
-
"self-closing" => true,
|
124 |
-
"atts" => array(
|
125 |
-
"address" => "Libertyville, Illinois, USA",
|
126 |
-
"width" => "600",
|
127 |
-
"height" => "340",
|
128 |
-
"position" => "left"
|
129 |
-
),
|
130 |
-
"label" => __("Google Map", "wp-shortcode"),
|
131 |
-
"content" => "",
|
132 |
-
"description" => __("Embed a Google Map. Insert address or GPS location.", "wp-shortcode")
|
133 |
-
),
|
134 |
-
"toggle" => array(
|
135 |
-
"self-closing" => false,
|
136 |
-
"atts" => array(
|
137 |
-
"title" => "Toggle Title"
|
138 |
-
),
|
139 |
-
"label" => __("Toggle", "wp-shortcode"),
|
140 |
-
"content" => __("Insert Content Here", "wp-shortcode"),
|
141 |
-
"content_field" => "textarea",
|
142 |
-
"description" => __("Content will be shown after clicking on the toggle title.", "wp-shortcode")
|
143 |
-
),
|
144 |
-
"tabs" => array(
|
145 |
-
"self-closing" => false,
|
146 |
-
"atts" => array(),
|
147 |
-
"label" => __("Tabs", "wp-shortcode"),
|
148 |
-
"content" => __("[tab title="Tab 1 Title"]Insert tab 1 content here[/tab]\n[tab title="Tab 2 Title"]Insert tab 2 content here[/tab]\n[tab title="Tab 3 Title"]Insert tab 3 content here[/tab]", "wp-shortcode"),
|
149 |
-
"content_field" => "textarea",
|
150 |
-
"description" => __("Display content in tabbed form.", "wp-shortcode")
|
151 |
-
),
|
152 |
-
"divider" => array(
|
153 |
-
"self-closing" => true,
|
154 |
-
"atts" => array(),
|
155 |
-
"label" => __("Divider", "wp-shortcode"),
|
156 |
-
"content" => "Divider",
|
157 |
-
"description" => __("Simple horizontal divider.", "wp-shortcode")
|
158 |
-
),
|
159 |
-
"divider_top" => array(
|
160 |
-
"self-closing" => true,
|
161 |
-
"atts" => array(),
|
162 |
-
"label" => __("Divider with link", "wp-shortcode"),
|
163 |
-
"content" => "Divider with link",
|
164 |
-
"description" => __("Divider with an anchor link to top of page.", "wp-shortcode")
|
165 |
-
),
|
166 |
-
"clear" => array(
|
167 |
-
"self-closing" => true,
|
168 |
-
"atts" => array(),
|
169 |
-
"label" => __("Clear", "wp-shortcode"),
|
170 |
-
"content" => "",
|
171 |
-
"description" => __("Clear shortcode can be used to clear an element of its neighbors, no floating elements are allowed on the left or the right side.", "wp-shortcode")
|
172 |
-
),
|
173 |
-
|
174 |
-
// Column Shortcodes
|
175 |
-
|
176 |
-
"one_third" => array(
|
177 |
-
"self-closing" => false,
|
178 |
-
"atts" => array(),
|
179 |
-
"label" => __("One Third", "wp-shortcode"),
|
180 |
-
"content" => __("Column content", "wp-shortcode"),
|
181 |
-
"content_field" => "textarea",
|
182 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
183 |
-
),
|
184 |
-
"one_third_last" => array(
|
185 |
-
"self-closing" => false,
|
186 |
-
"atts" => array(),
|
187 |
-
"label" => __("One Third (Last)", "wp-shortcode"),
|
188 |
-
"content" => __("Column content", "wp-shortcode"),
|
189 |
-
"content_field" => "textarea",
|
190 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
191 |
-
),
|
192 |
-
"two_third" => array(
|
193 |
-
"self-closing" => false,
|
194 |
-
"atts" => array(),
|
195 |
-
"label" => __("Two Third", "wp-shortcode"),
|
196 |
-
"content" => __("Column content", "wp-shortcode"),
|
197 |
-
"content_field" => "textarea",
|
198 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
199 |
-
),
|
200 |
-
"two_third_last" => array(
|
201 |
-
"self-closing" => false,
|
202 |
-
"atts" => array(),
|
203 |
-
"label" => __("Two Third (Last)", "wp-shortcode"),
|
204 |
-
"content" => __("Column content", "wp-shortcode"),
|
205 |
-
"content_field" => "textarea",
|
206 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
207 |
-
),
|
208 |
-
"one_half" => array(
|
209 |
-
"self-closing" => false,
|
210 |
-
"atts" => array(),
|
211 |
-
"label" => __("One Half", "wp-shortcode"),
|
212 |
-
"content" => __("Column content", "wp-shortcode"),
|
213 |
-
"content_field" => "textarea",
|
214 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
215 |
-
),
|
216 |
-
"one_half_last" => array(
|
217 |
-
"self-closing" => false,
|
218 |
-
"atts" => array(),
|
219 |
-
"label" => __("One Half (Last)", "wp-shortcode"),
|
220 |
-
"content" => __("Column content", "wp-shortcode"),
|
221 |
-
"content_field" => "textarea",
|
222 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
223 |
-
),
|
224 |
-
"one_fourth" => array(
|
225 |
-
"self-closing" => false,
|
226 |
-
"atts" => array(),
|
227 |
-
"label" => __("One Fourth", "wp-shortcode"),
|
228 |
-
"content" => __("Column content", "wp-shortcode"),
|
229 |
-
"content_field" => "textarea",
|
230 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
231 |
-
),
|
232 |
-
"one_fourth_last" => array(
|
233 |
-
"self-closing" => false,
|
234 |
-
"atts" => array(),
|
235 |
-
"label" => __("One Fourth (Last)", "wp-shortcode"),
|
236 |
-
"content" => __("Column content", "wp-shortcode"),
|
237 |
-
"content_field" => "textarea",
|
238 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
239 |
-
),
|
240 |
-
"three_fourth" => array(
|
241 |
-
"self-closing" => false,
|
242 |
-
"atts" => array(),
|
243 |
-
"label" => __("Three Fourth", "wp-shortcode"),
|
244 |
-
"content" => __("Column content", "wp-shortcode"),
|
245 |
-
"content_field" => "textarea",
|
246 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
247 |
-
),
|
248 |
-
"three_fourth_last" => array(
|
249 |
-
"self-closing" => false,
|
250 |
-
"atts" => array(),
|
251 |
-
"label" => __("Three Fourth (Last)", "wp-shortcode"),
|
252 |
-
"content" => __("Column content", "wp-shortcode"),
|
253 |
-
"content_field" => "textarea",
|
254 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
255 |
-
),
|
256 |
-
"one_fifth" => array(
|
257 |
-
"self-closing" => false,
|
258 |
-
"atts" => array(),
|
259 |
-
"label" => __("One Fifth", "wp-shortcode"),
|
260 |
-
"content" => __("Column content", "wp-shortcode"),
|
261 |
-
"content_field" => "textarea",
|
262 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
263 |
-
),
|
264 |
-
"one_fifth_last" => array(
|
265 |
-
"self-closing" => false,
|
266 |
-
"atts" => array(),
|
267 |
-
"label" => __("One Fifth (Last)", "wp-shortcode"),
|
268 |
-
"content" => __("Column content", "wp-shortcode"),
|
269 |
-
"content_field" => "textarea",
|
270 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
271 |
-
),
|
272 |
-
"two_fifth" => array(
|
273 |
-
"self-closing" => false,
|
274 |
-
"atts" => array(),
|
275 |
-
"label" => __("Two Fifth", "wp-shortcode"),
|
276 |
-
"content" => __("Column content", "wp-shortcode"),
|
277 |
-
"content_field" => "textarea",
|
278 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
279 |
-
),
|
280 |
-
"two_fifth_last" => array(
|
281 |
-
"self-closing" => false,
|
282 |
-
"atts" => array(),
|
283 |
-
"label" => __("Two Fifth (Last)", "wp-shortcode"),
|
284 |
-
"content" => __("Column content", "wp-shortcode"),
|
285 |
-
"content_field" => "textarea",
|
286 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
287 |
-
),
|
288 |
-
"three_fifth" => array(
|
289 |
-
"self-closing" => false,
|
290 |
-
"atts" => array(),
|
291 |
-
"label" => __("Three Fifth", "wp-shortcode"),
|
292 |
-
"content" => __("Column content", "wp-shortcode"),
|
293 |
-
"content_field" => "textarea",
|
294 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
295 |
-
),
|
296 |
-
"three_fifth_last" => array(
|
297 |
-
"self-closing" => false,
|
298 |
-
"atts" => array(),
|
299 |
-
"label" => __("Three Fifth (Last)", "wp-shortcode"),
|
300 |
-
"content" => __("Column content", "wp-shortcode"),
|
301 |
-
"content_field" => "textarea",
|
302 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
303 |
-
),
|
304 |
-
"four_fifth" => array(
|
305 |
-
"self-closing" => false,
|
306 |
-
"atts" => array(),
|
307 |
-
"label" => __("Four Fifth", "wp-shortcode"),
|
308 |
-
"content" => __("Column content", "wp-shortcode"),
|
309 |
-
"content_field" => "textarea",
|
310 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
311 |
-
),
|
312 |
-
"four_fifth_last" => array(
|
313 |
-
"self-closing" => false,
|
314 |
-
"atts" => array(),
|
315 |
-
"label" => __("Four Fifth (Last)", "wp-shortcode"),
|
316 |
-
"content" => __("Column content", "wp-shortcode"),
|
317 |
-
"content_field" => "textarea",
|
318 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
319 |
-
),
|
320 |
-
"one_sixth" => array(
|
321 |
-
"self-closing" => false,
|
322 |
-
"atts" => array(),
|
323 |
-
"label" => __("One Sixth", "wp-shortcode"),
|
324 |
-
"content" => __("Column content", "wp-shortcode"),
|
325 |
-
"content_field" => "textarea",
|
326 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
327 |
-
),
|
328 |
-
"one_sixth_last" => array(
|
329 |
-
"self-closing" => false,
|
330 |
-
"atts" => array(),
|
331 |
-
"label" => __("One Sixth (Last)", "wp-shortcode"),
|
332 |
-
"content" => __("Column content", "wp-shortcode"),
|
333 |
-
"content_field" => "textarea",
|
334 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
335 |
-
),
|
336 |
-
"five_sixth" => array(
|
337 |
-
"self-closing" => false,
|
338 |
-
"atts" => array(),
|
339 |
-
"label" => __("Five Sixth", "wp-shortcode"),
|
340 |
-
"content" => __("Column content", "wp-shortcode"),
|
341 |
-
"content_field" => "textarea",
|
342 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
343 |
-
),
|
344 |
-
"five_sixth_last" => array(
|
345 |
-
"self-closing" => false,
|
346 |
-
"atts" => array(),
|
347 |
-
"label" => __("Five Sixth (Last)", "wp-shortcode"),
|
348 |
-
"content" => __("Column content", "wp-shortcode"),
|
349 |
-
"content_field" => "textarea",
|
350 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
351 |
-
),
|
352 |
-
"tooltip" => array(
|
353 |
-
"self-closing" => false,
|
354 |
-
"atts" => array(
|
355 |
-
"content" => "Tooltip content",
|
356 |
-
"gravity" => "n",
|
357 |
-
"fade" => "0"
|
358 |
-
),
|
359 |
-
"label" => __("Tooltip", "wp-shortcode"),
|
360 |
-
"content" => __("Trigger text", "wp-shortcode"),
|
361 |
-
"description" => __("Add a tooltip that appears on hover. Possible values for direction(Cardinal) of bubble: nw | n | ne | w | e | sw | s | se", "wp-shortcode")
|
362 |
-
)
|
363 |
-
);
|
364 |
-
|
365 |
-
$shortcodes = apply_filters( 'mts_wp_shortcode_list', $shortcodes );
|
366 |
-
echo "<script type=\"text/javascript\">var shortcodes = ".json_encode( $shortcodes ).";</script>";
|
367 |
-
|
368 |
?>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$shortcodes = array(
|
4 |
+
"button-brown" => array(
|
5 |
+
"self-closing" => false,
|
6 |
+
"atts" => array(
|
7 |
+
"url" => "#",
|
8 |
+
"target" => "_self",
|
9 |
+
"position" => "left"
|
10 |
+
),
|
11 |
+
"label" => __("Brown Button", "wp-shortcode"),
|
12 |
+
"content" => __("Button text", "wp-shortcode"),
|
13 |
+
"description" => __("Inserts a brown button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
14 |
+
),
|
15 |
+
"button-blue" => array(
|
16 |
+
"self-closing" => false,
|
17 |
+
"atts" => array(
|
18 |
+
"url" => "#",
|
19 |
+
"target" => "_self",
|
20 |
+
"position" => "left"
|
21 |
+
),
|
22 |
+
"label" => __("Blue Button", "wp-shortcode"),
|
23 |
+
"content" => __("Button text", "wp-shortcode") ,
|
24 |
+
"description" => __("Inserts a blue button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
25 |
+
),
|
26 |
+
"button-green" => array(
|
27 |
+
"self-closing" => false,
|
28 |
+
"atts" => array(
|
29 |
+
"url" => "#",
|
30 |
+
"target" => "_self",
|
31 |
+
"position" => "left"
|
32 |
+
),
|
33 |
+
"label" => __("Green Button", "wp-shortcode"),
|
34 |
+
"content" => __("Button text", "wp-shortcode") ,
|
35 |
+
"description" => __("Inserts a green button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
36 |
+
),
|
37 |
+
"button-yellow" => array(
|
38 |
+
"self-closing" => false,
|
39 |
+
"atts" => array(
|
40 |
+
"url" => "#",
|
41 |
+
"target" => "_self",
|
42 |
+
"position" => "left"
|
43 |
+
),
|
44 |
+
"label" => __("Yellow Button", "wp-shortcode"),
|
45 |
+
"content" => __("Button text", "wp-shortcode") ,
|
46 |
+
"description" => __("Inserts a yellow button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
47 |
+
),
|
48 |
+
"button-red" => array(
|
49 |
+
"self-closing" => false,
|
50 |
+
"atts" => array(
|
51 |
+
"url" => "#",
|
52 |
+
"target" => "_self",
|
53 |
+
"position" => "left"
|
54 |
+
),
|
55 |
+
"label" => __("Red Button", "wp-shortcode"),
|
56 |
+
"content" => __("Button text", "wp-shortcode") ,
|
57 |
+
"description" => __("Inserts a red button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
58 |
+
),
|
59 |
+
"button-white" => array(
|
60 |
+
"self-closing" => false,
|
61 |
+
"atts" => array(
|
62 |
+
"url" => "#",
|
63 |
+
"target" => "_self",
|
64 |
+
"position" => "left"
|
65 |
+
),
|
66 |
+
"label" => __("White Button", "wp-shortcode"),
|
67 |
+
"content" => __("Button text", "wp-shortcode") ,
|
68 |
+
"description" => __("Inserts a white button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
69 |
+
),
|
70 |
+
"alert-note" => array(
|
71 |
+
"self-closing" => false,
|
72 |
+
"atts" => array(),
|
73 |
+
"label" => __("Alert Note", "wp-shortcode"),
|
74 |
+
"content" => __("Note text", "wp-shortcode"),
|
75 |
+
"description" => __("Display a note.", "wp-shortcode")
|
76 |
+
),
|
77 |
+
"alert-announce" => array(
|
78 |
+
"self-closing" => false,
|
79 |
+
"atts" => array(),
|
80 |
+
"label" => __("Alert Announce", "wp-shortcode"),
|
81 |
+
"content" => __("Announce text", "wp-shortcode"),
|
82 |
+
"description" => __("Display an announcement.", "wp-shortcode")
|
83 |
+
),
|
84 |
+
"alert-success" => array(
|
85 |
+
"self-closing" => false,
|
86 |
+
"atts" => array(),
|
87 |
+
"label" => __("Alert Success", "wp-shortcode"),
|
88 |
+
"content" => __("Success text", "wp-shortcode"),
|
89 |
+
"description" => __("Display a success message.", "wp-shortcode")
|
90 |
+
),
|
91 |
+
"alert-warning" => array(
|
92 |
+
"self-closing" => false,
|
93 |
+
"atts" => array(),
|
94 |
+
"label" => __("Alert Warning", "wp-shortcode"),
|
95 |
+
"content" => __("Warning text", "wp-shortcode"),
|
96 |
+
"description" => __("Display warning or error message.", "wp-shortcode")
|
97 |
+
),
|
98 |
+
"youtube" => array(
|
99 |
+
"self-closing" => true,
|
100 |
+
"atts" => array(
|
101 |
+
"id" => "#",
|
102 |
+
"width" => "600",
|
103 |
+
"height" => "340",
|
104 |
+
"position" => "left"
|
105 |
+
),
|
106 |
+
"label" => __("YouTube Video", "wp-shortcode"),
|
107 |
+
"content" => "",
|
108 |
+
"description" => __("Embed a Youtube Video", "wp-shortcode")
|
109 |
+
),
|
110 |
+
"vimeo" => array(
|
111 |
+
"self-closing" => true,
|
112 |
+
"atts" => array(
|
113 |
+
"id" => "#",
|
114 |
+
"width" => "600",
|
115 |
+
"height" => "340",
|
116 |
+
"position" => "left"
|
117 |
+
),
|
118 |
+
"label" => __("Vimeo Video", "wp-shortcode"),
|
119 |
+
"content" => "",
|
120 |
+
"description" => __("Embed a Vimeo Video.", "wp-shortcode")
|
121 |
+
),
|
122 |
+
"googlemap" => array(
|
123 |
+
"self-closing" => true,
|
124 |
+
"atts" => array(
|
125 |
+
"address" => "Libertyville, Illinois, USA",
|
126 |
+
"width" => "600",
|
127 |
+
"height" => "340",
|
128 |
+
"position" => "left"
|
129 |
+
),
|
130 |
+
"label" => __("Google Map", "wp-shortcode"),
|
131 |
+
"content" => "",
|
132 |
+
"description" => __("Embed a Google Map. Insert address or GPS location.", "wp-shortcode")
|
133 |
+
),
|
134 |
+
"toggle" => array(
|
135 |
+
"self-closing" => false,
|
136 |
+
"atts" => array(
|
137 |
+
"title" => "Toggle Title"
|
138 |
+
),
|
139 |
+
"label" => __("Toggle", "wp-shortcode"),
|
140 |
+
"content" => __("Insert Content Here", "wp-shortcode"),
|
141 |
+
"content_field" => "textarea",
|
142 |
+
"description" => __("Content will be shown after clicking on the toggle title.", "wp-shortcode")
|
143 |
+
),
|
144 |
+
"tabs" => array(
|
145 |
+
"self-closing" => false,
|
146 |
+
"atts" => array(),
|
147 |
+
"label" => __("Tabs", "wp-shortcode"),
|
148 |
+
"content" => __("[tab title="Tab 1 Title"]Insert tab 1 content here[/tab]\n[tab title="Tab 2 Title"]Insert tab 2 content here[/tab]\n[tab title="Tab 3 Title"]Insert tab 3 content here[/tab]", "wp-shortcode"),
|
149 |
+
"content_field" => "textarea",
|
150 |
+
"description" => __("Display content in tabbed form.", "wp-shortcode")
|
151 |
+
),
|
152 |
+
"divider" => array(
|
153 |
+
"self-closing" => true,
|
154 |
+
"atts" => array(),
|
155 |
+
"label" => __("Divider", "wp-shortcode"),
|
156 |
+
"content" => "Divider",
|
157 |
+
"description" => __("Simple horizontal divider.", "wp-shortcode")
|
158 |
+
),
|
159 |
+
"divider_top" => array(
|
160 |
+
"self-closing" => true,
|
161 |
+
"atts" => array(),
|
162 |
+
"label" => __("Divider with link", "wp-shortcode"),
|
163 |
+
"content" => "Divider with link",
|
164 |
+
"description" => __("Divider with an anchor link to top of page.", "wp-shortcode")
|
165 |
+
),
|
166 |
+
"clear" => array(
|
167 |
+
"self-closing" => true,
|
168 |
+
"atts" => array(),
|
169 |
+
"label" => __("Clear", "wp-shortcode"),
|
170 |
+
"content" => "",
|
171 |
+
"description" => __("Clear shortcode can be used to clear an element of its neighbors, no floating elements are allowed on the left or the right side.", "wp-shortcode")
|
172 |
+
),
|
173 |
+
|
174 |
+
// Column Shortcodes
|
175 |
+
|
176 |
+
"one_third" => array(
|
177 |
+
"self-closing" => false,
|
178 |
+
"atts" => array(),
|
179 |
+
"label" => __("One Third", "wp-shortcode"),
|
180 |
+
"content" => __("Column content", "wp-shortcode"),
|
181 |
+
"content_field" => "textarea",
|
182 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
183 |
+
),
|
184 |
+
"one_third_last" => array(
|
185 |
+
"self-closing" => false,
|
186 |
+
"atts" => array(),
|
187 |
+
"label" => __("One Third (Last)", "wp-shortcode"),
|
188 |
+
"content" => __("Column content", "wp-shortcode"),
|
189 |
+
"content_field" => "textarea",
|
190 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
191 |
+
),
|
192 |
+
"two_third" => array(
|
193 |
+
"self-closing" => false,
|
194 |
+
"atts" => array(),
|
195 |
+
"label" => __("Two Third", "wp-shortcode"),
|
196 |
+
"content" => __("Column content", "wp-shortcode"),
|
197 |
+
"content_field" => "textarea",
|
198 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
199 |
+
),
|
200 |
+
"two_third_last" => array(
|
201 |
+
"self-closing" => false,
|
202 |
+
"atts" => array(),
|
203 |
+
"label" => __("Two Third (Last)", "wp-shortcode"),
|
204 |
+
"content" => __("Column content", "wp-shortcode"),
|
205 |
+
"content_field" => "textarea",
|
206 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
207 |
+
),
|
208 |
+
"one_half" => array(
|
209 |
+
"self-closing" => false,
|
210 |
+
"atts" => array(),
|
211 |
+
"label" => __("One Half", "wp-shortcode"),
|
212 |
+
"content" => __("Column content", "wp-shortcode"),
|
213 |
+
"content_field" => "textarea",
|
214 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
215 |
+
),
|
216 |
+
"one_half_last" => array(
|
217 |
+
"self-closing" => false,
|
218 |
+
"atts" => array(),
|
219 |
+
"label" => __("One Half (Last)", "wp-shortcode"),
|
220 |
+
"content" => __("Column content", "wp-shortcode"),
|
221 |
+
"content_field" => "textarea",
|
222 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
223 |
+
),
|
224 |
+
"one_fourth" => array(
|
225 |
+
"self-closing" => false,
|
226 |
+
"atts" => array(),
|
227 |
+
"label" => __("One Fourth", "wp-shortcode"),
|
228 |
+
"content" => __("Column content", "wp-shortcode"),
|
229 |
+
"content_field" => "textarea",
|
230 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
231 |
+
),
|
232 |
+
"one_fourth_last" => array(
|
233 |
+
"self-closing" => false,
|
234 |
+
"atts" => array(),
|
235 |
+
"label" => __("One Fourth (Last)", "wp-shortcode"),
|
236 |
+
"content" => __("Column content", "wp-shortcode"),
|
237 |
+
"content_field" => "textarea",
|
238 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
239 |
+
),
|
240 |
+
"three_fourth" => array(
|
241 |
+
"self-closing" => false,
|
242 |
+
"atts" => array(),
|
243 |
+
"label" => __("Three Fourth", "wp-shortcode"),
|
244 |
+
"content" => __("Column content", "wp-shortcode"),
|
245 |
+
"content_field" => "textarea",
|
246 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
247 |
+
),
|
248 |
+
"three_fourth_last" => array(
|
249 |
+
"self-closing" => false,
|
250 |
+
"atts" => array(),
|
251 |
+
"label" => __("Three Fourth (Last)", "wp-shortcode"),
|
252 |
+
"content" => __("Column content", "wp-shortcode"),
|
253 |
+
"content_field" => "textarea",
|
254 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
255 |
+
),
|
256 |
+
"one_fifth" => array(
|
257 |
+
"self-closing" => false,
|
258 |
+
"atts" => array(),
|
259 |
+
"label" => __("One Fifth", "wp-shortcode"),
|
260 |
+
"content" => __("Column content", "wp-shortcode"),
|
261 |
+
"content_field" => "textarea",
|
262 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
263 |
+
),
|
264 |
+
"one_fifth_last" => array(
|
265 |
+
"self-closing" => false,
|
266 |
+
"atts" => array(),
|
267 |
+
"label" => __("One Fifth (Last)", "wp-shortcode"),
|
268 |
+
"content" => __("Column content", "wp-shortcode"),
|
269 |
+
"content_field" => "textarea",
|
270 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
271 |
+
),
|
272 |
+
"two_fifth" => array(
|
273 |
+
"self-closing" => false,
|
274 |
+
"atts" => array(),
|
275 |
+
"label" => __("Two Fifth", "wp-shortcode"),
|
276 |
+
"content" => __("Column content", "wp-shortcode"),
|
277 |
+
"content_field" => "textarea",
|
278 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
279 |
+
),
|
280 |
+
"two_fifth_last" => array(
|
281 |
+
"self-closing" => false,
|
282 |
+
"atts" => array(),
|
283 |
+
"label" => __("Two Fifth (Last)", "wp-shortcode"),
|
284 |
+
"content" => __("Column content", "wp-shortcode"),
|
285 |
+
"content_field" => "textarea",
|
286 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
287 |
+
),
|
288 |
+
"three_fifth" => array(
|
289 |
+
"self-closing" => false,
|
290 |
+
"atts" => array(),
|
291 |
+
"label" => __("Three Fifth", "wp-shortcode"),
|
292 |
+
"content" => __("Column content", "wp-shortcode"),
|
293 |
+
"content_field" => "textarea",
|
294 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
295 |
+
),
|
296 |
+
"three_fifth_last" => array(
|
297 |
+
"self-closing" => false,
|
298 |
+
"atts" => array(),
|
299 |
+
"label" => __("Three Fifth (Last)", "wp-shortcode"),
|
300 |
+
"content" => __("Column content", "wp-shortcode"),
|
301 |
+
"content_field" => "textarea",
|
302 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
303 |
+
),
|
304 |
+
"four_fifth" => array(
|
305 |
+
"self-closing" => false,
|
306 |
+
"atts" => array(),
|
307 |
+
"label" => __("Four Fifth", "wp-shortcode"),
|
308 |
+
"content" => __("Column content", "wp-shortcode"),
|
309 |
+
"content_field" => "textarea",
|
310 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
311 |
+
),
|
312 |
+
"four_fifth_last" => array(
|
313 |
+
"self-closing" => false,
|
314 |
+
"atts" => array(),
|
315 |
+
"label" => __("Four Fifth (Last)", "wp-shortcode"),
|
316 |
+
"content" => __("Column content", "wp-shortcode"),
|
317 |
+
"content_field" => "textarea",
|
318 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
319 |
+
),
|
320 |
+
"one_sixth" => array(
|
321 |
+
"self-closing" => false,
|
322 |
+
"atts" => array(),
|
323 |
+
"label" => __("One Sixth", "wp-shortcode"),
|
324 |
+
"content" => __("Column content", "wp-shortcode"),
|
325 |
+
"content_field" => "textarea",
|
326 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
327 |
+
),
|
328 |
+
"one_sixth_last" => array(
|
329 |
+
"self-closing" => false,
|
330 |
+
"atts" => array(),
|
331 |
+
"label" => __("One Sixth (Last)", "wp-shortcode"),
|
332 |
+
"content" => __("Column content", "wp-shortcode"),
|
333 |
+
"content_field" => "textarea",
|
334 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
335 |
+
),
|
336 |
+
"five_sixth" => array(
|
337 |
+
"self-closing" => false,
|
338 |
+
"atts" => array(),
|
339 |
+
"label" => __("Five Sixth", "wp-shortcode"),
|
340 |
+
"content" => __("Column content", "wp-shortcode"),
|
341 |
+
"content_field" => "textarea",
|
342 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
343 |
+
),
|
344 |
+
"five_sixth_last" => array(
|
345 |
+
"self-closing" => false,
|
346 |
+
"atts" => array(),
|
347 |
+
"label" => __("Five Sixth (Last)", "wp-shortcode"),
|
348 |
+
"content" => __("Column content", "wp-shortcode"),
|
349 |
+
"content_field" => "textarea",
|
350 |
+
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
351 |
+
),
|
352 |
+
"tooltip" => array(
|
353 |
+
"self-closing" => false,
|
354 |
+
"atts" => array(
|
355 |
+
"content" => "Tooltip content",
|
356 |
+
"gravity" => "n",
|
357 |
+
"fade" => "0"
|
358 |
+
),
|
359 |
+
"label" => __("Tooltip", "wp-shortcode"),
|
360 |
+
"content" => __("Trigger text", "wp-shortcode"),
|
361 |
+
"description" => __("Add a tooltip that appears on hover. Possible values for direction(Cardinal) of bubble: nw | n | ne | w | e | sw | s | se", "wp-shortcode")
|
362 |
+
)
|
363 |
+
);
|
364 |
+
|
365 |
+
$shortcodes = apply_filters( 'mts_wp_shortcode_list', $shortcodes );
|
366 |
+
echo "<script type=\"text/javascript\">var shortcodes = ".json_encode( $shortcodes ).";</script>";
|
367 |
+
|
368 |
?>
|
wp-shortcode.php
CHANGED
@@ -4,25 +4,31 @@ 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 |
|
11 |
function mts_wpshortcodes_scripts() {
|
12 |
-
|
13 |
wp_register_style('tipsy', plugins_url('css/tipsy.css', __FILE__));
|
14 |
-
wp_enqueue_style( 'tipsy' );
|
15 |
-
|
16 |
wp_register_style('mts_wpshortcodes', plugins_url('css/wp-shortcode.css', __FILE__));
|
17 |
-
wp_enqueue_style('mts_wpshortcodes');
|
18 |
-
|
19 |
wp_register_script('tipsy', plugins_url('js/jquery.tipsy.js', __FILE__), array('jquery'));
|
20 |
-
wp_enqueue_script( 'tipsy' );
|
21 |
wp_register_script('mts_wpshortcodes', plugins_url('js/wp-shortcode.js', __FILE__), array('jquery'));
|
22 |
-
wp_enqueue_script('mts_wpshortcodes');
|
23 |
}
|
24 |
add_action('wp_enqueue_scripts', 'mts_wpshortcodes_scripts', 99);
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
function mts_wpshortcodes_load_textdomain() {
|
27 |
load_plugin_textdomain( 'wp-shortcode', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
28 |
}
|
@@ -100,6 +106,7 @@ function mts_button_brown( $atts, $content = null ) {
|
|
100 |
if ($position == 'center') {
|
101 |
$out = '<div class="button-center">'.$out.'</div>';
|
102 |
}
|
|
|
103 |
return $out;
|
104 |
}
|
105 |
|
@@ -114,6 +121,8 @@ function mts_button_blue( $atts, $content = null ) {
|
|
114 |
if ($position == 'center') {
|
115 |
$out = '<div class="button-center">'.$out.'</div>';
|
116 |
}
|
|
|
|
|
117 |
return $out;
|
118 |
}
|
119 |
|
@@ -128,6 +137,8 @@ function mts_button_green( $atts, $content = null ) {
|
|
128 |
if ($position == 'center') {
|
129 |
$out = '<div class="button-center">'.$out.'</div>';
|
130 |
}
|
|
|
|
|
131 |
return $out;
|
132 |
}
|
133 |
|
@@ -142,6 +153,8 @@ function mts_button_red( $atts, $content = null ) {
|
|
142 |
if ($position == 'center') {
|
143 |
$out = '<div class="button-center">'.$out.'</div>';
|
144 |
}
|
|
|
|
|
145 |
return $out;
|
146 |
}
|
147 |
|
@@ -156,6 +169,8 @@ function mts_button_white( $atts, $content = null ) {
|
|
156 |
if ($position == 'center') {
|
157 |
$out = '<div class="button-center">'.$out.'</div>';
|
158 |
}
|
|
|
|
|
159 |
return $out;
|
160 |
}
|
161 |
|
@@ -170,6 +185,8 @@ function mts_button_yellow( $atts, $content = null ) {
|
|
170 |
if ($position == 'center') {
|
171 |
$out = '<div class="button-center">'.$out.'</div>';
|
172 |
}
|
|
|
|
|
173 |
return $out;
|
174 |
}
|
175 |
|
@@ -182,6 +199,8 @@ function mts_alert_note( $atts, $content = null ) {
|
|
182 |
'style' => 'note'
|
183 |
), $atts));
|
184 |
$out = "<div class=\"message_box note\"><p>".do_shortcode($content)."</p></div>";
|
|
|
|
|
185 |
return $out;
|
186 |
}
|
187 |
|
@@ -189,7 +208,9 @@ function mts_alert_announce( $atts, $content = null ) {
|
|
189 |
extract(shortcode_atts(array(
|
190 |
'style' => 'announce'
|
191 |
), $atts));
|
192 |
-
|
|
|
|
|
193 |
return $out;
|
194 |
}
|
195 |
|
@@ -198,6 +219,8 @@ function mts_alert_success( $atts, $content = null ) {
|
|
198 |
'style' => 'success'
|
199 |
), $atts));
|
200 |
$out = "<div class=\"message_box success\"><p>".do_shortcode($content)."</p></div>";
|
|
|
|
|
201 |
return $out;
|
202 |
}
|
203 |
|
@@ -205,7 +228,9 @@ function mts_alert_warning( $atts, $content = null ) {
|
|
205 |
extract(shortcode_atts(array(
|
206 |
'style' => 'warning'
|
207 |
), $atts));
|
208 |
-
|
|
|
|
|
209 |
return $out;
|
210 |
}
|
211 |
|
@@ -214,91 +239,113 @@ function mts_alert_warning( $atts, $content = null ) {
|
|
214 |
/*-----------------------------------------------------------------------------------*/
|
215 |
|
216 |
function mts_one_third( $atts, $content = null ) {
|
|
|
217 |
return '<div class="one_third">' . do_shortcode($content) . '</div>';
|
218 |
}
|
219 |
|
220 |
function mts_one_third_last( $atts, $content = null ) {
|
|
|
221 |
return '<div class="one_third column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
222 |
}
|
223 |
|
224 |
function mts_two_third( $atts, $content = null ) {
|
|
|
225 |
return '<div class="two_third">' . do_shortcode($content) . '</div>';
|
226 |
}
|
227 |
|
228 |
function mts_two_third_last( $atts, $content = null ) {
|
|
|
229 |
return '<div class="two_third column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
230 |
}
|
231 |
|
232 |
function mts_one_half( $atts, $content = null ) {
|
|
|
233 |
return '<div class="one_half">' . do_shortcode($content) . '</div>';
|
234 |
}
|
235 |
|
236 |
function mts_one_half_last( $atts, $content = null ) {
|
|
|
237 |
return '<div class="one_half column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
238 |
}
|
239 |
|
240 |
function mts_one_fourth( $atts, $content = null ) {
|
|
|
241 |
return '<div class="one_fourth">' . do_shortcode($content) . '</div>';
|
242 |
}
|
243 |
|
244 |
function mts_one_fourth_last( $atts, $content = null ) {
|
|
|
245 |
return '<div class="one_fourth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
246 |
}
|
247 |
|
248 |
function mts_three_fourth( $atts, $content = null ) {
|
|
|
249 |
return '<div class="three_fourth">' . do_shortcode($content) . '</div>';
|
250 |
}
|
251 |
|
252 |
function mts_three_fourth_last( $atts, $content = null ) {
|
|
|
253 |
return '<div class="three_fourth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
254 |
}
|
255 |
|
256 |
function mts_one_fifth( $atts, $content = null ) {
|
257 |
-
|
|
|
258 |
}
|
259 |
|
260 |
function mts_one_fifth_last( $atts, $content = null ) {
|
261 |
-
|
|
|
262 |
}
|
263 |
|
264 |
function mts_two_fifth( $atts, $content = null ) {
|
265 |
-
|
|
|
266 |
}
|
267 |
|
268 |
function mts_two_fifth_last( $atts, $content = null ) {
|
269 |
-
|
|
|
270 |
}
|
271 |
|
272 |
function mts_three_fifth( $atts, $content = null ) {
|
273 |
-
|
|
|
274 |
}
|
275 |
|
276 |
function mts_three_fifth_last( $atts, $content = null ) {
|
277 |
-
|
|
|
278 |
}
|
279 |
|
280 |
function mts_four_fifth( $atts, $content = null ) {
|
281 |
-
|
|
|
282 |
}
|
283 |
|
284 |
function mts_four_fifth_last( $atts, $content = null ) {
|
285 |
-
|
|
|
286 |
}
|
287 |
|
288 |
function mts_one_sixth( $atts, $content = null ) {
|
289 |
-
|
|
|
290 |
}
|
291 |
|
292 |
function mts_one_sixth_last( $atts, $content = null ) {
|
293 |
-
|
|
|
294 |
}
|
295 |
|
296 |
function mts_five_sixth( $atts, $content = null ) {
|
297 |
-
|
|
|
298 |
}
|
299 |
|
300 |
function mts_five_sixth_last( $atts, $content = null ) {
|
301 |
-
|
|
|
302 |
}
|
303 |
|
304 |
/*-----------------------------------------------------------------------------------*/
|
@@ -312,6 +359,7 @@ function mts_youtube_video( $atts, $content = null ) {
|
|
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 |
|
@@ -323,6 +371,7 @@ function mts_vimeo_video( $atts, $content = null ) {
|
|
323 |
'position' => 'left'
|
324 |
), $atts));
|
325 |
$out = "<div class=\"vimeo-video " . sanitize_html_class( $position ) . "\"><iframe width=\"" .esc_attr( $width ) . "\" height=\"" .esc_attr( $height ) ."\" src=\"//player.vimeo.com/video/" . esc_attr( $id ) . "?title=0&byline=0&portrait=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
|
|
|
326 |
return $out;
|
327 |
}
|
328 |
|
@@ -342,6 +391,7 @@ function mts_googleMaps($atts, $content = null) {
|
|
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 |
}
|
347 |
|
@@ -373,6 +423,7 @@ function mts_tabs( $atts, $content = null ) {
|
|
373 |
}
|
374 |
$tabcontent .= '</div>';
|
375 |
|
|
|
376 |
return '<div class="tab_widget wp_shortcodes_tabs">' . $tabnav . $tabcontent . '</div><div class="clear"></div>';
|
377 |
}
|
378 |
|
@@ -391,7 +442,7 @@ function mts_toggle( $atts, $content = null ) {
|
|
391 |
extract(shortcode_atts(array(
|
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 |
|
@@ -400,16 +451,19 @@ function mts_toggle( $atts, $content = null ) {
|
|
400 |
/*-----------------------------------------------------------------------------------*/
|
401 |
// simple divider
|
402 |
function mts_divider( $atts ) {
|
|
|
403 |
return '<div class="divider"></div>';
|
404 |
}
|
405 |
|
406 |
// Divider with an anchor link to top of page.
|
407 |
function mts_divider_top( $atts ) {
|
|
|
408 |
return '<div class="top-of-page"><a href="#top">'.__('Back to Top', 'wp-shortcode').'</a></div>';
|
409 |
}
|
410 |
|
411 |
// Used to clear an element of its neighbors, no floating elements are allowed on the left or the right side.
|
412 |
function mts_clear( $atts ) {
|
|
|
413 |
return '<div class="clear"></div>';
|
414 |
}
|
415 |
|
@@ -424,6 +478,7 @@ function mts_tooltip( $atts, $content ) {
|
|
424 |
'gravity' => 'n',
|
425 |
'fade' => '0'
|
426 |
), $atts);
|
|
|
427 |
return '<span class="wp_shortcodes_tooltip" title="'.esc_attr( $atts['content'] ).'" data-gravity="'.esc_attr( $atts['gravity'] ).'" data-fade="'.esc_attr( $atts['fade'] ).'">'.$content.'</span>';
|
428 |
}
|
429 |
-
?>
|
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.10
|
8 |
Author URI: http://mythemeshop.com/
|
9 |
*/
|
10 |
|
11 |
function mts_wpshortcodes_scripts() {
|
|
|
12 |
wp_register_style('tipsy', plugins_url('css/tipsy.css', __FILE__));
|
|
|
|
|
13 |
wp_register_style('mts_wpshortcodes', plugins_url('css/wp-shortcode.css', __FILE__));
|
|
|
|
|
14 |
wp_register_script('tipsy', plugins_url('js/jquery.tipsy.js', __FILE__), array('jquery'));
|
|
|
15 |
wp_register_script('mts_wpshortcodes', plugins_url('js/wp-shortcode.js', __FILE__), array('jquery'));
|
|
|
16 |
}
|
17 |
add_action('wp_enqueue_scripts', 'mts_wpshortcodes_scripts', 99);
|
18 |
|
19 |
+
function mts_wps_enqueue_scripts($shortcode = '') {
|
20 |
+
|
21 |
+
if($shortcode == 'tooltip') {
|
22 |
+
wp_enqueue_style( 'tipsy' );
|
23 |
+
wp_enqueue_script( 'tipsy' );
|
24 |
+
}
|
25 |
+
wp_enqueue_style('mts_wpshortcodes');
|
26 |
+
if($shortcode == 'tooltip' || $shortcode == 'tabs' || $shortcode == 'toggle') {
|
27 |
+
wp_enqueue_script('mts_wpshortcodes');
|
28 |
+
}
|
29 |
+
}
|
30 |
+
add_action('wps_enqueue_style', 'mts_wps_enqueue_scripts', 10, 1);
|
31 |
+
|
32 |
function mts_wpshortcodes_load_textdomain() {
|
33 |
load_plugin_textdomain( 'wp-shortcode', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
34 |
}
|
106 |
if ($position == 'center') {
|
107 |
$out = '<div class="button-center">'.$out.'</div>';
|
108 |
}
|
109 |
+
do_action('wps_enqueue_style');
|
110 |
return $out;
|
111 |
}
|
112 |
|
121 |
if ($position == 'center') {
|
122 |
$out = '<div class="button-center">'.$out.'</div>';
|
123 |
}
|
124 |
+
|
125 |
+
do_action('wps_enqueue_style');
|
126 |
return $out;
|
127 |
}
|
128 |
|
137 |
if ($position == 'center') {
|
138 |
$out = '<div class="button-center">'.$out.'</div>';
|
139 |
}
|
140 |
+
|
141 |
+
do_action('wps_enqueue_style');
|
142 |
return $out;
|
143 |
}
|
144 |
|
153 |
if ($position == 'center') {
|
154 |
$out = '<div class="button-center">'.$out.'</div>';
|
155 |
}
|
156 |
+
|
157 |
+
do_action('wps_enqueue_style');
|
158 |
return $out;
|
159 |
}
|
160 |
|
169 |
if ($position == 'center') {
|
170 |
$out = '<div class="button-center">'.$out.'</div>';
|
171 |
}
|
172 |
+
|
173 |
+
do_action('wps_enqueue_style');
|
174 |
return $out;
|
175 |
}
|
176 |
|
185 |
if ($position == 'center') {
|
186 |
$out = '<div class="button-center">'.$out.'</div>';
|
187 |
}
|
188 |
+
|
189 |
+
do_action('wps_enqueue_style');
|
190 |
return $out;
|
191 |
}
|
192 |
|
199 |
'style' => 'note'
|
200 |
), $atts));
|
201 |
$out = "<div class=\"message_box note\"><p>".do_shortcode($content)."</p></div>";
|
202 |
+
|
203 |
+
do_action('wps_enqueue_style');
|
204 |
return $out;
|
205 |
}
|
206 |
|
208 |
extract(shortcode_atts(array(
|
209 |
'style' => 'announce'
|
210 |
), $atts));
|
211 |
+
$out = "<div class=\"message_box announce\"><p>".do_shortcode($content)."</p></div>";
|
212 |
+
|
213 |
+
do_action('wps_enqueue_style');
|
214 |
return $out;
|
215 |
}
|
216 |
|
219 |
'style' => 'success'
|
220 |
), $atts));
|
221 |
$out = "<div class=\"message_box success\"><p>".do_shortcode($content)."</p></div>";
|
222 |
+
|
223 |
+
do_action('wps_enqueue_style');
|
224 |
return $out;
|
225 |
}
|
226 |
|
228 |
extract(shortcode_atts(array(
|
229 |
'style' => 'warning'
|
230 |
), $atts));
|
231 |
+
$out = "<div class=\"message_box warning\"><p>".do_shortcode($content)."</p></div>";
|
232 |
+
|
233 |
+
do_action('wps_enqueue_style');
|
234 |
return $out;
|
235 |
}
|
236 |
|
239 |
/*-----------------------------------------------------------------------------------*/
|
240 |
|
241 |
function mts_one_third( $atts, $content = null ) {
|
242 |
+
do_action('wps_enqueue_style');
|
243 |
return '<div class="one_third">' . do_shortcode($content) . '</div>';
|
244 |
}
|
245 |
|
246 |
function mts_one_third_last( $atts, $content = null ) {
|
247 |
+
do_action('wps_enqueue_style');
|
248 |
return '<div class="one_third column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
249 |
}
|
250 |
|
251 |
function mts_two_third( $atts, $content = null ) {
|
252 |
+
do_action('wps_enqueue_style');
|
253 |
return '<div class="two_third">' . do_shortcode($content) . '</div>';
|
254 |
}
|
255 |
|
256 |
function mts_two_third_last( $atts, $content = null ) {
|
257 |
+
do_action('wps_enqueue_style');
|
258 |
return '<div class="two_third column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
259 |
}
|
260 |
|
261 |
function mts_one_half( $atts, $content = null ) {
|
262 |
+
do_action('wps_enqueue_style');
|
263 |
return '<div class="one_half">' . do_shortcode($content) . '</div>';
|
264 |
}
|
265 |
|
266 |
function mts_one_half_last( $atts, $content = null ) {
|
267 |
+
do_action('wps_enqueue_style');
|
268 |
return '<div class="one_half column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
269 |
}
|
270 |
|
271 |
function mts_one_fourth( $atts, $content = null ) {
|
272 |
+
do_action('wps_enqueue_style');
|
273 |
return '<div class="one_fourth">' . do_shortcode($content) . '</div>';
|
274 |
}
|
275 |
|
276 |
function mts_one_fourth_last( $atts, $content = null ) {
|
277 |
+
do_action('wps_enqueue_style');
|
278 |
return '<div class="one_fourth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
279 |
}
|
280 |
|
281 |
function mts_three_fourth( $atts, $content = null ) {
|
282 |
+
do_action('wps_enqueue_style');
|
283 |
return '<div class="three_fourth">' . do_shortcode($content) . '</div>';
|
284 |
}
|
285 |
|
286 |
function mts_three_fourth_last( $atts, $content = null ) {
|
287 |
+
do_action('wps_enqueue_style');
|
288 |
return '<div class="three_fourth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
289 |
}
|
290 |
|
291 |
function mts_one_fifth( $atts, $content = null ) {
|
292 |
+
do_action('wps_enqueue_style');
|
293 |
+
return '<div class="one_fifth">' . do_shortcode($content) . '</div>';
|
294 |
}
|
295 |
|
296 |
function mts_one_fifth_last( $atts, $content = null ) {
|
297 |
+
do_action('wps_enqueue_style');
|
298 |
+
return '<div class="one_fifth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
299 |
}
|
300 |
|
301 |
function mts_two_fifth( $atts, $content = null ) {
|
302 |
+
do_action('wps_enqueue_style');
|
303 |
+
return '<div class="two_fifth">' . do_shortcode($content) . '</div>';
|
304 |
}
|
305 |
|
306 |
function mts_two_fifth_last( $atts, $content = null ) {
|
307 |
+
do_action('wps_enqueue_style');
|
308 |
+
return '<div class="two_fifth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
309 |
}
|
310 |
|
311 |
function mts_three_fifth( $atts, $content = null ) {
|
312 |
+
do_action('wps_enqueue_style');
|
313 |
+
return '<div class="three_fifth">' . do_shortcode($content) . '</div>';
|
314 |
}
|
315 |
|
316 |
function mts_three_fifth_last( $atts, $content = null ) {
|
317 |
+
do_action('wps_enqueue_style');
|
318 |
+
return '<div class="three_fifth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
319 |
}
|
320 |
|
321 |
function mts_four_fifth( $atts, $content = null ) {
|
322 |
+
do_action('wps_enqueue_style');
|
323 |
+
return '<div class="four_fifth">' . do_shortcode($content) . '</div>';
|
324 |
}
|
325 |
|
326 |
function mts_four_fifth_last( $atts, $content = null ) {
|
327 |
+
do_action('wps_enqueue_style');
|
328 |
+
return '<div class="four_fifth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
329 |
}
|
330 |
|
331 |
function mts_one_sixth( $atts, $content = null ) {
|
332 |
+
do_action('wps_enqueue_style');
|
333 |
+
return '<div class="one_sixth">' . do_shortcode($content) . '</div>';
|
334 |
}
|
335 |
|
336 |
function mts_one_sixth_last( $atts, $content = null ) {
|
337 |
+
do_action('wps_enqueue_style');
|
338 |
+
return '<div class="one_sixth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
339 |
}
|
340 |
|
341 |
function mts_five_sixth( $atts, $content = null ) {
|
342 |
+
do_action('wps_enqueue_style');
|
343 |
+
return '<div class="five_sixth">' . do_shortcode($content) . '</div>';
|
344 |
}
|
345 |
|
346 |
function mts_five_sixth_last( $atts, $content = null ) {
|
347 |
+
do_action('wps_enqueue_style');
|
348 |
+
return '<div class="five_sixth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
|
349 |
}
|
350 |
|
351 |
/*-----------------------------------------------------------------------------------*/
|
359 |
'position' => 'left'
|
360 |
), $atts));
|
361 |
$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>";
|
362 |
+
do_action('wps_enqueue_style');
|
363 |
return $out;
|
364 |
}
|
365 |
|
371 |
'position' => 'left'
|
372 |
), $atts));
|
373 |
$out = "<div class=\"vimeo-video " . sanitize_html_class( $position ) . "\"><iframe width=\"" .esc_attr( $width ) . "\" height=\"" .esc_attr( $height ) ."\" src=\"//player.vimeo.com/video/" . esc_attr( $id ) . "?title=0&byline=0&portrait=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
|
374 |
+
do_action('wps_enqueue_style');
|
375 |
return $out;
|
376 |
}
|
377 |
|
391 |
} else {
|
392 |
$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>";
|
393 |
}
|
394 |
+
do_action('wps_enqueue_style');
|
395 |
return $out;
|
396 |
}
|
397 |
|
423 |
}
|
424 |
$tabcontent .= '</div>';
|
425 |
|
426 |
+
do_action('wps_enqueue_style', 'tabs');
|
427 |
return '<div class="tab_widget wp_shortcodes_tabs">' . $tabnav . $tabcontent . '</div><div class="clear"></div>';
|
428 |
}
|
429 |
|
442 |
extract(shortcode_atts(array(
|
443 |
'title' => __('Toggle Title', 'wp-shortcode')
|
444 |
), $atts));
|
445 |
+
do_action('wps_enqueue_style', 'toggle');
|
446 |
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>';
|
447 |
}
|
448 |
|
451 |
/*-----------------------------------------------------------------------------------*/
|
452 |
// simple divider
|
453 |
function mts_divider( $atts ) {
|
454 |
+
do_action('wps_enqueue_style');
|
455 |
return '<div class="divider"></div>';
|
456 |
}
|
457 |
|
458 |
// Divider with an anchor link to top of page.
|
459 |
function mts_divider_top( $atts ) {
|
460 |
+
do_action('wps_enqueue_style');
|
461 |
return '<div class="top-of-page"><a href="#top">'.__('Back to Top', 'wp-shortcode').'</a></div>';
|
462 |
}
|
463 |
|
464 |
// Used to clear an element of its neighbors, no floating elements are allowed on the left or the right side.
|
465 |
function mts_clear( $atts ) {
|
466 |
+
do_action('wps_enqueue_style');
|
467 |
return '<div class="clear"></div>';
|
468 |
}
|
469 |
|
478 |
'gravity' => 'n',
|
479 |
'fade' => '0'
|
480 |
), $atts);
|
481 |
+
do_action('wps_enqueue_style', 'tooltip');
|
482 |
return '<span class="wp_shortcodes_tooltip" title="'.esc_attr( $atts['content'] ).'" data-gravity="'.esc_attr( $atts['gravity'] ).'" data-fade="'.esc_attr( $atts['fade'] ).'">'.$content.'</span>';
|
483 |
}
|
484 |
+
?>
|