Astra_Ext_Edd_Loader::preview_scripts()

Customizer Controls


Description

See also


Source

File: addons/edd/classes/class-astra-ext-edd-loader.php

		public function preview_scripts() {

			if ( SCRIPT_DEBUG ) {
				$js_path = 'assets/js/unminified/customizer-preview.js';
			} else {
				$js_path = 'assets/js/minified/customizer-preview.min.js';
			}

			wp_enqueue_script( 'ast-edd-customizer-preview', ASTRA_EXT_EDD_URI . $js_path, array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true );
			if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) {

				wp_localize_script(
					'ast-edd-customizer-preview',
					'astAddonTabletBreakpoint',
					array(
						'value' => astra_addon_get_tablet_breakpoint( '', 1 ),
					)
				);
			}
		}


User Contributed Notes

You must log in before being able to contribute a note or feedback.