Astra_Ext_Nav_Menu_Loader::add_styles()
Add Styles
Description
Return
(void)
Source
File: addons/nav-menu/classes/class-astra-ext-nav-menu-loader.php
public function add_styles() { /*** Start Path Logic */ /* Define Variables */ $uri = ASTRA_EXT_NAV_MENU_URL . 'assets/css/'; $path = ASTRA_EXT_NAV_MENU_DIR . '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 . '/'; $css_dir = $path . $dir_name . '/'; if ( defined( 'ASTRA_THEME_HTTP2' ) && ASTRA_THEME_HTTP2 ) { $gen_path = $css_uri; } else { $gen_path = $css_dir; } Astra_Minify::add_css( $gen_path . 'mega-menu' . $file_prefix . '.css' ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |