Astra_Ext_Adv_Search_Shortcodes::enqueue_scripts()

Enqueue scripts


Description


Return

(void)


Source

File: addons/advanced-search/classes/class-astra-ext-adv-search-shortcodes.php

		public function enqueue_scripts() {

			/* Define Variables */
			$uri = ASTRA_EXT_ADVANCED_SEARCH_URL . 'assets/css/';
			$rtl = '';

			if ( is_rtl() ) {
				$rtl = '-rtl';
			}

			/* Directory and Extension */
			$file_prefix = $rtl . '.min';
			$dir_name    = 'minified';

			if ( SCRIPT_DEBUG ) {
				$file_prefix = $rtl;
				$dir_name    = 'unminified';
			}

			$css_uri = $uri . $dir_name . '/';

			/*** End Path Logic */

			wp_register_style( 'advanced-search-shortcode', $css_uri . 'advanced-search-shortcode' . $file_prefix . '.css', array(), ASTRA_EXT_VER );
		}

Changelog

Changelog
Version Description
1.4.8 Introduced.

User Contributed Notes

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