__( 'Dropdown', 'astra-addon' ), 'flyout' => __( 'Flyout', 'astra-addon' ), 'fullscreen' => __( 'Full-Screen', 'astra-addon' ), 'no-toggle' => __( 'No Toggle (Deprecated)', 'astra-addon' ), ); $menu_style_description = __( 'No Toggle style will no longer supported. We recommend you to choose different menu style.', 'astra-addon' ); } else { $menu_style_choices = array( 'default' => __( 'Dropdown', 'astra-addon' ), 'flyout' => __( 'Flyout', 'astra-addon' ), 'fullscreen' => __( 'Full-Screen', 'astra-addon' ), ); $menu_style_description = __( 'No Toggle option has been deprecated.', 'astra-addon' ); } $configs = array( /** * Option: Mobile Menu Style */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-menu-style]', 'type' => 'control', 'control' => 'ast-select', 'section' => 'section-primary-menu', 'default' => astra_get_option( 'mobile-menu-style' ), 'title' => __( 'Menu Style', 'astra-addon' ), 'priority' => 40, 'choices' => $menu_style_choices, 'description' => $menu_style_description, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[disable-primary-nav]', 'operator' => '!=', 'value' => '1', ), ), ), /** * Option: Mobile Menu Style - Flyout alignments */ array( 'name' => ASTRA_THEME_SETTINGS . '[flyout-mobile-menu-alignment]', 'section' => 'section-primary-menu', 'title' => __( 'Flyout Menu Alignment', 'astra-addon' ), 'default' => astra_get_option( 'flyout-mobile-menu-alignment' ), 'type' => 'control', 'control' => 'ast-select', 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[mobile-menu-style]', 'operator' => '==', 'value' => 'flyout', ), ), 'priority' => 41, 'choices' => array( 'left' => __( 'Left', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), ), ), /** * Option - Header Menu Border */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-menu-all-border]', 'section' => 'section-primary-menu', 'type' => 'control', 'control' => 'ast-border', 'default' => astra_get_option( 'mobile-header-menu-all-border' ), 'transport' => 'postMessage', 'title' => __( 'Border for Menu Items', 'astra-addon' ), 'linked_choices' => true, 'priority' => 65, 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option: Mobile Header Menu Border Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-menu-b-color]', 'section' => 'section-primary-menu', 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Border Color', 'astra-addon' ), 'default' => astra_get_option( 'mobile-header-menu-b-color', '#dadada' ), 'transport' => 'postMessage', 'priority' => 68, ), ); return array_merge( $configurations, $configs ); } } } new Astra_Customizer_Mobile_Header_Configs();