This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Astra_Header_Builder_Typo_Configs::get_widget_typo_configs_by_builder_type( string $_section, string $_prefix )
Get the widget configs for the typos by builder.
Description
Parameters
- $_section
-
(string) (Required) section id.
- $_prefix
-
(string) (Required) sub control.
Return
(array)
Source
File: addons/typography/classes/sections/class-astra-header-builder-typo-configs.php
private function get_widget_typo_configs_by_builder_type( $_section, $_prefix ) { return array( /** * Option: Header Widget Titles Font Family */ array( 'name' => $_prefix . '-font-family', 'default' => astra_get_option( $_prefix . '-font-family' ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-text-typography]', 'type' => 'sub-control', 'section' => $_section, 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'title' => __( 'Family', 'astra-addon' ), 'context' => astra_addon_builder_helper()->general_tab, 'connect' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-font-weight]', 'priority' => 1, ), /** * Option: Header Widget Title Font Weight */ array( 'name' => $_prefix . '-font-weight', 'default' => astra_get_option( $_prefix . '-font-weight' ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-text-typography]', 'type' => 'sub-control', 'section' => $_section, 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'title' => __( 'Weight', 'astra-addon' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'connect' => $_prefix . '-font-family', 'priority' => 3, 'context' => astra_addon_builder_helper()->general_tab, ), /** * Option: Header Widget Title Text Transform */ array( 'name' => $_prefix . '-text-transform', 'default' => astra_get_option( $_prefix . '-text-transform' ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-text-typography]', 'transport' => 'postMessage', 'title' => __( 'Text Transform', 'astra-addon' ), 'type' => 'sub-control', 'section' => $_section, 'control' => 'ast-select', 'priority' => 3, 'context' => astra_addon_builder_helper()->general_tab, 'choices' => array( '' => __( 'Inherit', 'astra-addon' ), 'none' => __( 'None', 'astra-addon' ), 'capitalize' => __( 'Capitalize', 'astra-addon' ), 'uppercase' => __( 'Uppercase', 'astra-addon' ), 'lowercase' => __( 'Lowercase', 'astra-addon' ), ), ), /** * Option: Header Widget Title Line Height */ array( 'name' => $_prefix . '-line-height', 'default' => astra_get_option( $_prefix . '-line-height' ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-text-typography]', 'control' => 'ast-slider', 'transport' => 'postMessage', 'type' => 'sub-control', 'section' => $_section, 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'title' => __( 'Line Height', 'astra-addon' ), 'suffix' => 'em', 'context' => astra_addon_builder_helper()->general_tab, 'priority' => 4, 'input_attrs' => array( 'min' => 1, 'step' => 0.01, 'max' => 5, ), ), /** * Option: Header Widget Title Letter Spacing */ array( 'name' => $_prefix . '-letter-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-text-typography]', 'control' => 'ast-slider', 'transport' => 'postMessage', 'type' => 'sub-control', 'default' => astra_get_option( $_prefix . '-letter-spacing' ), 'section' => $_section, 'title' => __( 'Letter Spacing', 'astra-addon' ), 'suffix' => 'px', 'priority' => 5, 'context' => astra_addon_builder_helper()->general_tab, 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 100, ), ), /** * Option: Header Widget Content Font Family */ array( 'name' => $_prefix . '-content-font-family', 'default' => astra_get_option( $_prefix . '-content-font-family' ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-content-typography]', 'type' => 'sub-control', 'section' => $_section, 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'title' => __( 'Family', 'astra-addon' ), 'context' => astra_addon_builder_helper()->general_tab, 'connect' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-content-font-weight]', 'priority' => 1, ), /** * Option: Header Widget Content Font Weight */ array( 'name' => $_prefix . '-content-font-weight', 'default' => astra_get_option( $_prefix . '-content-font-weight' ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-content-typography]', 'type' => 'sub-control', 'section' => $_section, 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'title' => __( 'Weight', 'astra-addon' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'connect' => $_prefix . '-content-font-family', 'priority' => 3, 'context' => astra_addon_builder_helper()->general_tab, ), /** * Option: Header Widget Content Text Transform */ array( 'name' => $_prefix . '-content-transform', 'default' => astra_get_option( $_prefix . '-content-transform' ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-content-typography]', 'transport' => 'postMessage', 'title' => __( 'Text Transform', 'astra-addon' ), 'type' => 'sub-control', 'section' => $_section, 'control' => 'ast-select', 'priority' => 3, 'context' => astra_addon_builder_helper()->general_tab, 'choices' => array( '' => __( 'Inherit', 'astra-addon' ), 'none' => __( 'None', 'astra-addon' ), 'capitalize' => __( 'Capitalize', 'astra-addon' ), 'uppercase' => __( 'Uppercase', 'astra-addon' ), 'lowercase' => __( 'Lowercase', 'astra-addon' ), ), ), /** * Option: Header Widget Content Line Height */ array( 'name' => $_prefix . '-content-line-height', 'default' => astra_get_option( $_prefix . '-content-line-height' ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-content-typography]', 'control' => 'ast-slider', 'transport' => 'postMessage', 'type' => 'sub-control', 'section' => $_section, 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'title' => __( 'Line Height', 'astra-addon' ), 'suffix' => 'em', 'context' => astra_addon_builder_helper()->general_tab, 'priority' => 4, 'input_attrs' => array( 'min' => 1, 'step' => 0.01, 'max' => 5, ), ), /** * Option: Header Widget Content Letter Spacing */ array( 'name' => $_prefix . '-content-letter-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $_prefix . '-content-typography]', 'control' => 'ast-slider', 'transport' => 'postMessage', 'type' => 'sub-control', 'default' => astra_get_option( $_prefix . '-content-letter-spacing' ), 'section' => $_section, 'title' => __( 'Letter Spacing', 'astra-addon' ), 'suffix' => 'px', 'priority' => 5, 'context' => astra_addon_builder_helper()->general_tab, 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 100, ), ), ); }
Expand full source code Collapse full source code View on Trac