Astra_Sticky_Header_Language_Switcher_Configs::register_configuration( Array $configurations, WP_Customize_Manager $wp_customize )
Register Sticky Header Colors Customizer Configurations.
Description
Parameters
- $configurations
-
(Array) (Required) Astra Customizer Configurations.
- $wp_customize
-
(WP_Customize_Manager) (Required) instance of WP_Customize_Manager.
Return
(Array) Astra Customizer Configurations with updated configurations.
Source
File: addons/sticky-header/classes/sections/class-astra-sticky-header-language-switcher-configs.php
public function register_configuration( $configurations, $wp_customize ) { $_section = 'section-hb-language-switcher'; $_configs = array( /** * Option: Sticky Header language-switcher Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-language-switcher-heading]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $_section, 'title' => __( 'Sticky Header Option', 'astra-addon' ), 'settings' => array(), 'priority' => 110, 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[header-language-switcher-show-name]', 'operator' => '==', 'value' => true, ), astra_addon_builder_helper()->design_tab_config, ), ), /** * Option: language-switcher Color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-language-switcher-color]', 'default' => astra_get_option( 'sticky-header-language-switcher-color' ), 'type' => 'control', 'section' => $_section, 'priority' => 120, 'transport' => 'postMessage', 'control' => 'ast-color', 'title' => __( 'Color', 'astra-addon' ), 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[header-language-switcher-show-name]', 'operator' => '==', 'value' => true, ), astra_addon_builder_helper()->design_tab_config, ), 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), ), ); return array_merge( $configurations, $_configs ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |