Esempio n. 1
0
/**
 * Adds js variable required for shortcodes.
 * 
 * @see before_wp_tiny_mce
 * @since 1.1.0
 */
function opanda_tinymce_data()
{
    // styles for the plugin shorcodes
    $shortcodeIcon = BizPanda::getShortCodeIcon();
    $shortcodeTitle = strip_tags(BizPanda::getMenuTitle());
    ?>
    <style>
        i.onp-sl-shortcode-icon {
            background: url("<?php 
    echo $shortcodeIcon;
    ?>
");
        }
    </style>
    <script>
        var bizpanda_shortcode_title = '<?php 
    echo $shortcodeTitle;
    ?>
';
    </script>
    <?php 
}