Astra_Sticky_Header_Toggle_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-toggle-configs.php
public function register_configuration( $configurations, $wp_customize ) { $_section = 'section-header-mobile-trigger'; $_configs = array( /** * Option: Sticky Header divider Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-toggle-design-heading]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $_section, 'title' => __( 'Sticky Header Option', 'astra-addon' ), 'settings' => array(), 'priority' => 110, 'context' => astra_addon_builder_helper()->design_tab, ), /** * Option: Toggle Button Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-toggle-btn-color]', 'default' => astra_get_option( 'sticky-header-toggle-btn-color' ), 'type' => 'control', 'control' => 'ast-color', 'title' => __( 'Color', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 115, 'context' => astra_addon_builder_helper()->design_tab, ), /** * Option: Toggle Button Bg Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-toggle-btn-bg-color]', 'default' => astra_get_option( 'sticky-header-toggle-btn-bg-color' ), 'type' => 'control', 'control' => 'ast-color', 'title' => __( 'Background Color', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 120, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-style]', 'operator' => '==', 'value' => 'fill', ), ), ), /** * Option: Toggle Button Border Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-toggle-border-color]', 'default' => astra_get_option( 'sticky-header-toggle-border-color' ), 'type' => 'control', 'control' => 'ast-color', 'title' => __( 'Border Color', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 125, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-style]', 'operator' => '==', 'value' => 'outline', ), ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |