WP Shortcode by MyThemeShop - Version 1.4.6

Version Description

  • Fixed styling and escaping issues
Download this release

Release Info

Developer MyThemeShop
Plugin Icon 128x128 WP Shortcode by MyThemeShop
Version 1.4.6
Comparing to
See all releases

Code changes from version 1.4.5 to 1.4.6

css/tipsy.css ADDED
@@ -0,0 +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; }
css/wp-shortcode.css CHANGED
@@ -1,83 +1,83 @@
1
  /*-----------------------------------------------
2
- /* Shortcodes
 
 
3
  /*---------------------------------------------*/
4
-
5
  /*-[ Notifications ]---------------------------*/
6
- .message_box { margin: 15px 0 }
 
 
 
 
7
  pre {
8
  overflow: auto;
9
- background: #F7F7F7 url('../images/code.png') 10px 2px no-repeat;
10
- padding: 2em 1em 1em 1em;
11
- border: 1px solid #DDD;
12
  margin: 15px 0;
 
 
 
 
 
13
  }
14
  .note {
15
- background: #FEF4C8;
16
- color: #666;
17
- border: 1px solid #FDEBA5;
18
- }
19
- .note p {
20
- padding: 0.5em 1em 0.5em 2.5em;
21
- background: url('../images/thumb.png') left no-repeat;
22
- margin: 0.3em 0.8em;
23
  }
24
  .announce {
25
- background: #D7EFFB;
26
- color: #666;
27
- border: 1px solid #BEE5F8;
28
- }
29
- .announce p {
30
- padding: 0.5em 1em 0.5em 2.5em;
31
- background: url('../images/speaker.png') left no-repeat;
32
- margin: 0.3em 0.8em;
33
  }
34
  .success {
35
- background: #E8F6D2;
36
- color: #666;
37
  border: 1px solid #DEF1BF;
38
- }
39
- .success p {
40
- padding: 0.5em 1em 0.5em 2.5em;
41
- background: url('../images/tick.png') left no-repeat;
42
- margin: 0.3em 0.8em;
43
  }
44
  .warning {
45
- background: #FFE7E7;
46
- color: #666;
47
  border: 1px solid #FFDBDB;
48
- }
49
- .warning p {
50
- padding: 0.5em 1em 0.5em 2.5em;
51
- background: url('../images/cross.png') left no-repeat;
52
- margin: 0.3em 0.8em;
53
  }
54
  /*-[ Buttons ]---------------------------------*/
55
- .article .buttons {
56
  font-size: 12px;
57
  text-decoration: none;
58
- position: relative;
59
  border-radius: 5px;
60
  -webkit-border-radius: 5px;
61
  -moz-border-radius: 5px;
62
- margin: 15px 15px 15px 0;
63
  padding: 12px 10px;
64
  overflow: hidden;
65
  display: inline-block;
66
  width: auto;
67
  }
68
- .buttons span { float: none; overflow: hidden;}
69
- a.buttons { color: #fff!important; text-decoration: none; }
 
 
 
 
 
 
 
 
 
 
 
70
  a.buttons.left {
71
  margin-right: 15px;
72
  margin-bottom: 15px;
73
  float: left;
74
-
75
  }
76
  a.buttons.right {
77
  margin-left: 15px;
78
  margin-bottom: 15px;
 
79
  float: right;
80
  }
 
 
 
 
81
  a.buttons.center {
82
  clear: both;
83
  display: inline-block;
@@ -86,308 +86,63 @@ a.buttons.center {
86
  }
87
  a.btn_white { color: #4F4F4F!important }
88
  .btn_brown {
89
- background-color: #D9C2A5;
90
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #D9C2A5), color-stop(100%, #C3A178));
91
- background-image: -webkit-linear-gradient(top, #D9C2A5, #C3A178);
92
- background-image: -moz-linear-gradient(top, #D9C2A5, #C3A178);
93
- background-image: -ms-linear-gradient(top, #D9C2A5, #C3A178);
94
- background-image: -o-linear-gradient(top, #D9C2A5, #C3A178);
95
- background-image: linear-gradient(top, #D9C2A5, #C3A178);
96
- border-top: 1px solid #BD986A;
97
- border-right: 1px solid #BD986A;
98
- border-bottom: 1px solid #9A7445;
99
- border-left: 1px solid #BD986A;
100
- -webkit-border-radius: 4px;
101
- -moz-border-radius: 4px;
102
- border-radius: 4px;
103
- -webkit-box-shadow: inset 0 1px 0 0 #DFCC9F;
104
- -moz-box-shadow: inset 0 1px 0 0 #DFCC9F;
105
- box-shadow: inset 0 1px 0 0 #DFCC9F;
106
  color: white;
107
- font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
108
- line-height: 1;
109
- padding: 8px 25px;
110
- text-shadow: 0 -1px 1px #BA905E;
111
- text-transform: uppercase;
112
- padding: 12px 10px;
113
  }
114
  .btn_brown:hover {
115
  background-color: #D1B593;
116
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #D1B593), color-stop(100%, #BC966B));
117
- background-image: -webkit-linear-gradient(top, #D1B593, #BC966B);
118
- background-image: -moz-linear-gradient(top, #D1B593, #BC966B);
119
- background-image: -ms-linear-gradient(top, #D1B593, #BC966B);
120
- background-image: -o-linear-gradient(top, #D1B593, #BC966B);
121
- background-image: linear-gradient(top, #D1B593, #BC966B);
122
- border-top: 1px solid #BD986A;
123
- border-right: 1px solid #BD986A;
124
- border-bottom: 1px solid #9A7445;
125
- border-left: 1px solid #BD986A;
126
- -webkit-box-shadow: inset 0 1px 0 0 #DFCC9F;
127
- -moz-box-shadow: inset 0 1px 0 0 #DFCC9F;
128
- box-shadow: inset 0 1px 0 0 #DFCC9F;
129
- cursor: pointer;
130
  color: white!important;
131
  }
132
- .btn_brown:active {
133
- border: 1px solid #B2824C;
134
- -webkit-box-shadow: inset 0 0 8px 2px #C19B70;
135
- -moz-box-shadow: inset 0 0 8px 2px #C19B70;
136
- box-shadow: inset 0 0 8px 2px #C19B70;
137
- }
138
  .btn_blue {
139
  background-color: #A5B8DA;
140
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #A5B8DA), color-stop(100%, #7089B3));
141
- background-image: -webkit-linear-gradient(top, #A5B8DA, #7089B3);
142
- background-image: -moz-linear-gradient(top, #A5B8DA, #7089B3);
143
- background-image: -ms-linear-gradient(top, #A5B8DA, #7089B3);
144
- background-image: -o-linear-gradient(top, #A5B8DA, #7089B3);
145
- background-image: linear-gradient(top, #A5B8DA, #7089B3);
146
- border-top: 1px solid #758FBA;
147
- border-right: 1px solid #6C84AB;
148
- border-bottom: 1px solid #5C6F91;
149
- border-left: 1px solid #6C84AB;
150
- -webkit-border-radius: 4px;
151
- -moz-border-radius: 4px;
152
- border-radius: 4px;
153
- -webkit-box-shadow: inset 0 1px 0 0 #aec3e5;
154
- -moz-box-shadow: inset 0 1px 0 0 #aec3e5;
155
- box-shadow: inset 0 1px 0 0 #aec3e5;
156
  color: white;
157
- font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
158
- line-height: 1;
159
- padding: 8px 25px;
160
- text-shadow: 0 -1px 1px #64799E;
161
- text-transform: uppercase;
162
- padding: 12px 10px;
163
  }
164
  .btn_blue:hover {
165
  background-color: #9badcc;
166
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #9badcc), color-stop(100%, #687fa6));
167
- background-image: -webkit-linear-gradient(top, #9badcc, #687fa6);
168
- background-image: -moz-linear-gradient(top, #9badcc, #687fa6);
169
- background-image: -ms-linear-gradient(top, #9badcc, #687fa6);
170
- background-image: -o-linear-gradient(top, #9badcc, #687fa6);
171
- background-image: linear-gradient(top, #9badcc, #687fa6);
172
- border-top: 1px solid #6d86ad;
173
- border-right: 1px solid #647a9e;
174
- border-bottom: 1px solid #546685;
175
- border-left: 1px solid #647a9e;
176
- -webkit-box-shadow: inset 0 1px 0 0 #a5b9d9;
177
- -moz-box-shadow: inset 0 1px 0 0 #a5b9d9;
178
- box-shadow: inset 0 1px 0 0 #a5b9d9;
179
- cursor: pointer;
180
  color: white!important;
181
  }
182
- .btn_blue:active {
183
- border: 1px solid #546685;
184
- -webkit-box-shadow: inset 0 0 8px 2px #7e8da6;
185
- -moz-box-shadow: inset 0 0 8px 2px #7e8da6;
186
- box-shadow: inset 0 0 8px 2px #7e8da6;
187
- }
188
  .btn_green {
189
  background-color: #6CB24C;
190
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #6CB24C), color-stop(100%, #52873A));
191
- background-image: -webkit-linear-gradient(top, #6CB24C, #52873A);
192
- background-image: -moz-linear-gradient(top, #6CB24C, #52873A);
193
- background-image: -ms-linear-gradient(top, #6CB24C, #52873A);
194
- background-image: -o-linear-gradient(top, #6CB24C, #52873A);
195
- background-image: linear-gradient(top, #6CB24C, #52873A);
196
- border-top: 1px solid #477532;
197
- border-right: 1px solid #477532;
198
- border-bottom: 1px solid #3A6029;
199
- border-left: 1px solid #477532;
200
- -webkit-border-radius: 4px;
201
- -moz-border-radius: 4px;
202
- border-radius: 4px;
203
- -webkit-box-shadow: inset 0 1px 0 0 #8FC477;
204
- -moz-box-shadow: inset 0 1px 0 0 #8FC477;
205
- box-shadow: inset 0 1px 0 0 #8FC477;
206
  color: white;
207
- font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
208
- line-height: 1;
209
- padding: 12px 10px;
210
- text-shadow: 0 -1px 1px #416B2D;
211
- text-transform: uppercase;
212
  }
213
  .btn_green:hover {
214
  background-color: #5F9D43;
215
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #68AB49), color-stop(100%, #4A7834));
216
- background-image: -webkit-linear-gradient(top, #68AB49, #4A7834);
217
- background-image: -moz-linear-gradient(top, #68AB49, #4A7834);
218
- background-image: -ms-linear-gradient(top, #68AB49, #4A7834);
219
- background-image: -o-linear-gradient(top, #68AB49, #4A7834);
220
- background-image: linear-gradient(top, #68AB49, #4A7834);
221
- border-top: 1px solid #4E8037;
222
- border-right: 1px solid #4E8037;
223
- border-bottom: 1px solid #3A6029;
224
- border-left: 1px solid #4E8037;
225
- -webkit-box-shadow: inset 0 1px 0 0 #8FC477;
226
- -moz-box-shadow: inset 0 1px 0 0 #8FC477;
227
- box-shadow: inset 0 1px 0 0 #8FC477;
228
- cursor: pointer;
229
  color: white!important;
230
  }
231
- .btn_green:active {
232
- border: 1px solid #436D30;
233
- -webkit-box-shadow: inset 0 0 8px 2px #467131;
234
- -moz-box-shadow: inset 0 0 8px 2px #467131;
235
- box-shadow: inset 0 0 8px 2px #467131;
236
- }
237
  .btn_yellow {
238
  background-color: #FFDA6B;
239
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #FFDA6B), color-stop(100%, #FEAE2D));
240
- background-image: -webkit-linear-gradient(top, #FFDA6B, #FEAE2D);
241
- background-image: -moz-linear-gradient(top, #FFDA6B, #FEAE2D);
242
- background-image: -ms-linear-gradient(top, #FFDA6B, #FEAE2D);
243
- background-image: -o-linear-gradient(top, #FFDA6B, #FEAE2D);
244
- background-image: linear-gradient(top, #FFDA6B, #FEAE2D);
245
- border-top: 1px solid #D6AB00;
246
- border-right: 1px solid #D6AB00;
247
- border-bottom: 1px solid #BC9600;
248
- border-left: 1px solid #D6AB00;
249
- -webkit-border-radius: 4px;
250
- -moz-border-radius: 4px;
251
- border-radius: 4px;
252
- -webkit-box-shadow: inset 0 1px 0 0 #FFE599;
253
- -moz-box-shadow: inset 0 1px 0 0 #FFE599;
254
- box-shadow: inset 0 1px 0 0 #FFE599;
255
  color: #fff;
256
- line-height: 1;
257
- padding: 8px 25px;
258
- text-shadow: 0 1px 1px #BC9600;
259
- text-transform: uppercase;
260
- font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
261
- line-height: 1;
262
- padding: 12px 10px;
263
  }
264
  .btn_yellow:hover {
265
  background-color: #FFD351;
266
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #FFD351), color-stop(100%, #FDA00B));
267
- background-image: -webkit-linear-gradient(top, #FFD351, #FDA00B);
268
- background-image: -moz-linear-gradient(top, #FFD351, #FDA00B);
269
- background-image: -ms-linear-gradient(top, #FFD351, #FDA00B);
270
- background-image: -o-linear-gradient(top, #FFD351, #FDA00B);
271
- background-image: linear-gradient(top, #FFD351, #FDA00B);
272
- border-top: 1px solid #D6AB00;
273
- border-right: 1px solid #D6AB00;
274
- border-bottom: 1px solid #BC9600;
275
- border-left: 1px solid #D6AB00;
276
- -webkit-box-shadow: inset 0 1px 0 0 #FFE599;
277
- -moz-box-shadow: inset 0 1px 0 0 #FFE599;
278
- box-shadow: inset 0 1px 0 0 #FFE599;
279
- cursor: pointer;
280
  color: #fff!important;
281
  }
282
- .btn_yellow:active {
283
- border: 1px solid #F29202;
284
- -webkit-box-shadow: inset 0 0 8px 2px #F29202;
285
- -moz-box-shadow: inset 0 0 8px 2px #F29202;
286
- box-shadow: inset 0 0 8px 2px #F29202;
287
- }
288
  .btn_red {
289
  background-color: #E83030;
290
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #E83030), color-stop(100%, #B71414));
291
- background-image: -webkit-linear-gradient(top, #E83030, #B71414);
292
- background-image: -moz-linear-gradient(top, #E83030, #B71414);
293
- background-image: -ms-linear-gradient(top, #E83030, #B71414);
294
- background-image: -o-linear-gradient(top, #E83030, #B71414);
295
- background-image: linear-gradient(top, #E83030, #B71414);
296
- border-top: 1px solid #9C1111;
297
- border-right: 1px solid #9C1111;
298
- border-bottom: 1px solid #890F0F;
299
- border-left: 1px solid #9C1111;
300
- -webkit-border-radius: 4px;
301
- -moz-border-radius: 4px;
302
- border-radius: 4px;
303
- -webkit-box-shadow: inset 0 1px 0 0 #FF6B6B;
304
- -moz-box-shadow: inset 0 1px 0 0 #FF6B6B;
305
- box-shadow: inset 0 1px 0 0 #FF6B6B;
306
  color: white;
307
- font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
308
- line-height: 1;
309
- padding: 8px 25px;
310
- text-shadow: 0 -1px 1px #A01111;
311
- text-transform: uppercase;
312
- padding: 12px 10px;
313
  }
314
  .btn_red:hover {
315
  background-color: #E63131;
316
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #E63131), color-stop(100%, #9C1111));
317
- background-image: -webkit-linear-gradient(top, #E63131, #9C1111);
318
- background-image: -moz-linear-gradient(top, #E63131, #9C1111);
319
- background-image: -ms-linear-gradient(top, #E63131, #9C1111);
320
- background-image: -o-linear-gradient(top, #E63131, #9C1111);
321
- background-image: linear-gradient(top, #E63131, #9C1111);
322
- border-top: 1px solid #9C1111;
323
- border-right: 1px solid #9C1111;
324
- border-bottom: 1px solid #890F0F;
325
- border-left: 1px solid #9C1111;
326
- -webkit-box-shadow: inset 0 1px 0 0 #FE4C4C;
327
- -moz-box-shadow: inset 0 1px 0 0 #FE4C4C;
328
- box-shadow: inset 0 1px 0 0 #FE4C4C;
329
- cursor: pointer;
330
  color: white!important;
331
  }
332
- .btn_red:active {
333
- border: 1px solid #890F0F;
334
- -webkit-box-shadow: inset 0 0 8px 2px #890F0F;
335
- -moz-box-shadow: inset 0 0 8px 2px #890F0F;
336
- box-shadow: inset 0 0 8px 2px #890F0F;
337
- }
338
  .btn_white {
339
  background-color: #F7F7F7;
340
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #F7F7F7), color-stop(100%, #E0E0E0));
341
- background-image: -webkit-linear-gradient(top, #F7F7F7, #E0E0E0);
342
- background-image: -moz-linear-gradient(top, #F7F7F7, #E0E0E0);
343
- background-image: -ms-linear-gradient(top, #F7F7F7, #E0E0E0);
344
- background-image: -o-linear-gradient(top, #F7F7F7, #E0E0E0);
345
- background-image: linear-gradient(top, #F7F7F7, #E0E0E0);
346
- border-top: 1px solid #CECECE;
347
- border-right: 1px solid #CECECE;
348
- border-bottom: 1px solid #C4C4C4;
349
- border-left: 1px solid #CECECE;
350
- -webkit-border-radius: 4px;
351
- -moz-border-radius: 4px;
352
- border-radius: 4px;
353
- -webkit-box-shadow: inset 0 1px 0 0 #FFFFFF;
354
- -moz-box-shadow: inset 0 1px 0 0 #FFFFFF;
355
- box-shadow: inset 0 1px 0 0 #FFFFFF;
356
  color: #4F4F4F;
357
- font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
358
- line-height: 1;
359
- padding: 8px 25px;
360
- text-shadow: 0 -1px 1px #fff;
361
- text-transform: uppercase;
362
- padding: 12px 10px;
363
  }
364
  .btn_white:hover {
365
  background-color: #F4F4F4;
366
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #F4F4F4), color-stop(100%, #D3D3D3));
367
- background-image: -webkit-linear-gradient(top, #F4F4F4, #D3D3D3);
368
- background-image: -moz-linear-gradient(top, #F4F4F4, #D3D3D3);
369
- background-image: -ms-linear-gradient(top, #F4F4F4, #D3D3D3);
370
- background-image: -o-linear-gradient(top, #F4F4F4, #D3D3D3);
371
- background-image: linear-gradient(top, #F4F4F4, #D3D3D3);
372
- border-top: 1px solid #CECECE;
373
- border-right: 1px solid #CECECE;
374
- border-bottom: 1px solid #C4C4C4;
375
- border-left: 1px solid #CECECE;
376
- -webkit-box-shadow: inset 0 1px 0 0 #fff;
377
- -moz-box-shadow: inset 0 1px 0 0 #fff;
378
- box-shadow: inset 0 1px 0 0 #fff;
379
- cursor: pointer;
380
  color: #4F4F4F!important;
381
  }
382
  .btn_white:active {
383
  border: 1px solid #C1C1C1;
384
- -webkit-box-shadow: inset 0 0 8px 2px #C1C1C1;
385
- -moz-box-shadow: inset 0 0 8px 2px #C1C1C1;
386
  box-shadow: inset 0 0 8px 2px #C1C1C1;
387
  }
388
  /*-[ Video Shortcode ]-------------------------*/
389
  .textwidget .youtube-video, .textwidget .vimeo-video, .textwidget .googlemaps { margin: 0 }
390
- .youtube-video, .vimeo-video { margin: 10px 0 10px 0 }
 
 
 
391
  /*-[ Google Maps ]-----------------------------*/
392
  .googlemaps { margin: 5px 15px 10px 0 }
393
  /*-[ Columns ]---------------------------------*/
@@ -425,6 +180,7 @@ a.btn_white { color: #4F4F4F!important }
425
  height: 40px;
426
  border-bottom: 1px solid #DDD;
427
  margin: 0;
 
428
  }
429
  .tab_widget ul.wps_tabs li {
430
  float: left;
@@ -438,9 +194,6 @@ a.btn_white { color: #4F4F4F!important }
438
  overflow: hidden;
439
  position: relative;
440
  background-image: linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
441
- background-image: -o-linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
442
- background-image: -moz-linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
443
- background-image: -webkit-linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
444
  background-image: -ms-linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
445
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.09, rgb(230,230,230)), color-stop(0.55, rgb(238,238,238)) );
446
  }
@@ -489,7 +242,7 @@ a.btn_white { color: #4F4F4F!important }
489
  .toggle .wps_togglet, .toggle .toggleta {
490
  display: block;
491
  position: relative;
492
- height: 36px;
493
  padding: 0 12px;
494
  background: #EEE;
495
  border: 1px solid #DDD;
@@ -498,7 +251,7 @@ a.btn_white { color: #4F4F4F!important }
498
  }
499
  .toggle .wps_togglet span, .toggle .toggleta span {
500
  display: block;
501
- height: 36px;
502
  line-height: 36px;
503
  color: #888;
504
  text-shadow: 1px 1px 1px #FFF;
@@ -530,4 +283,4 @@ a.btn_white { color: #4F4F4F!important }
530
  text-align: right;
531
  padding-bottom: 5px;
532
  border-bottom: 5px solid #EEE;
533
- }
1
  /*-----------------------------------------------
2
+ /* Plugin: WP Shortcode
3
+ /* Author: MyThemeShop
4
+ /* Version: 1.4
5
  /*---------------------------------------------*/
 
6
  /*-[ Notifications ]---------------------------*/
7
+ .message_box {
8
+ margin: 15px 0;
9
+ padding: 1em 1em;
10
+ }
11
+ .message_box p { margin-bottom: 0 }
12
  pre {
13
  overflow: auto;
14
+ padding: 15px;
 
 
15
  margin: 15px 0;
16
+ position: relative;
17
+ background: #777;
18
+ font-family: monospace;
19
+ color: #FFF;
20
+ box-sizing: border-box;
21
  }
22
  .note {
23
+ background: #FAF3D4;
24
+ color: #A6A377;
 
 
 
 
 
 
25
  }
26
  .announce {
27
+ background: #d0e6f0;
28
+ color: #7190a2;
 
 
 
 
 
 
29
  }
30
  .success {
 
 
31
  border: 1px solid #DEF1BF;
32
+ background: #D8EBCE;
33
+ color: #748F5D;
 
 
 
34
  }
35
  .warning {
 
 
36
  border: 1px solid #FFDBDB;
37
+ background: #FDE2E2;
38
+ color: #AC888A;
 
 
 
39
  }
40
  /*-[ Buttons ]---------------------------------*/
41
+ .buttons {
42
  font-size: 12px;
43
  text-decoration: none;
 
44
  border-radius: 5px;
45
  -webkit-border-radius: 5px;
46
  -moz-border-radius: 5px;
47
+ margin: 0 15px 15px 0;
48
  padding: 12px 10px;
49
  overflow: hidden;
50
  display: inline-block;
51
  width: auto;
52
  }
53
+ .buttons span {
54
+ float: none;
55
+ overflow: hidden;
56
+ }
57
+ a.buttons {
58
+ color: #fff!important;
59
+ text-decoration: none;
60
+ padding: 10px 20px;
61
+ border-radius: 3px;
62
+ border: 1px solid rgba(0, 0, 0, 0.1);
63
+ text-transform: uppercase;
64
+ font-weight: bold;
65
+ }
66
  a.buttons.left {
67
  margin-right: 15px;
68
  margin-bottom: 15px;
69
  float: left;
 
70
  }
71
  a.buttons.right {
72
  margin-left: 15px;
73
  margin-bottom: 15px;
74
+ margin-right: 0;
75
  float: right;
76
  }
77
+ div.button-center {
78
+ width: 100%;
79
+ text-align: center;
80
+ }
81
  a.buttons.center {
82
  clear: both;
83
  display: inline-block;
86
  }
87
  a.btn_white { color: #4F4F4F!important }
88
  .btn_brown {
89
+ background-color: #C5703F;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  color: white;
 
 
 
 
 
 
91
  }
92
  .btn_brown:hover {
93
  background-color: #D1B593;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  color: white!important;
95
  }
 
 
 
 
 
 
96
  .btn_blue {
97
  background-color: #A5B8DA;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  color: white;
 
 
 
 
 
 
99
  }
100
  .btn_blue:hover {
101
  background-color: #9badcc;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  color: white!important;
103
  }
 
 
 
 
 
 
104
  .btn_green {
105
  background-color: #6CB24C;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  color: white;
 
 
 
 
 
107
  }
108
  .btn_green:hover {
109
  background-color: #5F9D43;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  color: white!important;
111
  }
 
 
 
 
 
 
112
  .btn_yellow {
113
  background-color: #FFDA6B;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  color: #fff;
 
 
 
 
 
 
 
115
  }
116
  .btn_yellow:hover {
117
  background-color: #FFD351;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  color: #fff!important;
119
  }
 
 
 
 
 
 
120
  .btn_red {
121
  background-color: #E83030;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  color: white;
 
 
 
 
 
 
123
  }
124
  .btn_red:hover {
125
  background-color: #E63131;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  color: white!important;
127
  }
 
 
 
 
 
 
128
  .btn_white {
129
  background-color: #F7F7F7;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  color: #4F4F4F;
 
 
 
 
 
 
131
  }
132
  .btn_white:hover {
133
  background-color: #F4F4F4;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  color: #4F4F4F!important;
135
  }
136
  .btn_white:active {
137
  border: 1px solid #C1C1C1;
 
 
138
  box-shadow: inset 0 0 8px 2px #C1C1C1;
139
  }
140
  /*-[ Video Shortcode ]-------------------------*/
141
  .textwidget .youtube-video, .textwidget .vimeo-video, .textwidget .googlemaps { margin: 0 }
142
+ .youtube-video, .vimeo-video {
143
+ margin: 10px 0 10px 0;
144
+ width: 100%;
145
+ }
146
  /*-[ Google Maps ]-----------------------------*/
147
  .googlemaps { margin: 5px 15px 10px 0 }
148
  /*-[ Columns ]---------------------------------*/
180
  height: 40px;
181
  border-bottom: 1px solid #DDD;
182
  margin: 0;
183
+ padding: 0;
184
  }
185
  .tab_widget ul.wps_tabs li {
186
  float: left;
194
  overflow: hidden;
195
  position: relative;
196
  background-image: linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
 
 
 
197
  background-image: -ms-linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
198
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.09, rgb(230,230,230)), color-stop(0.55, rgb(238,238,238)) );
199
  }
242
  .toggle .wps_togglet, .toggle .toggleta {
243
  display: block;
244
  position: relative;
245
+ min-height: 36px;
246
  padding: 0 12px;
247
  background: #EEE;
248
  border: 1px solid #DDD;
251
  }
252
  .toggle .wps_togglet span, .toggle .toggleta span {
253
  display: block;
254
+ min-height: 36px;
255
  line-height: 36px;
256
  color: #888;
257
  text-shadow: 1px 1px 1px #FFF;
283
  text-align: right;
284
  padding-bottom: 5px;
285
  border-bottom: 5px solid #EEE;
286
+ }
images/code.png DELETED
Binary file
images/cross.png DELETED
Binary file
images/speaker.png DELETED
Binary file
images/thumb.png DELETED
Binary file
images/tick.png DELETED
Binary file
images/toggle-down.png CHANGED
Binary file
images/toggle-up.png CHANGED
Binary file
js/jquery.tipsy.js ADDED
@@ -0,0 +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);
js/wp-shortcode.js CHANGED
@@ -25,4 +25,14 @@ jQuery(document).ready(function($){
25
  });
26
  });
27
  }
 
 
 
 
 
 
 
 
 
 
28
  });
25
  });
26
  });
27
  }
28
+
29
+ if ($('.wp_shortcodes_tooltip').length) {
30
+ $('.wp_shortcodes_tooltip').each(function(index, el) {
31
+ var $this = $(this),
32
+ ttgravity = $this.data('gravity'),
33
+ ttfade = Boolean($this.data('fade'));
34
+ $this.tipsy({gravity: ttgravity, fade: ttfade});
35
+ });
36
+ }
37
+
38
  });
languages/default.mo ADDED
Binary file
languages/default.po ADDED
@@ -0,0 +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=&quot;Tab 1 Title&quot;]Insert tab 1 content here[/tab]\n"
188
+ "[tab title=&quot;Tab 2 Title&quot;]Insert tab 2 content here[/tab]\n"
189
+ "[tab title=&quot;Tab 3 Title&quot;]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.7.2
7
- Stable tag: 1.4.5
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.5 =
69
  * Fixed sanitize_html_class() functions
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.8
7
+ Stable tag: 1.4.6
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.6 =
69
+ * Fixed styling and escaping issues
70
+
71
  = 1.4.5 =
72
  * Fixed sanitize_html_class() functions
73
 
tinymce/editor_plugin.css CHANGED
@@ -1,26 +1,7 @@
1
- #mnmshortcode_tag {
2
- width: 200px;
3
- }
4
- #mnmshortcode_panel {
5
- margin-bottom: 8px;
6
- }
7
- #mnmshortcode_panel table {
8
- width: 100%;
9
- font-size: 12px;
10
- }
11
- .mnmshortcode_description {
12
- color: #666;
13
- font-size: 12px;
14
- }
15
- .mnmshortcode_att_name {
16
- text-transform: capitalize;
17
- }
18
- #mnmshortcode_panel input, #mnmshortcode_panel select, #mnmshortcode_panel textarea {
19
- width: 100%;
20
- padding: 4px 4px;
21
- font-size: 12px;
22
- font-family: 'Open Sans', sans-serif;
23
- }
24
- #mnmshortcode_panel textarea {
25
- height: 120px;
26
- }
1
+ #mnmshortcode_tag { width: 200px }
2
+ #mnmshortcode_panel { margin-bottom: 8px }
3
+ #mnmshortcode_panel table { width: 100%; font-size: 12px; }
4
+ .mnmshortcode_description { color: #666; font-size: 12px; }
5
+ .mnmshortcode_att_name { text-transform: capitalize }
6
+ #mnmshortcode_panel input, #mnmshortcode_panel select, #mnmshortcode_panel textarea { width: 100%; padding: 4px 4px; font-size: 12px; font-family: 'Open Sans', sans-serif; }
7
+ #mnmshortcode_panel textarea { height: 120px }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tinymce/editor_plugin.js CHANGED
@@ -17,7 +17,7 @@
17
  file : url + '/editor_plugin.php',
18
  inline : 1,
19
  width : 450 + ed.getLang('wpspanel.delta_width', 0),
20
- height : 200 + ed.getLang('wpspanel.delta_height', 0),
21
  }, {
22
  plugin_url : url, // Plugin absolute URL
23
  some_custom_arg : 'custom arg' // Custom argument
@@ -25,8 +25,16 @@
25
  });
26
  // Resize function
27
  ed.addCommand( 'mcewpspanel_resize', function( ui, v ) {
28
- //console.log(v);
29
- ed.windowManager.params.mce_height = v.height + 52;
 
 
 
 
 
 
 
 
30
  } );
31
  // Register example button
32
  ed.addButton('wpspanel', {
@@ -56,21 +64,15 @@
56
  return null;
57
  },
58
 
59
- /**
60
- * Returns information about the plugin as a name/value array.
61
- * The current keys are longname, author, authorurl, infourl and version.
62
- *
63
- * @return {Object} Name/value array containing information about the plugin.
64
- */
65
- getInfo : function() {
66
- return {
67
- longname : 'wpspanel',
68
- author : 'Smashing WP Themes',
69
- authorurl : 'http://tinymce.moxiecode.com',
70
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',
71
- version : "1.0"
72
- };
73
- }
74
  });
75
 
76
  // Register plugin
17
  file : url + '/editor_plugin.php',
18
  inline : 1,
19
  width : 450 + ed.getLang('wpspanel.delta_width', 0),
20
+ height : 80 + ed.getLang('wpspanel.delta_height', 0)
21
  }, {
22
  plugin_url : url, // Plugin absolute URL
23
  some_custom_arg : 'custom arg' // Custom argument
25
  });
26
  // Resize function
27
  ed.addCommand( 'mcewpspanel_resize', function( ui, v ) {
28
+ if (ed.windowManager.params === undefined) {
29
+ // TinyMCE 4
30
+ var windowID = ed.windowManager.windows[0]._id;
31
+ var elem = window.top.document.getElementById(windowID+'-body');
32
+ jQuery(elem).height(v.height + 52);
33
+ } else {
34
+ // TinyMCE 3
35
+ ed.windowManager.params.mce_height = v.height + 52;
36
+ }
37
+
38
  } );
39
  // Register example button
40
  ed.addButton('wpspanel', {
64
  return null;
65
  },
66
 
67
+ getInfo : function() {
68
+ return {
69
+ longname : 'WP Shortcode',
70
+ author : 'MyThemeShop',
71
+ authorurl : 'http://mythemeshop.com',
72
+ infourl : 'http://mythemeshop.com/plugins/wp-shortcode',
73
+ version : '1.4.2'
74
+ };
75
+ }
 
 
 
 
 
 
76
  });
77
 
78
  // Register plugin
tinymce/editor_plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  require_once('mnm_config.php');
4
  // check for rights
5
  if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
6
- wp_die(__("You are not allowed to be here", "mythemeshop"));
7
  global $wpdb;
8
  ?>
9
  <html xmlns="http://www.w3.org/1999/xhtml">
@@ -15,6 +15,7 @@ if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
15
  <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
16
 
17
  <script language="javascript" type="text/javascript" src="<?php echo includes_url(); ?>js/jquery/jquery.js"></script>
 
18
  <script language="javascript" type="text/javascript" src="<?php echo plugin_dir_url(__FILE__); ?>tinymce.js"></script>
19
  <base target="_self" />
20
  <link rel="stylesheet" type="text/css" href="<?php echo plugin_dir_url(__FILE__); ?>editor_plugin.css" media="all" />
@@ -22,13 +23,12 @@ if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
22
  <body id="link">
23
  <!-- <form onsubmit="insertLink();return false;" action="#"> -->
24
  <form name="mnm_tabs" action="#" id="mnmshortcode_form">
25
-
26
  <div>
27
  <!-- gallery panel -->
28
  <div id="mnmshortcode_panel" class="panel">
29
  <table border="0" cellpadding="4" cellspacing="0">
30
  <tr>
31
- <td><label for="mnmshortcode_tag"><?php _e("Select Shortcode", 'mythemeshop'); ?></label></td>
32
  <td><select id="mnmshortcode_tag" name="mnmshortcode_tag">
33
  <option value="0">Select Shortcode</option>
34
  <?php
@@ -43,8 +43,8 @@ if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
43
  $mnm_shortcode_name = str_replace('mts_', '' ,$short_code_value);
44
  $mnm_shortcode_names = str_replace('_', ' ' ,$mnm_shortcode_name);
45
  $mnm_shortcodenames = ucwords($mnm_shortcode_names);
46
-
47
- echo '<option value="' . $mnm_shortcodekey . '" >' . $mnm_shortcodenames.'</option>' . "\n";
48
  echo '</optgroup>';
49
 
50
  $i++;
@@ -65,11 +65,11 @@ if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
65
 
66
  <div class="mceActionPanel">
67
  <div style="float: left">
68
- <input type="button" id="cancel" name="cancel" value="Cancel" onClick="tinyMCEPopup.close();" />
69
  </div>
70
 
71
  <div style="float: right">
72
- <input type="submit" id="insert" name="insert" value="Insert" onClick="mnmshortcodesubmit();" />
73
  </div>
74
  </div>
75
  </form>
3
  require_once('mnm_config.php');
4
  // check for rights
5
  if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
6
+ wp_die(__("You are not allowed to be here", "wp-shortcode"));
7
  global $wpdb;
8
  ?>
9
  <html xmlns="http://www.w3.org/1999/xhtml">
15
  <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
16
 
17
  <script language="javascript" type="text/javascript" src="<?php echo includes_url(); ?>js/jquery/jquery.js"></script>
18
+ <?php include('shortcodes.php'); ?>
19
  <script language="javascript" type="text/javascript" src="<?php echo plugin_dir_url(__FILE__); ?>tinymce.js"></script>
20
  <base target="_self" />
21
  <link rel="stylesheet" type="text/css" href="<?php echo plugin_dir_url(__FILE__); ?>editor_plugin.css" media="all" />
23
  <body id="link">
24
  <!-- <form onsubmit="insertLink();return false;" action="#"> -->
25
  <form name="mnm_tabs" action="#" id="mnmshortcode_form">
 
26
  <div>
27
  <!-- gallery panel -->
28
  <div id="mnmshortcode_panel" class="panel">
29
  <table border="0" cellpadding="4" cellspacing="0">
30
  <tr>
31
+ <td><label for="mnmshortcode_tag"><?php _e("Select Shortcode", 'wp-shortcode'); ?></label></td>
32
  <td><select id="mnmshortcode_tag" name="mnmshortcode_tag">
33
  <option value="0">Select Shortcode</option>
34
  <?php
43
  $mnm_shortcode_name = str_replace('mts_', '' ,$short_code_value);
44
  $mnm_shortcode_names = str_replace('_', ' ' ,$mnm_shortcode_name);
45
  $mnm_shortcodenames = ucwords($mnm_shortcode_names);
46
+ $shortcode_label = (empty($shortcodes[$mnm_shortcodekey]['label']) ? $mnm_shortcodenames : $shortcodes[$mnm_shortcodekey]['label']);
47
+ echo '<option value="' . $mnm_shortcodekey . '" >' . $shortcode_label.'</option>' . "\n";
48
  echo '</optgroup>';
49
 
50
  $i++;
65
 
66
  <div class="mceActionPanel">
67
  <div style="float: left">
68
+ <input type="button" id="cancel" name="cancel" value="<?php _e('Cancel', 'wp-shortcode'); ?>" onClick="tinyMCEPopup.close();" />
69
  </div>
70
 
71
  <div style="float: right">
72
+ <input type="submit" id="insert" name="insert" value="<?php _e('Insert', 'wp-shortcode'); ?>" onClick="mnmshortcodesubmit();" />
73
  </div>
74
  </div>
75
  </form>
tinymce/langs.php CHANGED
@@ -1,6 +1,6 @@
1
  <script type="text/javascript">
2
- tinyMCE.addI18n({en:{
3
- systempanel:{
4
- desc : 'System shortcodes'
5
- }}});
6
  </script>
1
  <script type="text/javascript">
2
+ tinyMCE.addI18n({en:{
3
+ systempanel:{
4
+ desc : 'System shortcodes'
5
+ }}});
6
  </script>
tinymce/shortcode.png CHANGED
Binary file
tinymce/shortcodes.php ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $shortcodes = array(
3
+ "button-brown" => array(
4
+ "self-closing" => false,
5
+ "atts" => array(
6
+ "url" => "#",
7
+ "target" => "_self",
8
+ "position" => "left"
9
+ ),
10
+ "label" => __("Brown Button", "wp-shortcode"),
11
+ "content" => __("Button text", "wp-shortcode"),
12
+ "description" => __("Inserts a brown button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
13
+ ),
14
+ "button-blue" => array(
15
+ "self-closing" => false,
16
+ "atts" => array(
17
+ "url" => "#",
18
+ "target" => "_self",
19
+ "position" => "left"
20
+ ),
21
+ "label" => __("Blue Button", "wp-shortcode"),
22
+ "content" => __("Button text", "wp-shortcode") ,
23
+ "description" => __("Inserts a blue button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
24
+ ),
25
+ "button-green" => array(
26
+ "self-closing" => false,
27
+ "atts" => array(
28
+ "url" => "#",
29
+ "target" => "_self",
30
+ "position" => "left"
31
+ ),
32
+ "label" => __("Green Button", "wp-shortcode"),
33
+ "content" => __("Button text", "wp-shortcode") ,
34
+ "description" => __("Inserts a green button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
35
+ ),
36
+ "button-yellow" => array(
37
+ "self-closing" => false,
38
+ "atts" => array(
39
+ "url" => "#",
40
+ "target" => "_self",
41
+ "position" => "left"
42
+ ),
43
+ "label" => __("Yellow Button", "wp-shortcode"),
44
+ "content" => __("Button text", "wp-shortcode") ,
45
+ "description" => __("Inserts a yellow button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
46
+ ),
47
+ "button-red" => array(
48
+ "self-closing" => false,
49
+ "atts" => array(
50
+ "url" => "#",
51
+ "target" => "_self",
52
+ "position" => "left"
53
+ ),
54
+ "label" => __("Red Button", "wp-shortcode"),
55
+ "content" => __("Button text", "wp-shortcode") ,
56
+ "description" => __("Inserts a red button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
57
+ ),
58
+ "button-white" => array(
59
+ "self-closing" => false,
60
+ "atts" => array(
61
+ "url" => "#",
62
+ "target" => "_self",
63
+ "position" => "left"
64
+ ),
65
+ "label" => __("White Button", "wp-shortcode"),
66
+ "content" => __("Button text", "wp-shortcode") ,
67
+ "description" => __("Inserts a white button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
68
+ ),
69
+ "alert-note" => array(
70
+ "self-closing" => false,
71
+ "atts" => array(),
72
+ "label" => __("Alert Note", "wp-shortcode"),
73
+ "content" => __("Note text", "wp-shortcode"),
74
+ "description" => __("Display a note.", "wp-shortcode")
75
+ ),
76
+ "alert-announce" => array(
77
+ "self-closing" => false,
78
+ "atts" => array(),
79
+ "label" => __("Alert Announce", "wp-shortcode"),
80
+ "content" => __("Announce text", "wp-shortcode"),
81
+ "description" => __("Display an announcement.", "wp-shortcode")
82
+ ),
83
+ "alert-success" => array(
84
+ "self-closing" => false,
85
+ "atts" => array(),
86
+ "label" => __("Alert Success", "wp-shortcode"),
87
+ "content" => __("Success text", "wp-shortcode"),
88
+ "description" => __("Display a success message.", "wp-shortcode")
89
+ ),
90
+ "alert-warning" => array(
91
+ "self-closing" => false,
92
+ "atts" => array(),
93
+ "label" => __("Alert Warning", "wp-shortcode"),
94
+ "content" => __("Warning text", "wp-shortcode"),
95
+ "description" => __("Display warning or error message.", "wp-shortcode")
96
+ ),
97
+ "youtube" => array(
98
+ "self-closing" => true,
99
+ "atts" => array(
100
+ "id" => "#",
101
+ "width" => "600",
102
+ "height" => "340",
103
+ "position" => "left"
104
+ ),
105
+ "label" => __("YouTube Video", "wp-shortcode"),
106
+ "content" => "",
107
+ "description" => __("Embed a Youtube Video", "wp-shortcode")
108
+ ),
109
+ "vimeo" => array(
110
+ "self-closing" => true,
111
+ "atts" => array(
112
+ "id" => "#",
113
+ "width" => "600",
114
+ "height" => "340",
115
+ "position" => "left"
116
+ ),
117
+ "label" => __("Vimeo Video", "wp-shortcode"),
118
+ "content" => "",
119
+ "description" => __("Embed a Vimeo Video.", "wp-shortcode")
120
+ ),
121
+ "googlemap" => array(
122
+ "self-closing" => true,
123
+ "atts" => array(
124
+ "address" => "Libertyville, Illinois, USA",
125
+ "width" => "600",
126
+ "height" => "340",
127
+ "position" => "left"
128
+ ),
129
+ "label" => __("Google Map", "wp-shortcode"),
130
+ "content" => "",
131
+ "description" => __("Embed a Google Map. Insert address or GPS location.", "wp-shortcode")
132
+ ),
133
+ "toggle" => array(
134
+ "self-closing" => false,
135
+ "atts" => array(
136
+ "title" => "Toggle Title"
137
+ ),
138
+ "label" => __("Toggle", "wp-shortcode"),
139
+ "content" => __("Insert Content Here", "wp-shortcode"),
140
+ "content_field" => "textarea",
141
+ "description" => __("Content will be shown after clicking on the toggle title.", "wp-shortcode")
142
+ ),
143
+ "tabs" => array(
144
+ "self-closing" => false,
145
+ "atts" => array(),
146
+ "label" => __("Tabs", "wp-shortcode"),
147
+ "content" => __("[tab title=&quot;Tab 1 Title&quot;]Insert tab 1 content here[/tab]\n[tab title=&quot;Tab 2 Title&quot;]Insert tab 2 content here[/tab]\n[tab title=&quot;Tab 3 Title&quot;]Insert tab 3 content here[/tab]", "wp-shortcode"),
148
+ "content_field" => "textarea",
149
+ "description" => __("Display content in tabbed form.", "wp-shortcode")
150
+ ),
151
+ "divider" => array(
152
+ "self-closing" => true,
153
+ "atts" => array(),
154
+ "content" => "Divider",
155
+ "description" => __("Simple horizontal divider.", "wp-shortcode")
156
+ ),
157
+ "divider_top" => array(
158
+ "self-closing" => true,
159
+ "atts" => array(),
160
+ "content" => "Divider with link",
161
+ "description" => __("Divider with an anchor link to top of page.", "wp-shortcode")
162
+ ),
163
+ "clear" => array(
164
+ "self-closing" => true,
165
+ "atts" => array(),
166
+ "label" => __("Clear", "wp-shortcode"),
167
+ "content" => "",
168
+ "description" => __("Clear shortcode can be used to clear an element of its neighbors, no floating elements are allowed on the left or the right side.", "wp-shortcode")
169
+ ),
170
+
171
+ // Column Shortcodes
172
+
173
+ "one_third" => array(
174
+ "self-closing" => false,
175
+ "atts" => array(),
176
+ "label" => __("One Third", "wp-shortcode"),
177
+ "content" => __("Column content", "wp-shortcode"),
178
+ "content_field" => "textarea",
179
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
180
+ ),
181
+ "one_third_last" => array(
182
+ "self-closing" => false,
183
+ "atts" => array(),
184
+ "label" => __("One Third (Last)", "wp-shortcode"),
185
+ "content" => __("Column content", "wp-shortcode"),
186
+ "content_field" => "textarea",
187
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
188
+ ),
189
+ "two_third" => array(
190
+ "self-closing" => false,
191
+ "atts" => array(),
192
+ "label" => __("Two Third", "wp-shortcode"),
193
+ "content" => __("Column content", "wp-shortcode"),
194
+ "content_field" => "textarea",
195
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
196
+ ),
197
+ "two_third_last" => array(
198
+ "self-closing" => false,
199
+ "atts" => array(),
200
+ "label" => __("Two Third (Last)", "wp-shortcode"),
201
+ "content" => __("Column content", "wp-shortcode"),
202
+ "content_field" => "textarea",
203
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
204
+ ),
205
+ "one_half" => array(
206
+ "self-closing" => false,
207
+ "atts" => array(),
208
+ "label" => __("One Half", "wp-shortcode"),
209
+ "content" => __("Column content", "wp-shortcode"),
210
+ "content_field" => "textarea",
211
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
212
+ ),
213
+ "one_half_last" => array(
214
+ "self-closing" => false,
215
+ "atts" => array(),
216
+ "label" => __("One Half (Last)", "wp-shortcode"),
217
+ "content" => __("Column content", "wp-shortcode"),
218
+ "content_field" => "textarea",
219
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
220
+ ),
221
+ "one_fourth" => array(
222
+ "self-closing" => false,
223
+ "atts" => array(),
224
+ "label" => __("One Fourth", "wp-shortcode"),
225
+ "content" => __("Column content", "wp-shortcode"),
226
+ "content_field" => "textarea",
227
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
228
+ ),
229
+ "one_fourth_last" => array(
230
+ "self-closing" => false,
231
+ "atts" => array(),
232
+ "label" => __("One Fourth (Last)", "wp-shortcode"),
233
+ "content" => __("Column content", "wp-shortcode"),
234
+ "content_field" => "textarea",
235
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
236
+ ),
237
+ "three_fourth" => array(
238
+ "self-closing" => false,
239
+ "atts" => array(),
240
+ "label" => __("Three Fourth", "wp-shortcode"),
241
+ "content" => __("Column content", "wp-shortcode"),
242
+ "content_field" => "textarea",
243
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
244
+ ),
245
+ "three_fourth_last" => array(
246
+ "self-closing" => false,
247
+ "atts" => array(),
248
+ "label" => __("Three Fourth (Last)", "wp-shortcode"),
249
+ "content" => __("Column content", "wp-shortcode"),
250
+ "content_field" => "textarea",
251
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
252
+ ),
253
+ "one_fifth" => array(
254
+ "self-closing" => false,
255
+ "atts" => array(),
256
+ "label" => __("One Fifth", "wp-shortcode"),
257
+ "content" => __("Column content", "wp-shortcode"),
258
+ "content_field" => "textarea",
259
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
260
+ ),
261
+ "one_fifth_last" => array(
262
+ "self-closing" => false,
263
+ "atts" => array(),
264
+ "label" => __("One Fifth (Last)", "wp-shortcode"),
265
+ "content" => __("Column content", "wp-shortcode"),
266
+ "content_field" => "textarea",
267
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
268
+ ),
269
+ "two_fifth" => array(
270
+ "self-closing" => false,
271
+ "atts" => array(),
272
+ "label" => __("Two Fifth", "wp-shortcode"),
273
+ "content" => __("Column content", "wp-shortcode"),
274
+ "content_field" => "textarea",
275
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
276
+ ),
277
+ "two_fifth_last" => array(
278
+ "self-closing" => false,
279
+ "atts" => array(),
280
+ "label" => __("Two Fifth (Last)", "wp-shortcode"),
281
+ "content" => __("Column content", "wp-shortcode"),
282
+ "content_field" => "textarea",
283
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
284
+ ),
285
+ "three_fifth" => array(
286
+ "self-closing" => false,
287
+ "atts" => array(),
288
+ "label" => __("Three Fifth", "wp-shortcode"),
289
+ "content" => __("Column content", "wp-shortcode"),
290
+ "content_field" => "textarea",
291
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
292
+ ),
293
+ "three_fifth_last" => array(
294
+ "self-closing" => false,
295
+ "atts" => array(),
296
+ "label" => __("Three Fifth (Last)", "wp-shortcode"),
297
+ "content" => __("Column content", "wp-shortcode"),
298
+ "content_field" => "textarea",
299
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
300
+ ),
301
+ "four_fifth" => array(
302
+ "self-closing" => false,
303
+ "atts" => array(),
304
+ "label" => __("Four Fifth", "wp-shortcode"),
305
+ "content" => __("Column content", "wp-shortcode"),
306
+ "content_field" => "textarea",
307
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
308
+ ),
309
+ "four_fifth_last" => array(
310
+ "self-closing" => false,
311
+ "atts" => array(),
312
+ "label" => __("Four Fifth (Last)", "wp-shortcode"),
313
+ "content" => __("Column content", "wp-shortcode"),
314
+ "content_field" => "textarea",
315
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
316
+ ),
317
+ "one_sixth" => array(
318
+ "self-closing" => false,
319
+ "atts" => array(),
320
+ "label" => __("One Sixth", "wp-shortcode"),
321
+ "content" => __("Column content", "wp-shortcode"),
322
+ "content_field" => "textarea",
323
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
324
+ ),
325
+ "one_sixth_last" => array(
326
+ "self-closing" => false,
327
+ "atts" => array(),
328
+ "label" => __("One Sixth (Last)", "wp-shortcode"),
329
+ "content" => __("Column content", "wp-shortcode"),
330
+ "content_field" => "textarea",
331
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
332
+ ),
333
+ "five_sixth" => array(
334
+ "self-closing" => false,
335
+ "atts" => array(),
336
+ "label" => __("Five Sixth", "wp-shortcode"),
337
+ "content" => __("Column content", "wp-shortcode"),
338
+ "content_field" => "textarea",
339
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
340
+ ),
341
+ "five_sixth_last" => array(
342
+ "self-closing" => false,
343
+ "atts" => array(),
344
+ "label" => __("Five Sixth (Last)", "wp-shortcode"),
345
+ "content" => __("Column content", "wp-shortcode"),
346
+ "content_field" => "textarea",
347
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
348
+ ),
349
+ "tooltip" => array(
350
+ "self-closing" => false,
351
+ "atts" => array(
352
+ "content" => "Tooltip content",
353
+ "gravity" => "n",
354
+ "fade" => "0"
355
+ ),
356
+ "label" => __("Tooltip", "wp-shortcode"),
357
+ "content" => __("Trigger text", "wp-shortcode"),
358
+ "description" => __("Add a tooltip that appears on hover. Possible values for direction(Cardinal) of bubble: nw | n | ne | w | e | sw | s | se", "wp-shortcode")
359
+ )
360
+ );
361
+ echo "<script type=\"text/javascript\">var shortcodes = ".json_encode($shortcodes).";</script>";
362
+ ?>
tinymce/tinymce.js CHANGED
@@ -1,314 +1,3 @@
1
- var shortcodes = {
2
- "button-brown" : {
3
- "self-closing" : false, // for shortcodes that don't need [/closing] tag
4
- "atts" : {
5
- "url" : "#",
6
- "target" : "_self",
7
- "position" : "left"
8
- },
9
- "content" : "Button text" ,
10
- "description" : "Inserts a brown button. Set target to <strong>_blank</strong> to open link in a new window."
11
- },
12
- "button-blue" : {
13
- "self-closing" : false,
14
- "atts" : {
15
- "url" : "#",
16
- "target" : "_self",
17
- "position" : "left"
18
- },
19
- "content" : "Button text" ,
20
- "description" : "Inserts a blue button. Set target to <strong>_blank</strong> to open link in a new window."
21
- },
22
- "button-green" : {
23
- "self-closing" : false,
24
- "atts" : {
25
- "url" : "#",
26
- "target" : "_self",
27
- "position" : "left"
28
- },
29
- "content" : "Button text" ,
30
- "description" : "Inserts a green button. Set target to <strong>_blank</strong> to open link in a new window."
31
- },
32
- "button-yellow" : {
33
- "self-closing" : false,
34
- "atts" : {
35
- "url" : "#",
36
- "target" : "_self",
37
- "position" : "left"
38
- },
39
- "content" : "Button text" ,
40
- "description" : "Inserts a yellow button. Set target to <strong>_blank</strong> to open link in a new window."
41
- },
42
- "button-red" : {
43
- "self-closing" : false,
44
- "atts" : {
45
- "url" : "#",
46
- "target" : "_self",
47
- "position" : "left"
48
- },
49
- "content" : "Button text" ,
50
- "description" : "Inserts a red button. Set target to <strong>_blank</strong> to open link in a new window."
51
- },
52
- "button-white" : {
53
- "self-closing" : false,
54
- "atts" : {
55
- "url" : "#",
56
- "target" : "_self",
57
- "position" : "left"
58
- },
59
- "content" : "Button text" ,
60
- "description" : "Inserts a white button. Set target to <strong>_blank</strong> to open link in a new window."
61
- },
62
- "alert-note" : {
63
- "self-closing" : false,
64
- "atts" : {},
65
- "content" : "Note text",
66
- "description" : "Display a note."
67
- },
68
- "alert-announce" : {
69
- "self-closing" : false,
70
- "atts" : {},
71
- "content" : "Announce text",
72
- "description" : "Display an announcement."
73
- },
74
- "alert-success" : {
75
- "self-closing" : false,
76
- "atts" : {},
77
- "content" : "Success text",
78
- "description" : "Display a success message."
79
- },
80
- "alert-warning" : {
81
- "self-closing" : false,
82
- "atts" : {},
83
- "content" : "Warning text",
84
- "description" : "Display warning or error message."
85
- },
86
- "youtube" : {
87
- "self-closing" : true,
88
- "atts" : {
89
- "id" : "#",
90
- "width" : "600",
91
- "height" : "340",
92
- "position" : "left"
93
- },
94
- "content" : "",
95
- "description" : "Embed a Youtube Video"
96
- },
97
- "vimeo" : {
98
- "self-closing" : true,
99
- "atts" : {
100
- "id" : "#",
101
- "width" : "600",
102
- "height" : "340",
103
- "position" : "left"
104
- },
105
- "content" : "",
106
- "description" : "Embed a Vimeo Video."
107
- },
108
- "googlemap" : {
109
- "self-closing" : true,
110
- "atts" : {
111
- "address" : "Libertyville, Illinois, USA",
112
- "width" : "600",
113
- "height" : "340",
114
- "position" : "left"
115
- },
116
- "content" : "",
117
- "description" : "Embed a Google Map. Insert address or GPS location."
118
- },
119
- "toggle" : {
120
- "self-closing" : false,
121
- "atts" : {
122
- "title" : "Toggle Title"
123
- },
124
- "content" : "Insert Content Here",
125
- "content_field" : "textarea",
126
- "description" : "Content will be shown after clicking on the toggle title."
127
- },
128
- "tabs" : {
129
- "self-closing" : false,
130
- "atts" : {},
131
- "content" : "[tab title=&quot;Tab 1 Title&quot;]Insert tab 1 content here[/tab]\n[tab title=&quot;Tab 2 Title&quot;]Insert tab 2 content here[/tab]\n[tab title=&quot;Tab 3 Title&quot;]Insert tab 3 content here[/tab]",
132
- "content_field" : "textarea",
133
- "description" : "Display content in tabbed form."
134
- },
135
- "divider" : {
136
- "self-closing" : true,
137
- "atts" : {},
138
- "content" : "",
139
- "description" : "Simple horizontal divider."
140
- },
141
- "divider_top" : {
142
- "self-closing" : true,
143
- "atts" : {},
144
- "content" : "",
145
- "description" : "Divider with an anchor link to top of page."
146
- },
147
- "clear" : {
148
- "self-closing" : true,
149
- "atts" : {},
150
- "content" : "",
151
- "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."
152
- },
153
-
154
- // Column Shortcodes
155
-
156
- "one_third" : {
157
- "self-closing" : false,
158
- "atts" : {},
159
- "content" : "Column content",
160
- "content_field" : "textarea",
161
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
162
- },
163
- "one_third_last" : {
164
- "self-closing" : false,
165
- "atts" : {},
166
- "content" : "Column content",
167
- "content_field" : "textarea",
168
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
169
- },
170
- "two_third" : {
171
- "self-closing" : false,
172
- "atts" : {},
173
- "content" : "Column content",
174
- "content_field" : "textarea",
175
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
176
- },
177
- "two_third_last" : {
178
- "self-closing" : false,
179
- "atts" : {},
180
- "content" : "Column content",
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>"
183
- },
184
- "one_half" : {
185
- "self-closing" : false,
186
- "atts" : {},
187
- "content" : "Column content",
188
- "content_field" : "textarea",
189
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
190
- },
191
- "one_half_last" : {
192
- "self-closing" : false,
193
- "atts" : {},
194
- "content" : "Column content",
195
- "content_field" : "textarea",
196
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
197
- },
198
- "one_fourth" : {
199
- "self-closing" : false,
200
- "atts" : {},
201
- "content" : "Column content",
202
- "content_field" : "textarea",
203
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
204
- },
205
- "one_fourth_last" : {
206
- "self-closing" : false,
207
- "atts" : {},
208
- "content" : "Column content",
209
- "content_field" : "textarea",
210
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
211
- },
212
- "three_fourth" : {
213
- "self-closing" : false,
214
- "atts" : {},
215
- "content" : "Column content",
216
- "content_field" : "textarea",
217
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
218
- },
219
- "three_fourth_last" : {
220
- "self-closing" : false,
221
- "atts" : {},
222
- "content" : "Column content",
223
- "content_field" : "textarea",
224
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
225
- },
226
- "one_fifth" : {
227
- "self-closing" : false,
228
- "atts" : {},
229
- "content" : "Column content",
230
- "content_field" : "textarea",
231
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
232
- },
233
- "one_fifth_last" : {
234
- "self-closing" : false,
235
- "atts" : {},
236
- "content" : "Column content",
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>"
239
- },
240
- "two_fifth" : {
241
- "self-closing" : false,
242
- "atts" : {},
243
- "content" : "Column content",
244
- "content_field" : "textarea",
245
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
246
- },
247
- "two_fifth_last" : {
248
- "self-closing" : false,
249
- "atts" : {},
250
- "content" : "Column content",
251
- "content_field" : "textarea",
252
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
253
- },
254
- "three_fifth" : {
255
- "self-closing" : false,
256
- "atts" : {},
257
- "content" : "Column content",
258
- "content_field" : "textarea",
259
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
260
- },
261
- "three_fifth_last" : {
262
- "self-closing" : false,
263
- "atts" : {},
264
- "content" : "Column content",
265
- "content_field" : "textarea",
266
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
267
- },
268
- "four_fifth" : {
269
- "self-closing" : false,
270
- "atts" : {},
271
- "content" : "Column content",
272
- "content_field" : "textarea",
273
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
274
- },
275
- "four_fifth_last" : {
276
- "self-closing" : false,
277
- "atts" : {},
278
- "content" : "Column content",
279
- "content_field" : "textarea",
280
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
281
- },
282
- "one_sixth" : {
283
- "self-closing" : false,
284
- "atts" : {},
285
- "content" : "Column content",
286
- "content_field" : "textarea",
287
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
288
- },
289
- "one_sixth_last" : {
290
- "self-closing" : false,
291
- "atts" : {},
292
- "content" : "Column content",
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>"
295
- },
296
- "five_sixth" : {
297
- "self-closing" : false,
298
- "atts" : {},
299
- "content" : "Column content",
300
- "content_field" : "textarea",
301
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
302
- },
303
- "five_sixth_last" : {
304
- "self-closing" : false,
305
- "atts" : {},
306
- "content" : "Column content",
307
- "content_field" : "textarea",
308
- "description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
309
- },
310
- };
311
-
312
  function mnmshortcodesubmit() {
313
  var tagtext;
314
  var mnm_shortcodeid = document.getElementById('mnmshortcode_tag').value;
@@ -331,7 +20,13 @@ function mnmshortcodesubmit() {
331
  }
332
 
333
  if(window.tinyMCE) {
334
- window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext);
 
 
 
 
 
 
335
  tinyMCEPopup.editor.execCommand('mceRepaint');
336
  tinyMCEPopup.close();
337
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  function mnmshortcodesubmit() {
2
  var tagtext;
3
  var mnm_shortcodeid = document.getElementById('mnmshortcode_tag').value;
20
  }
21
 
22
  if(window.tinyMCE) {
23
+ if (window.tinyMCE.execInstanceCommand === undefined) {
24
+ // tinyMCE 4
25
+ tinyMCEPopup.editor.insertContent(tagtext);
26
+ } else {
27
+ // tinyMCE 3
28
+ window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext);
29
+ }
30
  tinyMCEPopup.editor.execCommand('mceRepaint');
31
  tinyMCEPopup.close();
32
  }
wp-shortcode.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Shortcode by MyThemeShop
4
  Plugin URI: http://mythemeshop.com/
5
  Description: With the vast array of shortcodes, you can quickly and easily build content for your posts and pages and turbocharge your blogging experience.
6
  Author: MyThemeShop
7
- Version: 1.4.5
8
  Author URI: http://mythemeshop.com/
9
  */
10
 
@@ -311,7 +311,7 @@ function mts_youtube_video( $atts, $content = null ) {
311
  'height' => '340',
312
  'position' => 'left'
313
  ), $atts));
314
- $out = "<div class=\"youtube-video " .sanitize_html_class( $position ) . "\"><iframe width=\"" .absint( $width ) . "\" height=\"" .absint( $height ) ."\" src=\"//www.youtube.com/embed/" . esc_attr( $id ) . "?rel=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
315
  return $out;
316
  }
317
 
@@ -322,7 +322,7 @@ function mts_vimeo_video( $atts, $content = null ) {
322
  'height' => '340',
323
  'position' => 'left'
324
  ), $atts));
325
- $out = "<div class=\"vimeo-video " . sanitize_html_class( $position ) . "\"><iframe width=\"" .absint( $width ) . "\" height=\"" .absint( $height ) ."\" src=\"//player.vimeo.com/video/" . esc_attr( $id ) . "?title=0&amp;byline=0&amp;portrait=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
326
  return $out;
327
  }
328
 
@@ -338,9 +338,9 @@ function mts_googleMaps($atts, $content = null) {
338
  'position' => 'left'
339
  ), $atts));
340
  if (!empty($src)) {
341
- $out = "<div class=\"googlemaps " .sanitize_html_class( $position ) . "\"><iframe width=\"".absint( $width )."\" height=\"".absint( $height )."\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"".esc_url( $src )."&output=embed\"></iframe></div>";
342
  } else {
343
- $out = "<div class=\"googlemaps " .sanitize_html_class( $position ) . "\"><iframe width=\"".absint( $width )."\" height=\"".absint( $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
  }
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.6
8
  Author URI: http://mythemeshop.com/
9
  */
10
 
311
  'height' => '340',
312
  'position' => 'left'
313
  ), $atts));
314
+ $out = "<div class=\"youtube-video " .sanitize_html_class( $position ) . "\"><iframe width=\"" .esc_attr( $width ) . "\" height=\"" .esc_attr( $height ) ."\" src=\"//www.youtube.com/embed/" . esc_attr( $id ) . "?rel=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
315
  return $out;
316
  }
317
 
322
  'height' => '340',
323
  'position' => 'left'
324
  ), $atts));
325
+ $out = "<div class=\"vimeo-video " . sanitize_html_class( $position ) . "\"><iframe width=\"" .esc_attr( $width ) . "\" height=\"" .esc_attr( $height ) ."\" src=\"//player.vimeo.com/video/" . esc_attr( $id ) . "?title=0&amp;byline=0&amp;portrait=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
326
  return $out;
327
  }
328
 
338
  'position' => 'left'
339
  ), $atts));
340
  if (!empty($src)) {
341
+ $out = "<div class=\"googlemaps " .sanitize_html_class( $position ) . "\"><iframe width=\"".esc_attr( $width )."\" height=\"".esc_attr( $height )."\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"".esc_url( $src )."&output=embed\"></iframe></div>";
342
  } else {
343
+ $out = "<div class=\"googlemaps " .sanitize_html_class( $position ) . "\"><iframe width=\"".esc_attr( $width )."\" height=\"".esc_attr( $height )."\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"//maps.google.com/maps?q=".urlencode( $address )."&output=embed\"></iframe></div>";
344
  }
345
  return $out;
346
  }