ASTRA_THEME_SETTINGS . '[sidebar-spacing-divider]', 'section' => 'section-sidebars', 'title' => __( 'Sidebar Spacing', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 25, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option - Sidebar Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[sidebar-outside-spacing]', 'default' => astra_get_option( 'sidebar-outside-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-sidebars', 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'priority' => 25, 'title' => __( 'Outside', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'divider' => array( 'ast_class' => 'ast-bottom-section-divider ast-section-spacing' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option - Two Boxed Sidebar Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[sidebar-inside-spacing]', 'default' => astra_get_option( 'sidebar-inside-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-sidebars', 'priority' => 25, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'title' => __( 'Inside', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), ); if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $_configs[] = array( 'name' => 'section-sidebars-ast-context-tabs', 'section' => 'section-sidebars', 'type' => 'control', 'control' => 'ast-builder-header-control', 'priority' => 0, 'description' => '', ); } return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Sidebar_Spacing_Configs();