Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ()
- {
- tinymce.PluginManager.add('wpsynergyShortcodes', function(ed, url) {
- ed.addCommand("wpsynergyPopup", function ( a, params )
- {
- //var popup = 'shortcode-generator';
- if(typeof params != 'undefined' && params.identifier) {
- popup = params.identifier;
- }
- jQuery('#TB_window').hide();
- // load thickbox
- tb_show("Insert wpsynergy Shortcode", url + "/popup.php?popup=" + popup + "&width=" + 800);
- });
- // Add a button that opens a window
- ed.addButton('wpsynergy_button', {
- text: '',
- icon: false,
- image: wpsynergyShortcodes.plugin_folder +"/tinymce/images/icon.png",
- cmd: 'wpsynergyPopup',
- type: 'splitbutton',
- onclick : function(e) {},
- menu: [
- {text: 'List posts',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'List posts',identifier: 'list-posts'})
- }},
- {text: 'List categories',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'List categories',identifier: 'list-categories'})
- }},
- {text: 'Team members',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Team members',identifier: 'team_member'})
- }},
- {text: 'Testimonials',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Testimonials',identifier: 'testimonials'})
- }},
- {text: 'Capabilities',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Capabilities',identifier: 'capabilities'})
- }},
- {text: 'Service Boxes',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Service Boxes',identifier: 'services'})
- }},
- {text: 'Price table',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Price table',identifier: 'price_table'})
- }},
- {text: 'Row',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Row',identifier: 'row'})
- }},
- {text: 'Contact form',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Contact form',identifier: 'contact_form'})
- }},
- {text: 'Alerts',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Alerts',identifier: 'alert'})
- }},
- {text: 'Buttons',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Buttons',identifier: 'button'})
- }},
- {text: 'Columns',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Columns',identifier: 'columns'})
- }},
- {text: 'Tabs',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Tabs',identifier: 'tabs'})
- }},
- {text: 'Accordion',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Accordion',identifier: 'accordion'})
- }},
- {text: 'Toggle',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Toggle',identifier: 'toggle'})
- }},
- {text: 'Font Icon',onclick:function(){
- ed.execCommand("wpsynergyPopup", false, {title: 'Font Icon',identifier: 'font-icon'})
- }},
- ]
- });
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement