Astra_Minify::add_fronted_pro_script()

Load Addon ddependent JS related to toggle navigation menu.


Description


Source

File: classes/class-astra-minify.php

		public static function add_fronted_pro_script() {
			/* Define Variables */
			$uri  = ASTRA_EXT_URI . 'assets/js/';
			$path = ASTRA_EXT_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 */
			self::add_js( $gen_path . 'frontend-pro' . $file_prefix . '.js' );
		}

Changelog

Changelog
Version Description
3.5.9 Introduced.

User Contributed Notes

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