/** * Admin functions - Functions that add some functionality to WordPress admin panel * * @package Astra * @since 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Register menus */ if ( ! function_exists( 'astra_register_menu_locations' ) ) { /** * Register menus * * @since 1.0.0 */ function astra_register_menu_locations() { /** * Primary Menus */ register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'astra' ), ) ); if ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) { /** * Register the Secondary & Mobile menus. */ register_nav_menus( array( 'secondary_menu' => esc_html__( 'Secondary Menu', 'astra' ), 'mobile_menu' => esc_html__( 'Off-Canvas Menu', 'astra' ), ) ); $component_limit = defined( 'ASTRA_EXT_VER' ) ? Astra_Builder_Helper::$component_limit : Astra_Builder_Helper::$num_of_header_menu; for ( $index = 3; $index <= $component_limit; $index++ ) { if ( ! is_customize_preview() && ! Astra_Builder_Helper::is_component_loaded( 'menu-' . $index ) ) { continue; } register_nav_menus( array( 'menu_' . $index => esc_html__( 'Menu ', 'astra' ) . $index, ) ); } /** * Register the Account menus. */ register_nav_menus( array( 'loggedin_account_menu' => esc_html__( 'Logged In Account Menu', 'astra' ), ) ); } /** * Footer Menus */ register_nav_menus( array( 'footer_menu' => esc_html__( 'Footer Menu', 'astra' ), ) ); } } add_action( 'init', 'astra_register_menu_locations' ); @import "variables"; @font-face { font-family: 'vcpb-plugin-icons'; src: url('@{icomoon-font-path}/vcpb-plugin-icons.eot?f6ud62'); src: url('@{icomoon-font-path}/vcpb-plugin-icons.eot?f6ud62#iefix') format('embedded-opentype'), url('@{icomoon-font-path}/vcpb-plugin-icons.ttf?f6ud62') format('truetype'), url('@{icomoon-font-path}/vcpb-plugin-icons.woff?f6ud62') format('woff'), url('@{icomoon-font-path}/vcpb-plugin-icons.svg?f6ud62#vcpb-plugin-icons') format('svg'); font-weight: normal; font-style: normal; } .vc-composer-icon { /* use !important to prevent issues with browser extensions that change fonts */ font-family: 'vcpb-plugin-icons' !important; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .vc-c-icon-minimize { &:before { content: @vc-c-icon-minimize; } } .vc-c-icon-close { &:before { content: @vc-c-icon-close; } } .vc-c-icon-1-6_4-6_1-6 { &:before { content: @vc-c-icon-1-6_4-6_1-6; } } .vc-c-icon-add_template { &:before { content: @vc-c-icon-add_template; } } .vc-c-icon-arrow_back { &:before { content: @vc-c-icon-arrow_back; } } .vc-c-icon-arrow_drop_down { &:before { content: @vc-c-icon-arrow_drop_down; } } .vc-c-icon-arrow_drop_up { &:before { content: @vc-c-icon-arrow_drop_up; } } .vc-c-icon-arrow_forward { &:before { content: @vc-c-icon-arrow_forward; } } .vc-c-icon-check { &:before { content: @vc-c-icon-check; } } .vc-c-icon-arrow_upward { &:before { content: @vc-c-icon-arrow_upward; } } .vc-c-icon-arrow_downward { &:before { content: @vc-c-icon-arrow_downward; } } .vc-c-icon-sync { &:before { content: @vc-c-icon-sync; } } .vc-c-icon-search { &:before { content: @vc-c-icon-search; } } .vc-c-icon-1-1 { &:before { content: @vc-c-icon-1-1; } } .vc-c-icon-1-2_1-2 { &:before { content: @vc-c-icon-1-2_1-2; } } .vc-c-icon-1-3_1-3_1-3 { &:before { content: @vc-c-icon-1-3_1-3_1-3; } } .vc-c-icon-1-4_1-2_1-4 { &:before { content: @vc-c-icon-1-4_1-2_1-4; } } .vc-c-icon-1-4_1-4_1-4_1-4 { &:before { content: @vc-c-icon-1-4_1-4_1-4_1-4; } } .vc-c-icon-1-4_3-4 { &:before { content: @vc-c-icon-1-4_3-4; } } .vc-c-icon-1-6_1-6_1-6_1-2 { &:before { content: @vc-c-icon-1-6_1-6_1-6_1-2; } } .vc-c-icon-1-6_1-6_1-6_1-6_1-6_1-6 { &:before { content: @vc-c-icon-1-6_1-6_1-6_1-6_1-6_1-6; } } .vc-c-icon-l_15_15_15_15_15 { &:before { content: @vc-c-icon-l_15_15_15_15_15; } } .vc-c-icon-1-6_2-3_1-6 { &:before { content: @vc-c-icon-1-6_2-3_1-6; } } .vc-c-icon-2-3_1-3 { &:before { content: @vc-c-icon-2-3_1-3; } } .vc-c-icon-5-6_1-6 { &:before { content: @vc-c-icon-5-6_1-6; } } .vc-c-icon-add_element { &:before { content: @vc-c-icon-add_element; } } .vc-c-icon-add { &:before { content: @vc-c-icon-add; } } .vc-c-icon-cog { &:before { content: @vc-c-icon-cog; } } .vc-c-icon-content_copy { &:before { content: @vc-c-icon-content_copy; } } .vc-c-icon-delete_empty { &:before { content: @vc-c-icon-delete_empty; } } .vc-c-icon-dragndrop { &:before { content: @vc-c-icon-dragndrop; } } .vc-c-icon-fullscreen_exit { &:before { content: @vc-c-icon-fullscreen_exit; } } .vc-c-icon-fullscreen { &:before { content: @vc-c-icon-fullscreen; } } .vc-c-icon-arrow_drop_right { &:before { content: @vc-c-icon-arrow_drop_right; } } .vc-c-icon-layout_default { &:before { content: @vc-c-icon-layout_default; } } .vc-c-icon-layout_landscape-smartphones { &:before { content: @vc-c-icon-layout_landscape-smartphones; } } .vc-c-icon-layout_landscape-tablets { &:before { content: @vc-c-icon-layout_landscape-tablets; } } .vc-c-icon-layout_portrait-smartphones { &:before { content: @vc-c-icon-layout_portrait-smartphones; } } .vc-c-icon-layout_portrait-tablets { &:before { content: @vc-c-icon-layout_portrait-tablets; } } .vc-c-icon-mode_edit { &:before { content: @vc-c-icon-mode_edit; } } .vc-c-icon-row_default_fe { &:before { content: @vc-c-icon-row_default_fe; } } .vc-c-icon-text-block { &:before { content: @vc-c-icon-text-block; } }