PUM_Admin_Shortcode_UI::enqueue_scripts()
Enqueues needed assets.
Description Description
Source Source
File: classes/Admin/Shortcode/UI.php
public static function enqueue_scripts() { // Register editor styles. add_editor_style( PUM_Admin_Assets::$css_url . 'pum-admin-editor-styles' . PUM_Admin_Assets::$suffix . '.css' ); wp_enqueue_style( 'pum-admin-shortcode-ui' ); wp_enqueue_script( 'pum-admin-shortcode-ui' ); wp_localize_script( 'pum-admin-shortcode-ui', 'pum_shortcode_ui_vars', apply_filters( 'pum_shortcode_ui_vars', array( 'nonce' => wp_create_nonce( "pum-shortcode-ui-nonce" ), 'I10n' => array( 'insert' => __( 'Insert', 'popup-maker' ), 'cancel' => __( 'Cancel', 'popup-maker' ), 'shortcode_ui_button_tooltip' => __( 'Popup Maker Shortcodes', 'popup-maker' ), 'error_loading_shortcode_preview' => __( 'There was an error in generating the preview', 'popup-maker' ), ), 'shortcodes' => self::shortcode_ui_var(), ) ) ); }
Expand full source code Collapse full source code View on Trac