Astra_Ext_Adv_Search_Markup::add_scripts()
Add Scripts Callback
Description
Source
File: addons/advanced-search/classes/class-astra-ext-adv-search-markup.php
public function add_scripts() { /*** Start Path Logic */ /* Define Variables */ $uri = ASTRA_EXT_ADVANCED_SEARCH_URL . 'assets/js/'; $path = ASTRA_EXT_ADVANCED_SEARCH_DIR . 'assets/js/'; /* Directory and Extension */ $file_prefix = '.min'; $dir_name = 'minified'; if ( SCRIPT_DEBUG ) { $file_prefix = ''; $dir_name = 'unminified'; } $js_uri = $uri . $dir_name . '/'; $js_dir = $path . $dir_name . '/'; if ( defined( 'ASTRA_THEME_HTTP2' ) && ASTRA_THEME_HTTP2 ) { $gen_path = $js_uri; } else { $gen_path = $js_dir; } /*** End Path Logic */ Astra_Minify::add_js( $gen_path . 'advanced-search' . $file_prefix . '.js' ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.4.8 | Introduced. |