Shortcodes by Angie Makes - Version 1.34

Version Description

Download this release

Release Info

Developer cbaldelomar
Plugin Icon wp plugin Shortcodes by Angie Makes
Version 1.34
Comparing to
See all releases

Code changes from version 1.33 to 1.34

README.md CHANGED
@@ -66,6 +66,11 @@ Use the shortcode manager in the TinyMCE text editor
66
 
67
  ## Changelog ##
68
 
 
 
 
 
 
69
  ### Version 1.33
70
 
71
  * Added shortcodes for inserting Font Awesome icons.
66
 
67
  ## Changelog ##
68
 
69
+ ### Version 1.34
70
+
71
+ * Updated plugin to be compatible with version 3.9
72
+ * Added bottom margin to column sections when in responsive mode
73
+
74
  ### Version 1.33
75
 
76
  * Added shortcodes for inserting Font Awesome icons.
includes/css/style.css CHANGED
@@ -277,7 +277,7 @@
277
  width: 100%;
278
  float: none;
279
  margin-left: 0;
280
- margin-bottom: 0;
281
  }
282
  }
283
 
277
  width: 100%;
278
  float: none;
279
  margin-left: 0;
280
+ margin-bottom: 20px;
281
  }
282
  }
283
 
includes/mce/js/font-awesome-tinymce-4.js ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ( function() {
2
+ "use strict";
3
+
4
+ var ICONS;
5
+
6
+ var setIconShortcode = function(id) {
7
+ return '[wc_fa icon="' + id + '" margin_left="" margin_right=""][/wc_fa]';
8
+ }
9
+
10
+ var icon = function(id) {
11
+ return '<i class="fa fa-' + id + '"></i>';
12
+ }
13
+
14
+ var wcShortcodeFA = function( editor, url ) {
15
+ editor.addButton('wcfontAwesomeGlyphSelect', function() {
16
+ var values = [];
17
+
18
+ for (var i = 0; i < ICONS.length; i++) {
19
+ var _id = ICONS[i];
20
+ values.push({text: _id, value: _id});
21
+ }
22
+
23
+ return {
24
+ type: 'listbox',
25
+ //name: 'align',
26
+ text: 'FontAwesome',
27
+ label: 'Select :',
28
+ fixedWidth: true,
29
+ onselect: function(e) {
30
+ if (e) {
31
+ editor.insertContent(setIconShortcode(e.control.settings.value));
32
+ }
33
+ return false;
34
+ },
35
+ values: values,
36
+ };
37
+ });
38
+ };
39
+ tinymce.PluginManager.add( 'wc_font_awesome', wcShortcodeFA );
40
+
41
+ ICONS = ["adjust", "adn", "align-center", "align-justify", "align-left", "align-right", "ambulance", "anchor", "android", "angle-double-down", "angle-double-left", "angle-double-right", "angle-double-up", "angle-down", "angle-left", "angle-right", "angle-up", "apple", "archive", "arrow-circle-down", "arrow-circle-left", "arrow-circle-o-down", "arrow-circle-o-left", "arrow-circle-o-right", "arrow-circle-o-up", "arrow-circle-right", "arrow-circle-up", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "arrows", "arrows-alt", "arrows-h", "arrows-v", "asterisk", "backward", "ban", "bar-chart-o", "barcode", "bars", "beer", "bell", "bell-o", "bitbucket", "bitbucket-square", "bitcoin", "bold", "book", "bookmark", "bookmark-o", "briefcase", "bug", "building-o", "bullhorn", "bullseye", "calendar", "calendar-o", "camera", "camera-retro", "caret-down", "caret-left", "caret-right", "caret-up", "certificate", "chain", "check", "check-circle", "check-circle-o", "check-square", "check-square-o", "chevron-circle-down", "chevron-circle-left", "chevron-circle-right", "chevron-circle-up", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "circle-o", "clock-o", "cloud", "cloud-download", "cloud-upload", "cny", "code", "code-fork", "coffee", "columns", "comment", "comment-o", "comments", "comments-o", "compass", "compress", "copy", "credit-card", "crop", "crosshairs", "css3", "cut", "cutlery", "dashboard", "dedent", "desktop", "dollar", "dot-circle-o", "download", "dribbble", "dropbox", "edit", "eject", "ellipsis-h", "ellipsis-v", "envelope", "envelope-o", "eraser", "euro", "exchange", "exclamation", "exclamation-circle", "expand", "external-link", "external-link-square", "eye", "eye-slash", "facebook", "facebook-square", "fast-backward", "fast-forward", "female", "fighter-jet", "file", "file-o", "file-text", "file-text-o", "film", "filter", "fire", "fire-extinguisher", "flag", "flag-checkered", "flag-o", "flash", "flask", "flickr", "folder", "folder-o", "folder-open", "folder-open-o", "font", "forward", "foursquare", "frown-o", "gamepad", "gbp", "gear", "gears", "gift", "github", "github-alt", "github-square", "gittip", "glass", "globe", "google-plus", "google-plus-square", "group", "h-square", "hand-o-down", "hand-o-left", "hand-o-right", "hand-o-up", "hdd-o", "headphones", "heart", "heart-o", "home", "hospital-o", "html5", "inbox", "indent", "info", "info-circle", "instagram", "italic", "key", "keyboard-o", "laptop", "leaf", "legal", "lemon-o", "level-down", "level-up", "lightbulb-o", "linkedin", "linkedin-square", "linux", "list", "list-alt", "list-ol", "list-ul", "location-arrow", "lock", "long-arrow-down", "long-arrow-left", "long-arrow-right", "long-arrow-up", "magic", "magnet", "mail-forward", "mail-reply", "mail-reply-all", "male", "map-marker", "maxcdn", "medkit", "meh-o", "microphone", "microphone-slash", "minus", "minus-circle", "minus-square", "minus-square-o", "mobile-phone", "money", "moon-o", "music", "pagelines", "paperclip", "paste", "pause", "pencil", "pencil-square", "phone", "phone-square", "picture-o", "pinterest", "pinterest-square", "plane", "play", "play-circle", "play-circle-o", "plus", "plus-circle", "plus-square", "plus-square-o", "power-off", "print", "puzzle-piece", "qrcode", "question", "question-circle", "quote-left", "quote-right", "random", "refresh", "renren", "reply-all", "retweet", "road", "rocket", "rotate-left", "rotate-right", "rss", "rss-square", "ruble", "rupee", "save", "search", "search-minus", "search-plus", "share-square", "share-square-o", "shield", "shopping-cart", "sign-in", "sign-out", "signal", "sitemap", "skype", "smile-o", "sort-alpha-asc", "sort-alpha-desc", "sort-amount-asc", "sort-amount-desc", "sort-down", "sort-numeric-asc", "sort-numeric-desc", "sort-up", "spinner", "square", "square-o", "stack-exchange", "stack-overflow", "star", "star-half", "star-half-empty", "star-o", "step-backward", "step-forward", "stethoscope", "stop", "strikethrough", "subscript", "suitcase", "sun-o", "superscript", "table", "tablet", "tag", "tags", "tasks", "terminal", "text-height", "text-width", "th", "th-large", "th-list", "thumb-tack", "thumbs-down", "thumbs-o-down", "thumbs-o-up", "thumbs-up", "ticket", "times", "times-circle", "times-circle-o", "tint", "toggle-down", "toggle-left", "toggle-right", "toggle-up", "trash-o", "trello", "trophy", "truck", "tumblr", "tumblr-square", "turkish-lira", "twitter", "twitter-square", "umbrella", "underline", "unlink", "unlock", "unlock-alt", "unsorted", "upload", "user", "user-md", "video-camera", "vimeo-square", "vk", "volume-down", "volume-off", "volume-up", "warning", "weibo", "wheelchair", "windows", "won", "wrench", "xing", "xing-square", "youtube", "youtube-play", "youtube-square"];
42
+
43
+ } )();
includes/mce/js/shortcodes-tinymce-4.js ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function () {
2
+ "use strict";
3
+
4
+ var wcShortcodeManager = function(editor, url) {
5
+ var wcDummyContent = 'Sample Content';
6
+ var wcParagraphContent = '<p>Sample Content</p>';
7
+
8
+
9
+ editor.addButton('wc_shortcodes_button', function() {
10
+ return {
11
+ title: "",
12
+ text: "Shortcodes",
13
+ image: url + "/images/shortcodes.png",
14
+ type: 'menubutton',
15
+ icons: false,
16
+ menu: [
17
+ {
18
+ text: 'Columns',
19
+ menu: [
20
+ {
21
+ text: "1/2 + 1/2",
22
+ onclick: function(){
23
+ editor.insertContent('[wc_row][wc_column size="one-half" position="first"]' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-half" position="last"]</p>' + wcParagraphContent + '[/wc_column][/wc_row]');
24
+ }
25
+ },
26
+ {
27
+ text: "1/3 + 1/3 + 1/3",
28
+ onclick: function(){
29
+ editor.insertContent('[wc_row][wc_column size="one-third" position="first"]' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-third"]</p>' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-third" position="last"]</p>' + wcParagraphContent + '[/wc_column][/wc_row]');
30
+ }
31
+ },
32
+ {
33
+ text: "1/3 + 2/3",
34
+ onclick: function(){
35
+ editor.insertContent('[wc_row][wc_column size="one-third" position="first"]' + wcParagraphContent + '<p>[/wc_column][wc_column size="two-third" position="last"]</p>' + wcParagraphContent + '[/wc_column][/wc_row]');
36
+ }
37
+ },
38
+ {
39
+ text: "2/3 + 1/3",
40
+ onclick: function(){
41
+ editor.insertContent('[wc_row][wc_column size="two-third" position="first"]' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-third" position="last"]</p>' + wcParagraphContent + '[/wc_column][/wc_row]');
42
+ }
43
+ },
44
+ {
45
+ text: "1/4 + 1/4 + 1/4 + 1/4",
46
+ onclick: function(){
47
+ editor.insertContent('[wc_row][wc_column size="one-fourth" position="first"]' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-fourth"]</p>' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-fourth"]</p>' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-fourth" position="last"]</p>' + wcParagraphContent + '[/wc_column][/wc_row]');
48
+ }
49
+ },
50
+ {
51
+ text: "1/4 + 1/2 + 1/4",
52
+ onclick: function(){
53
+ editor.insertContent('[wc_row][wc_column size="one-fourth" position="first"]' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-half"]</p>' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-fourth" position="last"]</p>' + wcParagraphContent + '[/wc_column][/wc_row]');
54
+ }
55
+ },
56
+ {
57
+ text: "1/2 + 1/4 + 1/4",
58
+ onclick: function(){
59
+ editor.insertContent('[wc_row][wc_column size="one-half" position="first"]' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-fourth"]</p>' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-fourth" position="last"]</p>' + wcParagraphContent + '[/wc_column][/wc_row]');
60
+ }
61
+ },
62
+ {
63
+ text: "1/4 + 1/4 + 1/2",
64
+ onclick: function(){
65
+ editor.insertContent('[wc_row][wc_column size="one-fourth" position="first"]' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-fourth"]</p>' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-half" position="last"]</p>' + wcParagraphContent + '[/wc_column][/wc_row]');
66
+ }
67
+ },
68
+ {
69
+ text: "1/4 + 3/4",
70
+ onclick: function(){
71
+ editor.insertContent('[wc_row][wc_column size="one-fourth" position="first"]' + wcParagraphContent + '<p>[/wc_column][wc_column size="three-fourth" position="last"]</p>' + wcParagraphContent + '[/wc_column][/wc_row]');
72
+ }
73
+ },
74
+ {
75
+ text: "3/4 + 1/4",
76
+ onclick: function(){
77
+ editor.insertContent('[wc_row][wc_column size="three-fourth" position="first"]' + wcParagraphContent + '<p>[/wc_column][wc_column size="one-fourth" position="last"]</p>' + wcParagraphContent + '[/wc_column][/wc_row]');
78
+ }
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ text: 'Elements',
84
+ menu: [
85
+ {
86
+ text: "Posts",
87
+ onclick: function(){
88
+ editor.insertContent('[wc_posts author="" author_name="" p="" post__in="" order="DESC" orderby="date" post_status="publish" post_type="post" posts_per_page="10" taxonomy="" field="slug" terms="" title="yes" meta_all="yes" meta_author="yes" meta_date="yes" meta_comments="yes" thumbnail="yes" content="yes" paging="yes" size="large" filtering="yes" columns="3" gutter_space="0.020" heading_type="h2" layout="isotope"][/wc_posts]');
89
+ }
90
+ },
91
+ {
92
+ text: "Button",
93
+ onclick: function(){
94
+ editor.insertContent('[wc_button type="primary" url="http://webplantmedia.com" title="Visit Site" target="self" position="float"]' + wcDummyContent + '[/wc_button]');
95
+ }
96
+ },
97
+ {
98
+ text: "Google Map",
99
+ onclick: function(){
100
+ editor.insertContent('[wc_googlemap title="St. Paul\'s Chapel" location="209 Broadway, New York, NY 10007" zoom="10" height="250" title_on_load="no" class=""]');
101
+ }
102
+ },
103
+ {
104
+ text: "Heading",
105
+ onclick: function(){
106
+ editor.insertContent('[wc_heading type="h1" title="' + wcDummyContent + '" text_align="left"]');
107
+ }
108
+ },
109
+ {
110
+ text: "Pricing Table",
111
+ onclick: function(){
112
+ editor.insertContent('[wc_pricing type="primary" featured="yes" plan="Basic" cost="$19.99" per="per month" button_url="#" button_text="Sign Up" button_target="self" button_rel="nofollow"]<ul><li>30GB Storage</li><li>512MB Ram</li><li>10 databases</li><li>1,000 Emails</li><li>25GB Bandwidth</li></ul>[/wc_pricing]');
113
+ }
114
+ },
115
+ {
116
+ text: "Skillbar",
117
+ onclick: function(){
118
+ editor.insertContent('[wc_skillbar title="' + wcDummyContent + '" percentage="100" color="#6adcfa"]');
119
+ }
120
+ },
121
+ {
122
+ text: "Social Icon",
123
+ onclick: function(){
124
+ editor.insertContent('[wc_social_icons align="left" size="large" display="facebook,google,twitter,pinterest,instagram,bloglovin,flickr,rss,email,custom1,custom2,custom3,custom4,custom5"]');
125
+ }
126
+ },
127
+ {
128
+ text: "Testimonial",
129
+ onclick: function(){
130
+ editor.insertContent('[wc_testimonial by="Wordpress Canvas" url="" position="left"]' + wcDummyContent + '[/wc_testimonial]');
131
+ }
132
+ },
133
+ {
134
+ text: "Image",
135
+ onclick: function(){
136
+ editor.insertContent('[wc_image attachment_id="" size="" title="" alt="" caption="" link_to="post" url="" align="none" flag="For Sale" left="" top="" right="0" bottom="20" text_color="" background_color="" font_size=""][/wc_image]');
137
+ }
138
+ },
139
+ {
140
+ text: "Countdown",
141
+ onclick: function(){
142
+ var d = new Date();
143
+ var year = d.getFullYear() + 1;
144
+ editor.insertContent('[wc_countdown date="July 23, '+year+', 6:00:00 PM" format="wdHMs" message="Your Message Here!" labels="Years,Months,Weeks,Days,Hours,Minutes,Seconds" labels1="Year,Month,Week,Day,Hour,Minute,Second"]');
145
+ }
146
+ },
147
+ {
148
+ text: "RSVP",
149
+ onclick: function(){
150
+ editor.insertContent('[wc_rsvp columns="3" align="left" button_align="center"]');
151
+ }
152
+ },
153
+ {
154
+ text: "HTML",
155
+ onclick: function(){
156
+ editor.insertContent('[wc_html name="Custom Field Name"]');
157
+ }
158
+ }
159
+ ]
160
+ },
161
+ {
162
+ text: 'Boxes',
163
+ menu: [
164
+ {
165
+ text: "Primary",
166
+ onclick: function(){
167
+ editor.insertContent('[wc_box color="primary" text_align="left"]' + wcDummyContent + '[/wc_box]');
168
+ }
169
+ },
170
+ {
171
+ text: "Secondary",
172
+ onclick: function(){
173
+ editor.insertContent('[wc_box color="secondary" text_align="left"]' + wcDummyContent + '[/wc_box]');
174
+ }
175
+ },
176
+ {
177
+ text: "Inverse",
178
+ onclick: function(){
179
+ editor.insertContent('[wc_box color="inverse" text_align="left"]' + wcDummyContent + '[/wc_box]');
180
+ }
181
+ },
182
+ {
183
+ text: "Success",
184
+ onclick: function(){
185
+ editor.insertContent('[wc_box color="success" text_align="left"]' + wcDummyContent + '[/wc_box]');
186
+ }
187
+ },
188
+ {
189
+ text: "Warning",
190
+ onclick: function(){
191
+ editor.insertContent('[wc_box color="warning" text_align="left"]' + wcDummyContent + '[/wc_box]');
192
+ }
193
+ },
194
+ {
195
+ text: "Danger",
196
+ onclick: function(){
197
+ editor.insertContent('[wc_box color="danger" text_align="left"]' + wcDummyContent + '[/wc_box]');
198
+ }
199
+ },
200
+ {
201
+ text: "Info",
202
+ onclick: function(){
203
+ editor.insertContent('[wc_box color="info" text_align="left"]' + wcDummyContent + '[/wc_box]');
204
+ }
205
+ }
206
+ ]
207
+ },
208
+ {
209
+ text: 'Highlights',
210
+ menu: [
211
+ {
212
+ text: "Blue",
213
+ onclick: function(){
214
+ editor.insertContent('[wc_highlight color="blue"]' + wcDummyContent + '[/wc_highlight]');
215
+ }
216
+ },
217
+ {
218
+ text: "Gray",
219
+ onclick: function(){
220
+ editor.insertContent('[wc_highlight color="gray"]' + wcDummyContent + '[/wc_highlight]');
221
+ }
222
+ },
223
+ {
224
+ text: "Green",
225
+ onclick: function(){
226
+ editor.insertContent('[wc_highlight color="green"]' + wcDummyContent + '[/wc_highlight]');
227
+ }
228
+ },
229
+ {
230
+ text: "Red",
231
+ onclick: function(){
232
+ editor.insertContent('[wc_highlight color="red"]' + wcDummyContent + '[/wc_highlight]');
233
+ }
234
+ },
235
+ {
236
+ text: "Yellow",
237
+ onclick: function(){
238
+ editor.insertContent('[wc_highlight color="yellow"]' + wcDummyContent + '[/wc_highlight]');
239
+ }
240
+ }
241
+ ]
242
+ },
243
+ {
244
+ text: 'Dividers',
245
+ menu: [
246
+ {
247
+ text: "Solid",
248
+ onclick: function(){
249
+ editor.insertContent('[wc_divider style="solid" line="single" margin_top="" margin_bottom=""]');
250
+ }
251
+ },
252
+ {
253
+ text: "Dashed",
254
+ onclick: function(){
255
+ editor.insertContent('[wc_divider style="dashed" line="single" margin_top="" margin_bottom=""]');
256
+ }
257
+ },
258
+ {
259
+ text: "Dotted",
260
+ onclick: function(){
261
+ editor.insertContent('[wc_divider style="dotted" line="single" margin_top="" margin_bottom=""]');
262
+ }
263
+ },
264
+ {
265
+ text: "Double",
266
+ onclick: function(){
267
+ editor.insertContent('[wc_divider style="solid" line="double" margin_top="" margin_bottom=""]');
268
+ }
269
+ },
270
+ {
271
+ text: "Image1",
272
+ onclick: function(){
273
+ editor.insertContent('[wc_divider style="image" margin_top="" margin_bottom=""]');
274
+ }
275
+ },
276
+ {
277
+ text: "Image2",
278
+ onclick: function(){
279
+ editor.insertContent('[wc_divider style="image2" margin_top="" margin_bottom=""]');
280
+ }
281
+ },
282
+ {
283
+ text: "Image3",
284
+ onclick: function(){
285
+ editor.insertContent('[wc_divider style="image3" margin_top="" margin_bottom=""]');
286
+ }
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ text: 'jQuery',
292
+ menu: [
293
+ {
294
+ text: "Accordion",
295
+ onclick: function(){
296
+ editor.insertContent('[wc_accordion collapse="0"]<p>[wc_accordion_section title="Section 1"]</p>' + wcParagraphContent + '<p>[/wc_accordion_section]</p><p>[wc_accordion_section title="Section 2"]</p>' + wcParagraphContent + '<p>[/wc_accordion_section]</p>[/wc_accordion]');
297
+ }
298
+ },
299
+ {
300
+ text: "Tabs",
301
+ onclick: function(){
302
+ editor.insertContent('[wc_tabgroup][wc_tab title="First Tab"]'+wcParagraphContent+'<p>[/wc_tab][wc_tab title="Second Tab"]</p>'+wcParagraphContent+'[/wc_tab][/wc_tabgroup]');
303
+ }
304
+ },
305
+ {
306
+ text: "Toggle",
307
+ onclick: function(){
308
+ editor.insertContent('[wc_toggle title="This Is Your Toggle Title" padding="" border_width=""]' + wcParagraphContent + '[/wc_toggle]');
309
+ }
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ text: 'Other',
315
+ menu: [
316
+ {
317
+ text: "Spacing",
318
+ onclick: function(){
319
+ editor.insertContent('[wc_spacing size="40px"]');
320
+ }
321
+ },
322
+ {
323
+ text: "Clear Floats",
324
+ onclick: function(){
325
+ editor.insertContent('[wc_clear_floats]');
326
+ }
327
+ },
328
+ {
329
+ text: "Center Content",
330
+ onclick: function(){
331
+ editor.insertContent('[wc_center max_width="500px" text_align="left"]' + wcParagraphContent + '[/wc_center]');
332
+ }
333
+ },
334
+ {
335
+ text: "Full Width",
336
+ onclick: function(){
337
+ editor.insertContent('[wc_fullwidth selector="#main"]' + wcDummyContent + '[/wc_fullwidth]');
338
+ }
339
+ },
340
+ {
341
+ text: "Code",
342
+ onclick: function(){
343
+ editor.insertContent('[wc_code]' + wcDummyContent + '[/wc_code]');
344
+ }
345
+ },
346
+ {
347
+ text: "Pre",
348
+ onclick: function(){
349
+ editor.insertContent('[wc_pre color="1" wrap="0" scrollable="1" linenums="0" name="Custom Field Name"]');
350
+ }
351
+ }
352
+ ]
353
+ },
354
+ ]
355
+ }
356
+ });
357
+ };
358
+
359
+ tinymce.PluginManager.add( "wc_shortcodes", wcShortcodeManager );
360
+ })();
includes/mce/js/shortcodes_tinymce.js CHANGED
@@ -89,7 +89,6 @@
89
  a.render( c, "Dashed", "dashedDivider" );
90
  a.render( c, "Dotted", "dottedDivider" );
91
  a.render( c, "Double", "doubleDivider" );
92
- a.render( c, "Triple", "tripleDivider" );
93
  a.render( c, "Image1", "imageDivider" );
94
  a.render( c, "Image2", "imageDivider2" );
95
  a.render( c, "Image3", "imageDivider3" );
@@ -195,7 +194,7 @@
195
 
196
  // Button
197
  if(id === "button") {
198
- tinyMCE.activeEditor.selection.setContent('[wc_button type="primary" url="http://www.wordpresscanvas.com" title="Visit Site" target="self" position="float"]' + wcDummyContent + '[/wc_button]');
199
  }
200
 
201
 
89
  a.render( c, "Dashed", "dashedDivider" );
90
  a.render( c, "Dotted", "dottedDivider" );
91
  a.render( c, "Double", "doubleDivider" );
 
92
  a.render( c, "Image1", "imageDivider" );
93
  a.render( c, "Image2", "imageDivider2" );
94
  a.render( c, "Image3", "imageDivider3" );
194
 
195
  // Button
196
  if(id === "button") {
197
+ tinyMCE.activeEditor.selection.setContent('[wc_button type="primary" url="http://webplantmedia.com" title="Visit Site" target="self" position="float"]' + wcDummyContent + '[/wc_button]');
198
  }
199
 
200
 
includes/mce/shortcodes_tinymce.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  class WC_Shortcodes_TinyMCE_Buttons {
3
  function __construct() {
4
- add_action( 'init', array(&$this,'init') );
5
  }
6
  function init() {
7
  if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') )
@@ -15,14 +15,23 @@ class WC_Shortcodes_TinyMCE_Buttons {
15
  }
16
  }
17
  function add_plugin($plugin_array) {
 
18
  $ver = WC_SHORTCODES_VERSION;
19
- $plugin_array['wc_shortcodes'] = plugin_dir_url( __FILE__ ) .'js/shortcodes_tinymce.js?ver=' . $ver;
20
- $plugin_array['wc_font_awesome'] = plugin_dir_url( __FILE__ ) .'js/font_awesome_tinymce.js?ver=' . $ver;
 
 
 
 
 
 
 
 
21
  return $plugin_array;
22
  }
23
  function register_button($buttons) {
24
  array_push($buttons, "wc_shortcodes_button");
25
- array_push($buttons, '|', 'wcfontAwesomeGlyphSelect');
26
 
27
  return $buttons;
28
  }
1
  <?php
2
  class WC_Shortcodes_TinyMCE_Buttons {
3
  function __construct() {
4
+ add_action( 'admin_head', array(&$this,'init') );
5
  }
6
  function init() {
7
  if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') )
15
  }
16
  }
17
  function add_plugin($plugin_array) {
18
+ global $wp_version;
19
  $ver = WC_SHORTCODES_VERSION;
20
+
21
+ // version 3.9 updated to tinymce 4.0
22
+ if ( version_compare( $wp_version, '3.9', '>=' ) ) {
23
+ $plugin_array['wc_shortcodes'] = plugin_dir_url( __FILE__ ) .'js/shortcodes-tinymce-4.js?ver=' . $ver;
24
+ $plugin_array['wc_font_awesome'] = plugin_dir_url( __FILE__ ) .'js/font-awesome-tinymce-4.js?ver=' . $ver;
25
+ }
26
+ else {
27
+ $plugin_array['wc_shortcodes'] = plugin_dir_url( __FILE__ ) .'js/shortcodes_tinymce.js?ver=' . $ver;
28
+ $plugin_array['wc_font_awesome'] = plugin_dir_url( __FILE__ ) .'js/font_awesome_tinymce.js?ver=' . $ver;
29
+ }
30
  return $plugin_array;
31
  }
32
  function register_button($buttons) {
33
  array_push($buttons, "wc_shortcodes_button");
34
+ array_push($buttons, 'wcfontAwesomeGlyphSelect');
35
 
36
  return $buttons;
37
  }
readme.txt CHANGED
@@ -88,6 +88,10 @@ Use the shortcode manager in the TinyMCE text editor
88
 
89
  == Changelog ==
90
 
 
 
 
 
91
  ### Version 1.33
92
 
93
  * Added shortcodes for inserting Font Awesome icons.
88
 
89
  == Changelog ==
90
 
91
+ ### Version 1.34
92
+
93
+ * Updated plugin to be compatible with version 3.9
94
+
95
  ### Version 1.33
96
 
97
  * Added shortcodes for inserting Font Awesome icons.
wc-shortcodes.php CHANGED
@@ -5,11 +5,11 @@ Plugin URI: http://wordpresscanvas.com/features/shortcodes/
5
  Description: A family of shortcodes to enhance site functionality.
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
- Version: 1.33
9
  License: GPLv2 or later
10
  */
11
 
12
- define( 'WC_SHORTCODES_VERSION', '1.33' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
5
  Description: A family of shortcodes to enhance site functionality.
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
+ Version: 1.34
9
  License: GPLv2 or later
10
  */
11
 
12
+ define( 'WC_SHORTCODES_VERSION', '1.34' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );