Astra_Addon_Customizer::preview_helper_scripts()
Enqueue preview helper scripts for the customizer.
Description
Source
File: classes/customizer/class-astra-addon-customizer.php
public function preview_helper_scripts() {
$script_handle = 'astra-addon-customizer-preview-helper';
$folder = SCRIPT_DEBUG ? 'unminified' : 'minified';
$prefix = SCRIPT_DEBUG ? '.js' : '.min.js';
wp_enqueue_script(
$script_handle,
ASTRA_EXT_URI . 'classes/customizer/assets/js/' . $folder . '/customizer-preview-helper' . $prefix,
array( 'customize-preview' ),
ASTRA_EXT_VER,
true
);
wp_localize_script(
$script_handle,
'astraPreviewHelper',
array(
'tabletBreakPoint' => astra_addon_get_tablet_breakpoint(),
'mobileBreakPoint' => astra_addon_get_mobile_breakpoint(),
)
);
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.10.0 | Introduced. |