// closure to avoid namespace collision (function(){ tinymce.create('tinymce.plugins.thundercodes', { createControl: function(n, cm) { switch (n) { case 'thundercodes_button': var c = cm.createSplitButton('thundercodes_button', { title : 'ThunderCodes', image : 'http://fightforthesoulofthecities.com/wp-content/themes/skybox/style/images/thunder_icon.png', }); c.onRenderMenu.add(function(c, m) { m.add({title : 'ThunderCodes', 'class' : 'mceMenuItemTitle'}).setDisabled(1); m.add({title : 'Button', onclick : function() { callshortcode("button"); }}); m.add({title : 'Intro Text', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[intro]YOUR_TEXT_HERE[/intro]'); }}); m.add({title : 'Divider', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[divider]'); }}); m.add({title : 'Dropcap', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[dropcap]C[/dropcap]'); }}); m.add({title : 'Box', onclick : function() { callshortcode("box"); }}); m.add({title : 'Highlight', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[highlight]YOUR_HIGHLIGHTED_TEXT[/highlight]'); }}); m.add({title : 'Codebox', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[codebox]YOUR_CODE[/codebox]'); }}); m.add({title : 'Sup Text', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[sup]YOUR_SUP_TEXT[/sup]'); }}); m.add({title : 'Sub Text', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[sub]YOUR_SUB_TEXT[/sub]'); }}); m.add({title : 'Cite Text', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[cite]YOUR_CITE_TEXT[/cite]'); }}); m.add({title : 'Abbr Text', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[abbr title="abbr explanation"]YOUR_ABBR_TEXT[/abbr]'); }}); m.add({title : 'HeadSubline', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[headsubline subline="YOUR_SUBLINE_TEXT"]>YOUR_HEADLINE_TEXT[/headsubline]'); }}); m.add({title : 'Latest Posts', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[latest_posts number="2"]'); }}); m.add({title : 'Latest Projects Slider', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[latest_projects_slider title="YOUR_TITLE" cat_slugs="CATEGORY_SLUGS" number=12]'); }}); m.add({title : 'Latest Projects Carousel', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[latest_projects_carousel title="YOUR_TITLE" cat_slugs="CATEGORY_SLUGS" number=12]'); }}); m.add({title : 'Tabs', onclick : function() { callshortcode("tabs"); }}); m.add({title : 'Toggle', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[toggle title="YOUR_TOGGLE_TITLE"]YOUR_TOGGLE_CONTENT[/toggle]'); }}); m.add({title : 'Socialbar', onclick : function() { callshortcode("socialbar"); }}); m.add({title : 'Testimonials', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[testimonials]
[quote author="AUTHOR_NAME"]THE_TEXT[/quote]
[quote author="AUTHOR_NAME"]THE_TEXT[/quote][/testimonials]'); }}); m.add({title : 'Twitter', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[twitter user="TWITTER_ACCOUNT" number="3"]'); }}); m.add({title : 'Facebook Page', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[facebook_page url="URL_FACEBOOK_PAGE"]'); }}); m.add({title : 'Dribbble', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[dribbble user="DRIBBBLE_USER" number=20]'); }}); m.add({title : 'flickr', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[flickr user_id="FLICKRUSER@N00" number=15]'); }}); m.add({title : 'Portfolio Info', onclick : function() { tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '[portfolio_info_set]
[portfolio_info title="Date:"]July 2, 2026[/portfolio_info]
[portfolio_info title="Categories:"]Category 1, Category 2[/portfolio_info]
[portfolio_info title="Client:"]ThunderBuddies[/portfolio_info]
[portfolio_info title="Link:"]http://themes.thunderbuddies4life.com[/portfolio_info][/portfolio_info_set]'); }}); }); // Return the new splitbutton instance return c; } return null; } }); tinymce.PluginManager.add('thundercodes', tinymce.plugins.thundercodes); function callshortcode(thundershortcode){ switch (thundershortcode) { case "button": var form = jQuery('
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \

\ The link a button sends you when clicking

\ Where should the link be opened?

\ Select the hover Color

\ Text on the button
\

\ \

\
'); thunder_options = Array("link","target","color"); thunder_shortcode = "[button {{link}} {{target}} {{color}}]YOUR_BUTTON_TEXT[/button]"; H = 294; break; case "box": var form = jQuery('
\ \ \ \ \

\ Define the display style of the Box
\

\ \

\
'); thunder_options = Array("style"); thunder_shortcode = "[box {{style}}]YOUR_BOX_TEXT[/box]"; H = 110; break; case "projects": var form = jQuery('
\ \ \