From 9d4123cee1867ee7199b06bdc92d40611f547ecc Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Wed, 21 Jul 2021 14:54:07 -0500 Subject: Initial unmodified import from Astra (Version: 3.6.5) @ /wp-content/themes/astra/. --- ...class-astra-customizer-below-header-configs.php | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 inc/customizer/configurations/builder/header/class-astra-customizer-below-header-configs.php (limited to 'inc/customizer/configurations/builder/header/class-astra-customizer-below-header-configs.php') diff --git a/inc/customizer/configurations/builder/header/class-astra-customizer-below-header-configs.php b/inc/customizer/configurations/builder/header/class-astra-customizer-below-header-configs.php new file mode 100644 index 0000000..625b1cb --- /dev/null +++ b/inc/customizer/configurations/builder/header/class-astra-customizer-below-header-configs.php @@ -0,0 +1,148 @@ + $_section, + 'type' => 'section', + 'title' => __( 'Below Header', 'astra' ), + 'panel' => 'panel-header-builder-group', + 'priority' => 30, + ), + + /** + * Option: Header Builder Tabs + */ + array( + 'name' => $_section . '-ast-context-tabs', + 'section' => $_section, + 'type' => 'control', + 'control' => 'ast-builder-header-control', + 'priority' => 0, + 'description' => '', + ), + + // Section: Below Header Height. + array( + 'name' => ASTRA_THEME_SETTINGS . '[hbb-header-height]', + 'section' => $_section, + 'transport' => 'postMessage', + 'default' => astra_get_option( 'hbb-header-height' ), + 'priority' => 30, + 'title' => __( 'Height', 'astra' ), + 'type' => 'control', + 'control' => 'ast-responsive-slider', + 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), + 'suffix' => 'px', + 'input_attrs' => array( + 'min' => 30, + 'step' => 1, + 'max' => 600, + ), + 'context' => Astra_Builder_Helper::$general_tab, + ), + + // Section: Below Header Border. + array( + 'name' => ASTRA_THEME_SETTINGS . '[hbb-header-separator]', + 'section' => $_section, + 'priority' => 40, + 'transport' => 'postMessage', + 'default' => astra_get_option( 'hbb-header-separator' ), + 'title' => __( 'Bottom Border Size', 'astra' ), + 'type' => 'control', + 'control' => 'ast-slider', + 'suffix' => 'px', + 'input_attrs' => array( + 'min' => 0, + 'step' => 1, + 'max' => 10, + ), + 'context' => Astra_Builder_Helper::$design_tab, + ), + + // Section: Below Header Border Color. + array( + 'name' => ASTRA_THEME_SETTINGS . '[hbb-header-bottom-border-color]', + 'transport' => 'postMessage', + 'default' => astra_get_option( 'hbb-header-bottom-border-color' ), + 'type' => 'control', + 'control' => 'ast-color', + 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), + 'section' => $_section, + 'priority' => 50, + 'title' => __( 'Bottom Border Color', 'astra' ), + 'context' => array( + array( + 'setting' => ASTRA_THEME_SETTINGS . '[hbb-header-separator]', + 'operator' => '>=', + 'value' => 1, + ), + Astra_Builder_Helper::$design_tab_config, + ), + 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), + ), + + // Option: Below Header Background styling. + array( + 'name' => ASTRA_THEME_SETTINGS . '[hbb-header-bg-obj-responsive]', + 'type' => 'control', + 'section' => $_section, + 'control' => 'ast-responsive-background', + 'transport' => 'postMessage', + 'default' => astra_get_option( 'hbb-header-bg-obj-responsive' ), + 'title' => __( 'Background', 'astra' ), + 'priority' => 70, + 'context' => Astra_Builder_Helper::$design_tab, + ), + ); + + $_configs = array_merge( $_configs, Astra_Builder_Base_Configuration::prepare_advanced_tab( $_section ) ); + + $_configs = array_merge( $_configs, Astra_Builder_Base_Configuration::prepare_visibility_tab( $_section ) ); + + return array_merge( $configurations, $_configs ); + } + } + + /** + * Kicking this off by creating object of this class. + */ + new Astra_Customizer_Below_Header_Configs(); +} -- cgit v1.2.3-60-g2f50