Astra_Woocommerce_Shop_Single_Colors_Configs::register_configuration( Array $configurations, WP_Customize_Manager $wp_customize )
Register Woocommerce Shop Single Color Layout 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/woocommerce/classes/sections/class-astra-woocommerce-shop-single-colors-configs.php
public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Single Product Title Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-title-color]', 'default' => astra_get_option( 'single-product-title-color' ), 'type' => 'control', 'section' => 'section-woo-shop-single', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'title' => __( 'Title Color', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[shop-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), 'divider' => array( 'ast_class' => 'ast-top-divider' ), 'priority' => 80, 'divider' => array( 'ast_class' => 'ast-top-divider' ), ), /** * Single Product Price Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-price-color]', 'default' => astra_get_option( 'single-product-price-color' ), 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'type' => 'control', 'section' => 'section-woo-shop-single', 'title' => __( 'Price Color', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[shop-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), 'priority' => 80, ), /** * Single Product Content Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-content-color]', 'default' => astra_get_option( 'single-product-content-color' ), 'type' => 'control', 'section' => 'section-woo-shop-single', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'title' => __( 'Content Color', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[shop-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), 'priority' => 80, ), /** * Single Product Breadcrumb Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-breadcrumb-color]', 'default' => astra_get_option( 'single-product-breadcrumb-color' ), 'type' => 'control', 'section' => 'section-woo-shop-single', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'title' => __( 'Breadcrumb Color', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[shop-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), 'priority' => 80, 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.4.3 | Introduced. |