Astra_Addon_Offcanvas_Configs::register_configuration( Array $configurations, WP_Customize_Manager $wp_customize )
Register Builder Above 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: classes/builder/type/header/off-canvas/class-astra-addon-offcanvas-configs.php
public function register_configuration( $configurations, $wp_customize ) { $_section = 'section-popup-header-builder'; $_configs = array( /** * Option: Popup Width. */ array( 'name' => ASTRA_THEME_SETTINGS . '[off-canvas-width]', 'section' => $_section, 'priority' => 32, 'transport' => 'postMessage', 'default' => astra_get_option( 'off-canvas-width' ), 'title' => __( 'Popup Width ( % )', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-responsive-slider', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[mobile-header-type]', 'operator' => '==', 'value' => 'off-canvas', ), ), ), ); return array_merge( $configurations, $_configs ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |