Astra_Site_Layout_Configs::register_configuration( Array $configurations, WP_Customize_Manager $wp_customize )
Register Site Layout 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: inc/customizer/configurations/layout/class-astra-site-layout-configs.php
public function register_configuration( $configurations, $wp_customize ) { $_configs = array( array( 'name' => ASTRA_THEME_SETTINGS . '[site-content-width]', 'type' => 'control', 'control' => 'ast-slider', 'default' => astra_get_option( 'site-content-width' ), 'section' => 'section-container-layout', 'priority' => 10, 'title' => __( 'Container Width', 'astra' ), 'context' => ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'site-layouts' ) ) ? array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[site-layout]', 'operator' => '==', 'value' => 'ast-full-width-layout', ), ) : array(), 'suffix' => 'px', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), '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 |
---|---|
1.4.3 | Introduced. |