Google

Cyb3r Drag0nz Team Shell

Server : Apache
System : Linux webd003.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : atwiofrxug (73666)
PHP Version : 8.4.10
Disable Functions : _dyuweyrj4,_dyuweyrj4r,dl
Current Directory : /home/atwiofrxug/mylittletelaviv/wp-content/plugins/popup-maker/assets/js/
Directory Status: Writeable | Document Root: Writeable

Upload File







Viewing: /home/atwiofrxug/mylittletelaviv/wp-content/plugins/popup-maker/assets/js/mce-buttons.js

(function ($, tinymce) {
    "use strict";

    // Failsafe in case variables were not properly declared on page.
    if (typeof pum_shortcode_ui_vars === 'undefined') {
        return;
    }

    tinymce.PluginManager.add('pum_shortcodes', function (editor) {
        var shortcodes = pum_shortcode_ui_vars.shortcodes || {},
            menuItems = [];

        _.each(shortcodes, function (args, tag) {
            menuItems.push({
                text: args.label,
                value: tag,
                onclick: function () {
                    var values = {},
                        shortcode,
                        text = "[" + tag + "]",
                        options = {};

                    if (args.has_content) {
                        text += editor.selection.getContent() + "[/" + tag + "]";
                    }

                    shortcode = wp.mce.views.get(tag);

                    options.text = text;
                    options.encodedText = encodeURIComponent(text);

                    shortcode = new shortcode(options);

                    shortcode.renderForm(values, function (content) {
                        send_to_editor(content);
                    });
                }
            });
        });

        editor.addButton('pum_shortcodes', {
            type: 'menubutton',
            icon: 'pum_shortcodes',
            tooltip: pum_shortcode_ui_vars.I10n.shortcode_ui_button_tooltip || '',
            menu: menuItems
        });
    });

}(jQuery, tinymce || {}));

Cyb3r Drag0nz Team • Google Edition