Astra_Extended_Base_Configuration::prepare_advanced_tab( string $section_id, string $heading_class = 'ast-top-section-divider' )
Prepare Advance header configuration.
Description
Parameters
- $section_id
-
(string) (Required) Section ID.
- $heading_class
-
(string) (Optional) Heading class. Defaults to 'ast-top-section-divider'.
Default value: 'ast-top-section-divider'
Return
(array)
Source
File: inc/customizer/class-astra-extended-base-configuration.php
public static function prepare_advanced_tab( $section_id ) {
return array(
/**
* Option: Divider
*/
array(
'name' => ASTRA_THEME_SETTINGS . '[' . $section_id . '-divider]',
'section' => $section_id,
'title' => __( 'Spacing', 'astra' ),
'type' => 'control',
'control' => 'ast-heading',
'priority' => 210,
'settings' => array(),
'context' => Astra_Builder_Helper::$design_tab,
'divider' => array( 'ast_class' => 'ast-top-section-spacing' ),
),
/**
* Option: Padded Layout Custom Width
*/
array(
'name' => ASTRA_THEME_SETTINGS . '[' . $section_id . '-padding]',
'default' => astra_get_option( $section_id . '-padding' ),
'type' => 'control',
'transport' => 'postMessage',
'control' => 'ast-responsive-spacing',
'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ),
'section' => $section_id,
'priority' => 210,
'title' => __( 'Padding', 'astra' ),
'linked_choices' => true,
'unit_choices' => array( 'px', 'em', '%' ),
'choices' => array(
'top' => __( 'Top', 'astra' ),
'right' => __( 'Right', 'astra' ),
'bottom' => __( 'Bottom', 'astra' ),
'left' => __( 'Left', 'astra' ),
),
'context' => Astra_Builder_Helper::$design_tab,
'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-section-divider' ),
),
/**
* Option: Padded Layout Custom Width
*/
array(
'name' => ASTRA_THEME_SETTINGS . '[' . $section_id . '-margin]',
'default' => astra_get_option( $section_id . '-margin' ),
'type' => 'control',
'transport' => 'postMessage',
'control' => 'ast-responsive-spacing',
'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ),
'section' => $section_id,
'priority' => 220,
'title' => __( 'Margin', 'astra' ),
'linked_choices' => true,
'unit_choices' => array( 'px', 'em', '%' ),
'choices' => array(
'top' => __( 'Top', 'astra' ),
'right' => __( 'Right', 'astra' ),
'bottom' => __( 'Bottom', 'astra' ),
'left' => __( 'Left', 'astra' ),
),
'context' => Astra_Builder_Helper::$design_tab,
),
);
}
Expand full source code Collapse full source code View on Trac