WP Shortcode by MyThemeShop - Version 1.4.11

Version Description

  • Fixed broken pages.
Download this release

Release Info

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

Code changes from version 1.4.9 to 1.4.11

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; }
css/wp-shortcode.css CHANGED
@@ -1,286 +1,286 @@
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;
84
- float: none;
85
- width: auto;
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 ]---------------------------------*/
149
- .one_half { width: 48% }
150
- .one_third { width: 30.66% }
151
- .two_third { width: 65.33% }
152
- .one_fourth { width: 22% }
153
- .three_fourth { width: 74% }
154
- .one_fifth { width: 16.8% }
155
- .two_fifth { width: 37.6% }
156
- .three_fifth { width: 58.4% }
157
- .four_fifth { width: 67.2% }
158
- .one_sixth { width: 13.33% }
159
- .five_sixth { width: 82.67% }
160
- .one_half, .one_third, .two_third, .three_fourth, .one_fourth, .one_fifth, .two_fifth, .three_fifth, .four_fifth, .one_sixth, .five_sixth {
161
- position: relative;
162
- margin-right: 4%;
163
- margin-bottom: 15px;
164
- float: left;
165
- }
166
- .column-last {
167
- margin-right: 0!important;
168
- clear: right;
169
- }
170
- /*-[ Tabs ]------------------------------------*/
171
- .tab_widget {
172
- display: block;
173
- position: relative;
174
- margin: 0 0 20px 0;
175
- }
176
- .tab_widget ul.wps_tabs {
177
- display: block;
178
- position: relative;
179
- list-style: none;
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;
187
- margin: 0;
188
- padding: 0;
189
- height: 39px;
190
- line-height: 39px;
191
- border: 1px solid #DDD;
192
- border-left: none;
193
- margin-bottom: -1px;
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
- }
200
- .tab_widget ul.wps_tabs li:first-child { border-left: 1px solid #DDD }
201
- .tab_widget ul.wps_tabs li a {
202
- text-decoration: none;
203
- color: #888!important;
204
- font-size: 12px;
205
- display: block;
206
- padding: 0 10px;
207
- outline: none;
208
- font-weight: bold;
209
- text-shadow: 1px 1px 1px #FFF;
210
- border: none;
211
- border-left: 1px solid #F9F9F9;
212
- }
213
- .tab_widget ul.wps_tabs li:first-child a { border-left: none }
214
- .tab_widget ul.wps_tabs li a:hover { background: none }
215
- .tab_widget ul.wps_tabs li.active, .tab_widget ul.wps_tabs li.active a:hover {
216
- background: #FFF;
217
- border-bottom: 1px solid #FFF;
218
- }
219
- .tab_widget ul.wps_tabs li.active { border-top: 1px solid #DDD }
220
- .tab_widget ul.wps_tabs li.active a { color: #777 }
221
- .tab_widget .tab_container {
222
- display: block;
223
- border-top: none;
224
- overflow: hidden;
225
- position: relative;
226
- clear: both;
227
- background: #FFF;
228
- border: 1px solid #DDD;
229
- border-top: none;
230
- }
231
- .tab_widget .tab_content {
232
- display: block;
233
- position: relative;
234
- padding: 15px;
235
- }
236
- /*-[ Toggle ]-----------------------*/
237
- .toggle {
238
- display: block;
239
- position: relative;
240
- margin: 0 0 20px 0;
241
- }
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;
249
- cursor: pointer;
250
- margin: 0;
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;
258
- padding-left: 20px;
259
- background: url("../images/toggle-down.png") no-repeat left;
260
- }
261
- .toggle .toggleta span { background: url("../images/toggle-up.png") no-repeat left }
262
- .toggle .togglec {
263
- display: block;
264
- position: relative;
265
- padding: 15px;
266
- background: #FFF;
267
- border: 1px solid #DDD;
268
- border-top: none;
269
- }
270
- /*-[ Dividers ]--------------------------------*/
271
- .divider {
272
- clear: both;
273
- display: block;
274
- padding-top: 20px;
275
- width: 100%;
276
- margin-bottom: 10px;
277
- text-align: right;
278
- padding-bottom: 5px;
279
- border-bottom: 5px solid #EEE;
280
- }
281
- .top-of-page {
282
- margin-bottom: 10px;
283
- text-align: right;
284
- padding-bottom: 5px;
285
- border-bottom: 5px solid #EEE;
286
- }
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;
84
+ float: none;
85
+ width: auto;
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 ]---------------------------------*/
149
+ .one_half { width: 48% }
150
+ .one_third { width: 30.66% }
151
+ .two_third { width: 65.33% }
152
+ .one_fourth { width: 22% }
153
+ .three_fourth { width: 74% }
154
+ .one_fifth { width: 16.8% }
155
+ .two_fifth { width: 37.6% }
156
+ .three_fifth { width: 58.4% }
157
+ .four_fifth { width: 67.2% }
158
+ .one_sixth { width: 13.33% }
159
+ .five_sixth { width: 82.67% }
160
+ .one_half, .one_third, .two_third, .three_fourth, .one_fourth, .one_fifth, .two_fifth, .three_fifth, .four_fifth, .one_sixth, .five_sixth {
161
+ position: relative;
162
+ margin-right: 4%;
163
+ margin-bottom: 15px;
164
+ float: left;
165
+ }
166
+ .column-last {
167
+ margin-right: 0!important;
168
+ clear: right;
169
+ }
170
+ /*-[ Tabs ]------------------------------------*/
171
+ .tab_widget {
172
+ display: block;
173
+ position: relative;
174
+ margin: 0 0 20px 0;
175
+ }
176
+ .tab_widget ul.wps_tabs {
177
+ display: block;
178
+ position: relative;
179
+ list-style: none;
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;
187
+ margin: 0;
188
+ padding: 0;
189
+ height: 39px;
190
+ line-height: 39px;
191
+ border: 1px solid #DDD;
192
+ border-left: none;
193
+ margin-bottom: -1px;
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
+ }
200
+ .tab_widget ul.wps_tabs li:first-child { border-left: 1px solid #DDD }
201
+ .tab_widget ul.wps_tabs li a {
202
+ text-decoration: none;
203
+ color: #888!important;
204
+ font-size: 12px;
205
+ display: block;
206
+ padding: 0 10px;
207
+ outline: none;
208
+ font-weight: bold;
209
+ text-shadow: 1px 1px 1px #FFF;
210
+ border: none;
211
+ border-left: 1px solid #F9F9F9;
212
+ }
213
+ .tab_widget ul.wps_tabs li:first-child a { border-left: none }
214
+ .tab_widget ul.wps_tabs li a:hover { background: none }
215
+ .tab_widget ul.wps_tabs li.active, .tab_widget ul.wps_tabs li.active a:hover {
216
+ background: #FFF;
217
+ border-bottom: 1px solid #FFF;
218
+ }
219
+ .tab_widget ul.wps_tabs li.active { border-top: 1px solid #DDD }
220
+ .tab_widget ul.wps_tabs li.active a { color: #777 }
221
+ .tab_widget .tab_container {
222
+ display: block;
223
+ border-top: none;
224
+ overflow: hidden;
225
+ position: relative;
226
+ clear: both;
227
+ background: #FFF;
228
+ border: 1px solid #DDD;
229
+ border-top: none;
230
+ }
231
+ .tab_widget .tab_content {
232
+ display: block;
233
+ position: relative;
234
+ padding: 15px;
235
+ }
236
+ /*-[ Toggle ]-----------------------*/
237
+ .toggle {
238
+ display: block;
239
+ position: relative;
240
+ margin: 0 0 20px 0;
241
+ }
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;
249
+ cursor: pointer;
250
+ margin: 0;
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;
258
+ padding-left: 20px;
259
+ background: url("../images/toggle-down.png") no-repeat left;
260
+ }
261
+ .toggle .toggleta span { background: url("../images/toggle-up.png") no-repeat left }
262
+ .toggle .togglec {
263
+ display: block;
264
+ position: relative;
265
+ padding: 15px;
266
+ background: #FFF;
267
+ border: 1px solid #DDD;
268
+ border-top: none;
269
+ }
270
+ /*-[ Dividers ]--------------------------------*/
271
+ .divider {
272
+ clear: both;
273
+ display: block;
274
+ padding-top: 20px;
275
+ width: 100%;
276
+ margin-bottom: 10px;
277
+ text-align: right;
278
+ padding-bottom: 5px;
279
+ border-bottom: 5px solid #EEE;
280
+ }
281
+ .top-of-page {
282
+ margin-bottom: 10px;
283
+ text-align: right;
284
+ padding-bottom: 5px;
285
+ border-bottom: 5px solid #EEE;
286
+ }
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);
js/wp-shortcode.js CHANGED
@@ -1,38 +1,38 @@
1
- jQuery(document).ready(function($){
2
- // Toggles
3
- if ($('.wp_shortcodes_toggle').length) {
4
- $(".togglec").hide();
5
- $(".wps_togglet").click(function(){
6
- $(this).toggleClass("toggleta").next(".togglec").slideToggle("normal");
7
- });
8
- }
9
-
10
- // Tabs
11
- if ($('.wp_shortcodes_tabs').length) {
12
- $('.wp_shortcodes_tabs').each(function() {
13
- var $this = $(this);
14
- $this.find('.tab_content').slice(1).hide();
15
- $this.find('ul.wps_tabs li:first').addClass('active');
16
- $this.find('ul.wps_tabs li a').click(function(e) {
17
- e.preventDefault();
18
- var $this_a = $(this);
19
- var $tab = $this.find('#'+$this_a.data('tab'));
20
- if (! $tab.is(':visible')) {
21
- $this.find('.tab_content').hide();
22
- $this_a.parent().addClass('active').siblings().removeClass('active');
23
- $tab.fadeIn(600);
24
- }
25
- });
26
- });
27
- }
28
-
29
- if ($('.wp_shortcodes_tooltip').length) {
30
- $('.wp_shortcodes_tooltip').each(function(index, el) {
31
- var $this = $(this),
32
- ttgravity = $this.data('gravity'),
33
- ttfade = Boolean($this.data('fade'));
34
- $this.tipsy({gravity: ttgravity, fade: ttfade});
35
- });
36
- }
37
-
38
  });
1
+ jQuery(document).ready(function($){
2
+ // Toggles
3
+ if ($('.wp_shortcodes_toggle').length) {
4
+ $(".togglec").hide();
5
+ $(".wps_togglet").click(function(){
6
+ $(this).toggleClass("toggleta").next(".togglec").slideToggle("normal");
7
+ });
8
+ }
9
+
10
+ // Tabs
11
+ if ($('.wp_shortcodes_tabs').length) {
12
+ $('.wp_shortcodes_tabs').each(function() {
13
+ var $this = $(this);
14
+ $this.find('.tab_content').slice(1).hide();
15
+ $this.find('ul.wps_tabs li:first').addClass('active');
16
+ $this.find('ul.wps_tabs li a').click(function(e) {
17
+ e.preventDefault();
18
+ var $this_a = $(this);
19
+ var $tab = $this.find('#'+$this_a.data('tab'));
20
+ if (! $tab.is(':visible')) {
21
+ $this.find('.tab_content').hide();
22
+ $this_a.parent().addClass('active').siblings().removeClass('active');
23
+ $tab.fadeIn(600);
24
+ }
25
+ });
26
+ });
27
+ }
28
+
29
+ if ($('.wp_shortcodes_tooltip').length) {
30
+ $('.wp_shortcodes_tooltip').each(function(index, el) {
31
+ var $this = $(this),
32
+ ttgravity = $this.data('gravity'),
33
+ ttfade = Boolean($this.data('fade'));
34
+ $this.tipsy({gravity: ttgravity, fade: ttfade});
35
+ });
36
+ }
37
+
38
  });
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=&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 ""
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.9.1
7
- Stable tag: 1.4.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -65,6 +65,12 @@ 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.11
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.11 =
69
+ * Fixed broken pages.
70
+
71
+ = 1.4.10 =
72
+ * Enqueued required scripts only on the pages where the plugin's shortcodes are used.
73
+
74
  = 1.4.9 =
75
  * Fixed shortcodes filter
76
 
tinymce/editor_plugin.css CHANGED
@@ -1,8 +1,8 @@
1
- body#link { background: #fff; }
2
- #mnmshortcode_tag { width: 200px }
3
- #mnmshortcode_panel { margin-bottom: 8px }
4
- #mnmshortcode_panel table { width: 100%; font-size: 12px; }
5
- .mnmshortcode_description { color: #666; font-size: 12px; }
6
- .mnmshortcode_att_name { text-transform: capitalize }
7
- #mnmshortcode_panel input, #mnmshortcode_panel select, #mnmshortcode_panel textarea { width: 100%; padding: 4px 4px; font-size: 12px; font-family: 'Open Sans', sans-serif; }
8
  #mnmshortcode_panel textarea { height: 120px }
1
+ body#link { background: #fff; }
2
+ #mnmshortcode_tag { width: 200px }
3
+ #mnmshortcode_panel { margin-bottom: 8px }
4
+ #mnmshortcode_panel table { width: 100%; font-size: 12px; }
5
+ .mnmshortcode_description { color: #666; font-size: 12px; }
6
+ .mnmshortcode_att_name { text-transform: capitalize }
7
+ #mnmshortcode_panel input, #mnmshortcode_panel select, #mnmshortcode_panel textarea { width: 100%; padding: 4px 4px; font-size: 12px; font-family: 'Open Sans', sans-serif; }
8
  #mnmshortcode_panel textarea { height: 120px }
tinymce/editor_plugin.js CHANGED
@@ -1,80 +1,80 @@
1
- (function() {
2
- // Load plugin specific language pack
3
- tinymce.PluginManager.requireLangPack('wpspanel');
4
- tinymce.create('tinymce.plugins.wpspanel', {
5
- /**
6
- * Initializes the plugin, this will be executed after the plugin has been created.
7
- * This call is done before the editor instance has finished it's initialization so use the onInit event
8
- * of the editor instance to intercept that event.
9
- *
10
- * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
11
- * @param {string} url Absolute URL to where the plugin is located.
12
- */
13
- init : function(ed, url) {
14
- // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
15
- ed.addCommand('mcewpspanel', function() {
16
- ed.windowManager.open({
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
24
- });
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', {
41
- title : 'Add Custom Shortcode',
42
- cmd : 'mcewpspanel',
43
- image : url + '/shortcode.png'
44
- });
45
-
46
- // Add a node change handler, selects the button in the UI when a image is selected
47
- ed.onNodeChange.add(function(ed, cm, n) {
48
- cm.setActive('wpspanel', n.nodeName == 'IMG');
49
- });
50
-
51
- },
52
-
53
- /**
54
- * Creates control instances based in the incomming name. This method is normally not
55
- * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
56
- * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
57
- * method can be used to create those.
58
- *
59
- * @param {String} n Name of the control to create.
60
- * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
61
- * @return {tinymce.ui.Control} New control instance or null if no control was created.
62
- */
63
- createControl : function(n, cm) {
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
79
- tinymce.PluginManager.add('wpspanel', tinymce.plugins.wpspanel);
80
  })();
1
+ (function() {
2
+ // Load plugin specific language pack
3
+ tinymce.PluginManager.requireLangPack('wpspanel');
4
+ tinymce.create('tinymce.plugins.wpspanel', {
5
+ /**
6
+ * Initializes the plugin, this will be executed after the plugin has been created.
7
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
8
+ * of the editor instance to intercept that event.
9
+ *
10
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
11
+ * @param {string} url Absolute URL to where the plugin is located.
12
+ */
13
+ init : function(ed, url) {
14
+ // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
15
+ ed.addCommand('mcewpspanel', function() {
16
+ ed.windowManager.open({
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
24
+ });
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', {
41
+ title : 'Add Custom Shortcode',
42
+ cmd : 'mcewpspanel',
43
+ image : url + '/shortcode.png'
44
+ });
45
+
46
+ // Add a node change handler, selects the button in the UI when a image is selected
47
+ ed.onNodeChange.add(function(ed, cm, n) {
48
+ cm.setActive('wpspanel', n.nodeName == 'IMG');
49
+ });
50
+
51
+ },
52
+
53
+ /**
54
+ * Creates control instances based in the incomming name. This method is normally not
55
+ * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
56
+ * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
57
+ * method can be used to create those.
58
+ *
59
+ * @param {String} n Name of the control to create.
60
+ * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
61
+ * @return {tinymce.ui.Control} New control instance or null if no control was created.
62
+ */
63
+ createControl : function(n, cm) {
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
79
+ tinymce.PluginManager.add('wpspanel', tinymce.plugins.wpspanel);
80
  })();
tinymce/editor_plugin.php CHANGED
@@ -1,66 +1,66 @@
1
- <?php
2
- // look up for the path
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">
10
- <head>
11
- <title><?php _e('Shortcode Panel', 'wp-shortcode'); ?></title>
12
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
13
- <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
14
- <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
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" />
22
- </head>
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"><?php _e('Select Shortcode', 'wp-shortcode'); ?></option>
34
- <?php
35
- if(is_array($shortcodes)) {
36
- $i = 1;
37
-
38
- foreach ( $shortcodes as $mnm_shortcodekey => $short_code_value ) {
39
- echo '<option value="' . $mnm_shortcodekey . '" >' . (isset($short_code_value['label']) ? $short_code_value['label'] : $mnm_shortcodekey).'</option>' . "\n";
40
- $i++;
41
- }
42
- }
43
- ?>
44
- </select></td>
45
- </tr>
46
-
47
- </table>
48
- </div>
49
-
50
- </div>
51
-
52
-
53
- </div>
54
-
55
- <div class="mceActionPanel">
56
- <div style="float: left">
57
- <input type="button" id="cancel" name="cancel" value="<?php _e('Cancel', 'wp-shortcode'); ?>" onClick="tinyMCEPopup.close();" />
58
- </div>
59
-
60
- <div style="float: right">
61
- <input type="submit" id="insert" name="insert" value="<?php _e('Insert', 'wp-shortcode'); ?>" onClick="mnmshortcodesubmit();" />
62
- </div>
63
- </div>
64
- </form>
65
- </body>
66
  </html>
1
+ <?php
2
+ // look up for the path
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">
10
+ <head>
11
+ <title><?php _e('Shortcode Panel', 'wp-shortcode'); ?></title>
12
+ <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
13
+ <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
14
+ <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
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" />
22
+ </head>
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"><?php _e('Select Shortcode', 'wp-shortcode'); ?></option>
34
+ <?php
35
+ if(is_array($shortcodes)) {
36
+ $i = 1;
37
+
38
+ foreach ( $shortcodes as $mnm_shortcodekey => $short_code_value ) {
39
+ echo '<option value="' . $mnm_shortcodekey . '" >' . (isset($short_code_value['label']) ? $short_code_value['label'] : $mnm_shortcodekey).'</option>' . "\n";
40
+ $i++;
41
+ }
42
+ }
43
+ ?>
44
+ </select></td>
45
+ </tr>
46
+
47
+ </table>
48
+ </div>
49
+
50
+ </div>
51
+
52
+
53
+ </div>
54
+
55
+ <div class="mceActionPanel">
56
+ <div style="float: left">
57
+ <input type="button" id="cancel" name="cancel" value="<?php _e('Cancel', 'wp-shortcode'); ?>" onClick="tinyMCEPopup.close();" />
58
+ </div>
59
+
60
+ <div style="float: right">
61
+ <input type="submit" id="insert" name="insert" value="<?php _e('Insert', 'wp-shortcode'); ?>" onClick="mnmshortcodesubmit();" />
62
+ </div>
63
+ </div>
64
+ </form>
65
+ </body>
66
  </html>
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/mnm_config.php CHANGED
@@ -1,9 +1,9 @@
1
- <?php
2
- $wp_include = "../wp-load.php";
3
- $i = 0;
4
- while (!file_exists($wp_include) && $i++ < 10) {
5
- $wp_include = "../$wp_include";
6
- }
7
-
8
- // load WordPress
9
  require($wp_include);
1
+ <?php
2
+ $wp_include = "../wp-load.php";
3
+ $i = 0;
4
+ while (!file_exists($wp_include) && $i++ < 10) {
5
+ $wp_include = "../$wp_include";
6
+ }
7
+
8
+ // load WordPress
9
  require($wp_include);
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=&quot;Tab 1 Title&quot;]Insert tab 1 content here[/tab]\n[tab title=&quot;Tab 2 Title&quot;]Insert tab 2 content here[/tab]\n[tab title=&quot;Tab 3 Title&quot;]Insert tab 3 content here[/tab]", "wp-shortcode"),
149
- "content_field" => "textarea",
150
- "description" => __("Display content in tabbed form.", "wp-shortcode")
151
- ),
152
- "divider" => array(
153
- "self-closing" => true,
154
- "atts" => array(),
155
- "label" => __("Divider", "wp-shortcode"),
156
- "content" => "Divider",
157
- "description" => __("Simple horizontal divider.", "wp-shortcode")
158
- ),
159
- "divider_top" => array(
160
- "self-closing" => true,
161
- "atts" => array(),
162
- "label" => __("Divider with link", "wp-shortcode"),
163
- "content" => "Divider with link",
164
- "description" => __("Divider with an anchor link to top of page.", "wp-shortcode")
165
- ),
166
- "clear" => array(
167
- "self-closing" => true,
168
- "atts" => array(),
169
- "label" => __("Clear", "wp-shortcode"),
170
- "content" => "",
171
- "description" => __("Clear shortcode can be used to clear an element of its neighbors, no floating elements are allowed on the left or the right side.", "wp-shortcode")
172
- ),
173
-
174
- // Column Shortcodes
175
-
176
- "one_third" => array(
177
- "self-closing" => false,
178
- "atts" => array(),
179
- "label" => __("One Third", "wp-shortcode"),
180
- "content" => __("Column content", "wp-shortcode"),
181
- "content_field" => "textarea",
182
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
183
- ),
184
- "one_third_last" => array(
185
- "self-closing" => false,
186
- "atts" => array(),
187
- "label" => __("One Third (Last)", "wp-shortcode"),
188
- "content" => __("Column content", "wp-shortcode"),
189
- "content_field" => "textarea",
190
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
191
- ),
192
- "two_third" => array(
193
- "self-closing" => false,
194
- "atts" => array(),
195
- "label" => __("Two Third", "wp-shortcode"),
196
- "content" => __("Column content", "wp-shortcode"),
197
- "content_field" => "textarea",
198
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
199
- ),
200
- "two_third_last" => array(
201
- "self-closing" => false,
202
- "atts" => array(),
203
- "label" => __("Two Third (Last)", "wp-shortcode"),
204
- "content" => __("Column content", "wp-shortcode"),
205
- "content_field" => "textarea",
206
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
207
- ),
208
- "one_half" => array(
209
- "self-closing" => false,
210
- "atts" => array(),
211
- "label" => __("One Half", "wp-shortcode"),
212
- "content" => __("Column content", "wp-shortcode"),
213
- "content_field" => "textarea",
214
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
215
- ),
216
- "one_half_last" => array(
217
- "self-closing" => false,
218
- "atts" => array(),
219
- "label" => __("One Half (Last)", "wp-shortcode"),
220
- "content" => __("Column content", "wp-shortcode"),
221
- "content_field" => "textarea",
222
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
223
- ),
224
- "one_fourth" => array(
225
- "self-closing" => false,
226
- "atts" => array(),
227
- "label" => __("One Fourth", "wp-shortcode"),
228
- "content" => __("Column content", "wp-shortcode"),
229
- "content_field" => "textarea",
230
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
231
- ),
232
- "one_fourth_last" => array(
233
- "self-closing" => false,
234
- "atts" => array(),
235
- "label" => __("One Fourth (Last)", "wp-shortcode"),
236
- "content" => __("Column content", "wp-shortcode"),
237
- "content_field" => "textarea",
238
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
239
- ),
240
- "three_fourth" => array(
241
- "self-closing" => false,
242
- "atts" => array(),
243
- "label" => __("Three Fourth", "wp-shortcode"),
244
- "content" => __("Column content", "wp-shortcode"),
245
- "content_field" => "textarea",
246
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
247
- ),
248
- "three_fourth_last" => array(
249
- "self-closing" => false,
250
- "atts" => array(),
251
- "label" => __("Three Fourth (Last)", "wp-shortcode"),
252
- "content" => __("Column content", "wp-shortcode"),
253
- "content_field" => "textarea",
254
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
255
- ),
256
- "one_fifth" => array(
257
- "self-closing" => false,
258
- "atts" => array(),
259
- "label" => __("One Fifth", "wp-shortcode"),
260
- "content" => __("Column content", "wp-shortcode"),
261
- "content_field" => "textarea",
262
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
263
- ),
264
- "one_fifth_last" => array(
265
- "self-closing" => false,
266
- "atts" => array(),
267
- "label" => __("One Fifth (Last)", "wp-shortcode"),
268
- "content" => __("Column content", "wp-shortcode"),
269
- "content_field" => "textarea",
270
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
271
- ),
272
- "two_fifth" => array(
273
- "self-closing" => false,
274
- "atts" => array(),
275
- "label" => __("Two Fifth", "wp-shortcode"),
276
- "content" => __("Column content", "wp-shortcode"),
277
- "content_field" => "textarea",
278
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
279
- ),
280
- "two_fifth_last" => array(
281
- "self-closing" => false,
282
- "atts" => array(),
283
- "label" => __("Two Fifth (Last)", "wp-shortcode"),
284
- "content" => __("Column content", "wp-shortcode"),
285
- "content_field" => "textarea",
286
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
287
- ),
288
- "three_fifth" => array(
289
- "self-closing" => false,
290
- "atts" => array(),
291
- "label" => __("Three Fifth", "wp-shortcode"),
292
- "content" => __("Column content", "wp-shortcode"),
293
- "content_field" => "textarea",
294
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
295
- ),
296
- "three_fifth_last" => array(
297
- "self-closing" => false,
298
- "atts" => array(),
299
- "label" => __("Three Fifth (Last)", "wp-shortcode"),
300
- "content" => __("Column content", "wp-shortcode"),
301
- "content_field" => "textarea",
302
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
303
- ),
304
- "four_fifth" => array(
305
- "self-closing" => false,
306
- "atts" => array(),
307
- "label" => __("Four Fifth", "wp-shortcode"),
308
- "content" => __("Column content", "wp-shortcode"),
309
- "content_field" => "textarea",
310
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
311
- ),
312
- "four_fifth_last" => array(
313
- "self-closing" => false,
314
- "atts" => array(),
315
- "label" => __("Four Fifth (Last)", "wp-shortcode"),
316
- "content" => __("Column content", "wp-shortcode"),
317
- "content_field" => "textarea",
318
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
319
- ),
320
- "one_sixth" => array(
321
- "self-closing" => false,
322
- "atts" => array(),
323
- "label" => __("One Sixth", "wp-shortcode"),
324
- "content" => __("Column content", "wp-shortcode"),
325
- "content_field" => "textarea",
326
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
327
- ),
328
- "one_sixth_last" => array(
329
- "self-closing" => false,
330
- "atts" => array(),
331
- "label" => __("One Sixth (Last)", "wp-shortcode"),
332
- "content" => __("Column content", "wp-shortcode"),
333
- "content_field" => "textarea",
334
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
335
- ),
336
- "five_sixth" => array(
337
- "self-closing" => false,
338
- "atts" => array(),
339
- "label" => __("Five Sixth", "wp-shortcode"),
340
- "content" => __("Column content", "wp-shortcode"),
341
- "content_field" => "textarea",
342
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
343
- ),
344
- "five_sixth_last" => array(
345
- "self-closing" => false,
346
- "atts" => array(),
347
- "label" => __("Five Sixth (Last)", "wp-shortcode"),
348
- "content" => __("Column content", "wp-shortcode"),
349
- "content_field" => "textarea",
350
- "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
351
- ),
352
- "tooltip" => array(
353
- "self-closing" => false,
354
- "atts" => array(
355
- "content" => "Tooltip content",
356
- "gravity" => "n",
357
- "fade" => "0"
358
- ),
359
- "label" => __("Tooltip", "wp-shortcode"),
360
- "content" => __("Trigger text", "wp-shortcode"),
361
- "description" => __("Add a tooltip that appears on hover. Possible values for direction(Cardinal) of bubble: nw | n | ne | w | e | sw | s | se", "wp-shortcode")
362
- )
363
- );
364
-
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=&quot;Tab 1 Title&quot;]Insert tab 1 content here[/tab]\n[tab title=&quot;Tab 2 Title&quot;]Insert tab 2 content here[/tab]\n[tab title=&quot;Tab 3 Title&quot;]Insert tab 3 content here[/tab]", "wp-shortcode"),
149
+ "content_field" => "textarea",
150
+ "description" => __("Display content in tabbed form.", "wp-shortcode")
151
+ ),
152
+ "divider" => array(
153
+ "self-closing" => true,
154
+ "atts" => array(),
155
+ "label" => __("Divider", "wp-shortcode"),
156
+ "content" => "Divider",
157
+ "description" => __("Simple horizontal divider.", "wp-shortcode")
158
+ ),
159
+ "divider_top" => array(
160
+ "self-closing" => true,
161
+ "atts" => array(),
162
+ "label" => __("Divider with link", "wp-shortcode"),
163
+ "content" => "Divider with link",
164
+ "description" => __("Divider with an anchor link to top of page.", "wp-shortcode")
165
+ ),
166
+ "clear" => array(
167
+ "self-closing" => true,
168
+ "atts" => array(),
169
+ "label" => __("Clear", "wp-shortcode"),
170
+ "content" => "",
171
+ "description" => __("Clear shortcode can be used to clear an element of its neighbors, no floating elements are allowed on the left or the right side.", "wp-shortcode")
172
+ ),
173
+
174
+ // Column Shortcodes
175
+
176
+ "one_third" => array(
177
+ "self-closing" => false,
178
+ "atts" => array(),
179
+ "label" => __("One Third", "wp-shortcode"),
180
+ "content" => __("Column content", "wp-shortcode"),
181
+ "content_field" => "textarea",
182
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
183
+ ),
184
+ "one_third_last" => array(
185
+ "self-closing" => false,
186
+ "atts" => array(),
187
+ "label" => __("One Third (Last)", "wp-shortcode"),
188
+ "content" => __("Column content", "wp-shortcode"),
189
+ "content_field" => "textarea",
190
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
191
+ ),
192
+ "two_third" => array(
193
+ "self-closing" => false,
194
+ "atts" => array(),
195
+ "label" => __("Two Third", "wp-shortcode"),
196
+ "content" => __("Column content", "wp-shortcode"),
197
+ "content_field" => "textarea",
198
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
199
+ ),
200
+ "two_third_last" => array(
201
+ "self-closing" => false,
202
+ "atts" => array(),
203
+ "label" => __("Two Third (Last)", "wp-shortcode"),
204
+ "content" => __("Column content", "wp-shortcode"),
205
+ "content_field" => "textarea",
206
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
207
+ ),
208
+ "one_half" => array(
209
+ "self-closing" => false,
210
+ "atts" => array(),
211
+ "label" => __("One Half", "wp-shortcode"),
212
+ "content" => __("Column content", "wp-shortcode"),
213
+ "content_field" => "textarea",
214
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
215
+ ),
216
+ "one_half_last" => array(
217
+ "self-closing" => false,
218
+ "atts" => array(),
219
+ "label" => __("One Half (Last)", "wp-shortcode"),
220
+ "content" => __("Column content", "wp-shortcode"),
221
+ "content_field" => "textarea",
222
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
223
+ ),
224
+ "one_fourth" => array(
225
+ "self-closing" => false,
226
+ "atts" => array(),
227
+ "label" => __("One Fourth", "wp-shortcode"),
228
+ "content" => __("Column content", "wp-shortcode"),
229
+ "content_field" => "textarea",
230
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
231
+ ),
232
+ "one_fourth_last" => array(
233
+ "self-closing" => false,
234
+ "atts" => array(),
235
+ "label" => __("One Fourth (Last)", "wp-shortcode"),
236
+ "content" => __("Column content", "wp-shortcode"),
237
+ "content_field" => "textarea",
238
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
239
+ ),
240
+ "three_fourth" => array(
241
+ "self-closing" => false,
242
+ "atts" => array(),
243
+ "label" => __("Three Fourth", "wp-shortcode"),
244
+ "content" => __("Column content", "wp-shortcode"),
245
+ "content_field" => "textarea",
246
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
247
+ ),
248
+ "three_fourth_last" => array(
249
+ "self-closing" => false,
250
+ "atts" => array(),
251
+ "label" => __("Three Fourth (Last)", "wp-shortcode"),
252
+ "content" => __("Column content", "wp-shortcode"),
253
+ "content_field" => "textarea",
254
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
255
+ ),
256
+ "one_fifth" => array(
257
+ "self-closing" => false,
258
+ "atts" => array(),
259
+ "label" => __("One Fifth", "wp-shortcode"),
260
+ "content" => __("Column content", "wp-shortcode"),
261
+ "content_field" => "textarea",
262
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
263
+ ),
264
+ "one_fifth_last" => array(
265
+ "self-closing" => false,
266
+ "atts" => array(),
267
+ "label" => __("One Fifth (Last)", "wp-shortcode"),
268
+ "content" => __("Column content", "wp-shortcode"),
269
+ "content_field" => "textarea",
270
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
271
+ ),
272
+ "two_fifth" => array(
273
+ "self-closing" => false,
274
+ "atts" => array(),
275
+ "label" => __("Two Fifth", "wp-shortcode"),
276
+ "content" => __("Column content", "wp-shortcode"),
277
+ "content_field" => "textarea",
278
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
279
+ ),
280
+ "two_fifth_last" => array(
281
+ "self-closing" => false,
282
+ "atts" => array(),
283
+ "label" => __("Two Fifth (Last)", "wp-shortcode"),
284
+ "content" => __("Column content", "wp-shortcode"),
285
+ "content_field" => "textarea",
286
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
287
+ ),
288
+ "three_fifth" => array(
289
+ "self-closing" => false,
290
+ "atts" => array(),
291
+ "label" => __("Three Fifth", "wp-shortcode"),
292
+ "content" => __("Column content", "wp-shortcode"),
293
+ "content_field" => "textarea",
294
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
295
+ ),
296
+ "three_fifth_last" => array(
297
+ "self-closing" => false,
298
+ "atts" => array(),
299
+ "label" => __("Three Fifth (Last)", "wp-shortcode"),
300
+ "content" => __("Column content", "wp-shortcode"),
301
+ "content_field" => "textarea",
302
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
303
+ ),
304
+ "four_fifth" => array(
305
+ "self-closing" => false,
306
+ "atts" => array(),
307
+ "label" => __("Four Fifth", "wp-shortcode"),
308
+ "content" => __("Column content", "wp-shortcode"),
309
+ "content_field" => "textarea",
310
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
311
+ ),
312
+ "four_fifth_last" => array(
313
+ "self-closing" => false,
314
+ "atts" => array(),
315
+ "label" => __("Four Fifth (Last)", "wp-shortcode"),
316
+ "content" => __("Column content", "wp-shortcode"),
317
+ "content_field" => "textarea",
318
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
319
+ ),
320
+ "one_sixth" => array(
321
+ "self-closing" => false,
322
+ "atts" => array(),
323
+ "label" => __("One Sixth", "wp-shortcode"),
324
+ "content" => __("Column content", "wp-shortcode"),
325
+ "content_field" => "textarea",
326
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
327
+ ),
328
+ "one_sixth_last" => array(
329
+ "self-closing" => false,
330
+ "atts" => array(),
331
+ "label" => __("One Sixth (Last)", "wp-shortcode"),
332
+ "content" => __("Column content", "wp-shortcode"),
333
+ "content_field" => "textarea",
334
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
335
+ ),
336
+ "five_sixth" => array(
337
+ "self-closing" => false,
338
+ "atts" => array(),
339
+ "label" => __("Five Sixth", "wp-shortcode"),
340
+ "content" => __("Column content", "wp-shortcode"),
341
+ "content_field" => "textarea",
342
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
343
+ ),
344
+ "five_sixth_last" => array(
345
+ "self-closing" => false,
346
+ "atts" => array(),
347
+ "label" => __("Five Sixth (Last)", "wp-shortcode"),
348
+ "content" => __("Column content", "wp-shortcode"),
349
+ "content_field" => "textarea",
350
+ "description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
351
+ ),
352
+ "tooltip" => array(
353
+ "self-closing" => false,
354
+ "atts" => array(
355
+ "content" => "Tooltip content",
356
+ "gravity" => "n",
357
+ "fade" => "0"
358
+ ),
359
+ "label" => __("Tooltip", "wp-shortcode"),
360
+ "content" => __("Trigger text", "wp-shortcode"),
361
+ "description" => __("Add a tooltip that appears on hover. Possible values for direction(Cardinal) of bubble: nw | n | ne | w | e | sw | s | se", "wp-shortcode")
362
+ )
363
+ );
364
+
365
+ $shortcodes = apply_filters( 'mts_wp_shortcode_list', $shortcodes );
366
+ echo "<script type=\"text/javascript\">var shortcodes = ".json_encode( $shortcodes ).";</script>";
367
+
368
  ?>
tinymce/tinymce.js CHANGED
@@ -1,93 +1,93 @@
1
- function mnmshortcodesubmit() {
2
- var tagtext;
3
- var mnm_shortcodeid = document.getElementById('mnmshortcode_tag').value;
4
- if (mnm_shortcodeid == 0) {
5
- tinyMCEPopup.close();
6
- return;
7
- }
8
- if (typeof shortcodes[mnm_shortcodeid] != 'undefined') {
9
- tagtext = "["+mnm_shortcodeid + ' ';
10
- jQuery.each(shortcodes[mnm_shortcodeid]['atts'], function(index, item) {
11
- tagtext += index + '="' + jQuery('#shortcode_att_'+index).val() + '" ';
12
- });
13
-
14
- tagtext = tagtext.trim() + "]";
15
- if (!shortcodes[mnm_shortcodeid]['self-closing']) {
16
- tagtext += jQuery('#shortcode_content').val() + "[/" + mnm_shortcodeid + "]";
17
- }
18
- } else {
19
- tagtext="["+mnm_shortcodeid + "]Insert your content here[/" + mnm_shortcodeid + "]";
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
- }
33
- return;
34
- }
35
-
36
- // document ready
37
- jQuery(function($) {
38
- $('#mnmshortcode_panel').append('<table id="mnmshortcode_atts" border="0" cellpadding="4" cellspacing="0"></table>');
39
- tinyMCEPopup.resizeToInnerSize();
40
- $('#mnmshortcode_tag').change(function() {
41
- var mnm_shortcodeid = $(this).val();
42
- var $atts_table = $('#mnmshortcode_atts');
43
- $atts_table.empty();
44
- // build form
45
- if (typeof shortcodes[mnm_shortcodeid] != 'undefined') {
46
- var html = '';
47
-
48
- if (shortcodes[mnm_shortcodeid]['description']) {
49
- html += '<tr><td class="mnmshortcode_description" colspan="2">'+shortcodes[mnm_shortcodeid]['description']+'</td></tr>';
50
- }
51
- $.each(shortcodes[mnm_shortcodeid]['atts'], function(index, item) {
52
- html += '<tr class="mnmshortcode_att_name"><td>'+index+'</td><td><input type="text" name="shortcode_att_'+index+'" id="shortcode_att_'+index+'" value="'+item+'" /></td></tr>';
53
- });
54
-
55
- if (!shortcodes[mnm_shortcodeid]['self-closing']) {
56
- if (shortcodes[mnm_shortcodeid]['content_field'] == undefined) {
57
- shortcodes[mnm_shortcodeid]['content_field'] = 'input';
58
- }
59
- switch (shortcodes[mnm_shortcodeid]['content_field']) {
60
- case 'input':
61
- html += '<tr class="mnmshortcode_content"><td>Content</td><td><input type="text" name="shortcode_content" id="shortcode_content" value="'+shortcodes[mnm_shortcodeid]['content']+'" /></td></tr>';
62
- break;
63
-
64
- case 'textarea':
65
- html += '<tr class="mnmshortcode_content"><td>Content</td><td><textarea name="shortcode_content" id="shortcode_content">'+shortcodes[mnm_shortcodeid]['content']+'</textarea></td></tr>';
66
- break;
67
-
68
- default:
69
- html += '<tr class="mnmshortcode_content"><td>Content</td><td><input type="text" name="shortcode_content" id="shortcode_content" value="'+shortcodes[mnm_shortcodeid]['content']+'" /></td></tr>';
70
- break;
71
- }
72
-
73
- }
74
- $atts_table.append(html);
75
- $('.mnmshortcode_att_name input, .mnmshortcode_content input').each(function() {
76
- var $this = $(this);
77
- $this.data('defaultVal', $this.val())
78
- .css('color', '#777777')
79
- .focus(function() {
80
- if ($this.val() == $this.data('defaultVal')) {
81
- $this.val('').css('color', '#000000');
82
- }
83
- });
84
- });
85
- }
86
- tinyMCEPopup.execCommand( 'mcewpspanel_resize', false, { height : $('#mnmshortcode_form').height() } );
87
- tinyMCEPopup.resizeToInnerSize();
88
- });
89
-
90
- // Resize onLoad
91
- tinyMCEPopup.execCommand( 'mcewpspanel_resize', false, { height : 50 } );
92
- tinyMCEPopup.resizeToInnerSize();
93
  });
1
+ function mnmshortcodesubmit() {
2
+ var tagtext;
3
+ var mnm_shortcodeid = document.getElementById('mnmshortcode_tag').value;
4
+ if (mnm_shortcodeid == 0) {
5
+ tinyMCEPopup.close();
6
+ return;
7
+ }
8
+ if (typeof shortcodes[mnm_shortcodeid] != 'undefined') {
9
+ tagtext = "["+mnm_shortcodeid + ' ';
10
+ jQuery.each(shortcodes[mnm_shortcodeid]['atts'], function(index, item) {
11
+ tagtext += index + '="' + jQuery('#shortcode_att_'+index).val() + '" ';
12
+ });
13
+
14
+ tagtext = tagtext.trim() + "]";
15
+ if (!shortcodes[mnm_shortcodeid]['self-closing']) {
16
+ tagtext += jQuery('#shortcode_content').val() + "[/" + mnm_shortcodeid + "]";
17
+ }
18
+ } else {
19
+ tagtext="["+mnm_shortcodeid + "]Insert your content here[/" + mnm_shortcodeid + "]";
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
+ }
33
+ return;
34
+ }
35
+
36
+ // document ready
37
+ jQuery(function($) {
38
+ $('#mnmshortcode_panel').append('<table id="mnmshortcode_atts" border="0" cellpadding="4" cellspacing="0"></table>');
39
+ tinyMCEPopup.resizeToInnerSize();
40
+ $('#mnmshortcode_tag').change(function() {
41
+ var mnm_shortcodeid = $(this).val();
42
+ var $atts_table = $('#mnmshortcode_atts');
43
+ $atts_table.empty();
44
+ // build form
45
+ if (typeof shortcodes[mnm_shortcodeid] != 'undefined') {
46
+ var html = '';
47
+
48
+ if (shortcodes[mnm_shortcodeid]['description']) {
49
+ html += '<tr><td class="mnmshortcode_description" colspan="2">'+shortcodes[mnm_shortcodeid]['description']+'</td></tr>';
50
+ }
51
+ $.each(shortcodes[mnm_shortcodeid]['atts'], function(index, item) {
52
+ html += '<tr class="mnmshortcode_att_name"><td>'+index+'</td><td><input type="text" name="shortcode_att_'+index+'" id="shortcode_att_'+index+'" value="'+item+'" /></td></tr>';
53
+ });
54
+
55
+ if (!shortcodes[mnm_shortcodeid]['self-closing']) {
56
+ if (shortcodes[mnm_shortcodeid]['content_field'] == undefined) {
57
+ shortcodes[mnm_shortcodeid]['content_field'] = 'input';
58
+ }
59
+ switch (shortcodes[mnm_shortcodeid]['content_field']) {
60
+ case 'input':
61
+ html += '<tr class="mnmshortcode_content"><td>Content</td><td><input type="text" name="shortcode_content" id="shortcode_content" value="'+shortcodes[mnm_shortcodeid]['content']+'" /></td></tr>';
62
+ break;
63
+
64
+ case 'textarea':
65
+ html += '<tr class="mnmshortcode_content"><td>Content</td><td><textarea name="shortcode_content" id="shortcode_content">'+shortcodes[mnm_shortcodeid]['content']+'</textarea></td></tr>';
66
+ break;
67
+
68
+ default:
69
+ html += '<tr class="mnmshortcode_content"><td>Content</td><td><input type="text" name="shortcode_content" id="shortcode_content" value="'+shortcodes[mnm_shortcodeid]['content']+'" /></td></tr>';
70
+ break;
71
+ }
72
+
73
+ }
74
+ $atts_table.append(html);
75
+ $('.mnmshortcode_att_name input, .mnmshortcode_content input').each(function() {
76
+ var $this = $(this);
77
+ $this.data('defaultVal', $this.val())
78
+ .css('color', '#777777')
79
+ .focus(function() {
80
+ if ($this.val() == $this.data('defaultVal')) {
81
+ $this.val('').css('color', '#000000');
82
+ }
83
+ });
84
+ });
85
+ }
86
+ tinyMCEPopup.execCommand( 'mcewpspanel_resize', false, { height : $('#mnmshortcode_form').height() } );
87
+ tinyMCEPopup.resizeToInnerSize();
88
+ });
89
+
90
+ // Resize onLoad
91
+ tinyMCEPopup.execCommand( 'mcewpspanel_resize', false, { height : 50 } );
92
+ tinyMCEPopup.resizeToInnerSize();
93
  });
tinymce/tinymce.php CHANGED
@@ -1,76 +1,76 @@
1
- <?php
2
- class add_wpshortcodes_button {
3
- var $pluginname = 'wpspanel';
4
- var $path = '';
5
- var $internalVersion = 100;
6
-
7
- function __construct()
8
- {
9
-
10
- // Set path to editor_plugin.js
11
- $this->path = plugin_dir_url(__FILE__);
12
-
13
- // Modify the version when tinyMCE plugins are changed.
14
- add_filter('tiny_mce_version', array (&$this, 'change_tinymce_version') );
15
-
16
- // init process for button control
17
- add_action('init', array (&$this, 'addbuttons') );
18
- }
19
-
20
- function addbuttons()
21
- {
22
- global $page_handle;
23
-
24
- if ( !current_user_can('edit_posts') && !current_user_can('edit_pages') )
25
- return;
26
-
27
- // Add only in Rich Editor mode
28
- if ( get_user_option('rich_editing') == 'true')
29
- {
30
- add_filter("mce_external_plugins", array (&$this, 'add_tinymce_plugin' ), 5);
31
- add_filter('mce_buttons', array (&$this, 'register_button' ), 5);
32
- add_filter('mce_external_languages', array (&$this, 'add_tinymce_langs_path'));
33
- }
34
- }
35
-
36
- function register_button($buttons)
37
- {
38
- array_push($buttons, 'separator', $this->pluginname );
39
- return $buttons;
40
- }
41
-
42
- function add_tinymce_plugin($plugin_array)
43
- {
44
- $plugin_array[$this->pluginname] = $this->path . 'editor_plugin.js';
45
-
46
- return $plugin_array;
47
- }
48
-
49
- function add_tinymce_langs_path($plugin_array)
50
- {
51
- // Load the TinyMCE language file
52
- $plugin_array[$this->pluginname] = plugin_dir_url('tinymce/langs.php');
53
- return $plugin_array;
54
- }
55
-
56
-
57
- /**
58
- * add_nextgen_button::change_tinymce_version()
59
- * A different version will rebuild the cache
60
- *
61
- * @return $versio
62
- */
63
- function change_tinymce_version($version)
64
- {
65
- $version = $version + $this->internalVersion;
66
- return $version;
67
- }
68
-
69
- }
70
-
71
- // Call it after theme setup
72
- function mts_wpshortcodes_tinymce() {
73
- $tinymce_button = new add_wpshortcodes_button();
74
- }
75
- add_action( 'after_setup_theme', 'mts_wpshortcodes_tinymce' );
76
- ?>
1
+ <?php
2
+ class add_wpshortcodes_button {
3
+ var $pluginname = 'wpspanel';
4
+ var $path = '';
5
+ var $internalVersion = 100;
6
+
7
+ function __construct()
8
+ {
9
+
10
+ // Set path to editor_plugin.js
11
+ $this->path = plugin_dir_url(__FILE__);
12
+
13
+ // Modify the version when tinyMCE plugins are changed.
14
+ add_filter('tiny_mce_version', array (&$this, 'change_tinymce_version') );
15
+
16
+ // init process for button control
17
+ add_action('init', array (&$this, 'addbuttons') );
18
+ }
19
+
20
+ function addbuttons()
21
+ {
22
+ global $page_handle;
23
+
24
+ if ( !current_user_can('edit_posts') && !current_user_can('edit_pages') )
25
+ return;
26
+
27
+ // Add only in Rich Editor mode
28
+ if ( get_user_option('rich_editing') == 'true')
29
+ {
30
+ add_filter("mce_external_plugins", array (&$this, 'add_tinymce_plugin' ), 5);
31
+ add_filter('mce_buttons', array (&$this, 'register_button' ), 5);
32
+ add_filter('mce_external_languages', array (&$this, 'add_tinymce_langs_path'));
33
+ }
34
+ }
35
+
36
+ function register_button($buttons)
37
+ {
38
+ array_push($buttons, 'separator', $this->pluginname );
39
+ return $buttons;
40
+ }
41
+
42
+ function add_tinymce_plugin($plugin_array)
43
+ {
44
+ $plugin_array[$this->pluginname] = $this->path . 'editor_plugin.js';
45
+
46
+ return $plugin_array;
47
+ }
48
+
49
+ function add_tinymce_langs_path($plugin_array)
50
+ {
51
+ // Load the TinyMCE language file
52
+ $plugin_array[$this->pluginname] = plugin_dir_url('tinymce/langs.php');
53
+ return $plugin_array;
54
+ }
55
+
56
+
57
+ /**
58
+ * add_nextgen_button::change_tinymce_version()
59
+ * A different version will rebuild the cache
60
+ *
61
+ * @return $versio
62
+ */
63
+ function change_tinymce_version($version)
64
+ {
65
+ $version = $version + $this->internalVersion;
66
+ return $version;
67
+ }
68
+
69
+ }
70
+
71
+ // Call it after theme setup
72
+ function mts_wpshortcodes_tinymce() {
73
+ $tinymce_button = new add_wpshortcodes_button();
74
+ }
75
+ add_action( 'after_setup_theme', 'mts_wpshortcodes_tinymce' );
76
+ ?>
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.9
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
- $out = "<div class=\"message_box announce\"><p>".do_shortcode($content)."</p></div>";
 
 
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
- $out = "<div class=\"message_box warning\"><p>".do_shortcode($content)."</p></div>";
 
 
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
- return '<div class="one_fifth">' . do_shortcode($content) . '</div>';
 
258
  }
259
 
260
  function mts_one_fifth_last( $atts, $content = null ) {
261
- return '<div class="one_fifth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
 
262
  }
263
 
264
  function mts_two_fifth( $atts, $content = null ) {
265
- return '<div class="two_fifth">' . do_shortcode($content) . '</div>';
 
266
  }
267
 
268
  function mts_two_fifth_last( $atts, $content = null ) {
269
- return '<div class="two_fifth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
 
270
  }
271
 
272
  function mts_three_fifth( $atts, $content = null ) {
273
- return '<div class="three_fifth">' . do_shortcode($content) . '</div>';
 
274
  }
275
 
276
  function mts_three_fifth_last( $atts, $content = null ) {
277
- return '<div class="three_fifth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
 
278
  }
279
 
280
  function mts_four_fifth( $atts, $content = null ) {
281
- return '<div class="four_fifth">' . do_shortcode($content) . '</div>';
 
282
  }
283
 
284
  function mts_four_fifth_last( $atts, $content = null ) {
285
- return '<div class="four_fifth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
 
286
  }
287
 
288
  function mts_one_sixth( $atts, $content = null ) {
289
- return '<div class="one_sixth">' . do_shortcode($content) . '</div>';
 
290
  }
291
 
292
  function mts_one_sixth_last( $atts, $content = null ) {
293
- return '<div class="one_sixth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
 
294
  }
295
 
296
  function mts_five_sixth( $atts, $content = null ) {
297
- return '<div class="five_sixth">' . do_shortcode($content) . '</div>';
 
298
  }
299
 
300
  function mts_five_sixth_last( $atts, $content = null ) {
301
- return '<div class="five_sixth column-last">' . do_shortcode($content) . '</div><div class="clear"></div>';
 
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&amp;byline=0&amp;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.11
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&amp;byline=0&amp;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
+ ?>