Astra_Ext_Footer_Button_Component_Loader::preview_scripts()
Customizer Preview
Description
Source
File: classes/builder/type/footer/button/classes/class-astra-ext-footer-button-component-loader.php
public function preview_scripts() { /** * Load unminified if SCRIPT_DEBUG is true. */ /* Directory and Extension */ $dir_name = ( SCRIPT_DEBUG ) ? 'unminified' : 'minified'; $file_prefix = ( SCRIPT_DEBUG ) ? '' : '.min'; wp_enqueue_script( 'astra-ext-footer-button-customizer-preview-js', ASTRA_EXT_FOOTER_BUTTON_URI . '/assets/js/' . $dir_name . '/customizer-preview' . $file_prefix . '.js', array( 'customize-preview', 'ahfb-addon-base-customizer-preview' ), ASTRA_EXT_VER, true ); // Localize variables for button JS. wp_localize_script( 'astra-ext-footer-button-customizer-preview-js', 'AstraAddonFooterButtonData', array( 'component_limit' => astra_addon_builder_helper()->component_limit, ) ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |