Astra_Customizer_Blog_Pro_Image_Resizer_Configs::register_configuration( Array $configurations, WP_Customize_Manager $wp_customize )
Register General 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/blog-pro/classes/sections/class-astra-customizer-blog-pro-image-resizer-configs.php
public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Blog Archive */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-archive-image-size-heading]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog', 'title' => __( 'Featured Images Size', 'astra-addon' ), 'priority' => 100, 'settings' => array(), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'operator' => 'contains', 'value' => 'image', ), ), ), /** * Option: Featured Image width */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-archive-image-width]', 'type' => 'control', 'control' => 'number', 'transport' => 'postMessage', 'default' => astra_get_option( 'blog-archive-image-width' ), 'section' => 'section-blog', 'priority' => 105, 'title' => __( 'Width', 'astra-addon' ), 'input_attrs' => array( 'style' => 'text-align:center;', 'placeholder' => __( 'Auto', 'astra-addon' ), 'min' => 5, 'max' => 1920, ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'operator' => 'contains', 'value' => 'image', ), ), ), /** * Option: Featured Image height */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-archive-image-height]', 'type' => 'control', 'control' => 'number', 'transport' => 'postMessage', 'default' => astra_get_option( 'blog-archive-image-height' ), 'section' => 'section-blog', 'priority' => 107, 'title' => __( 'Height', 'astra-addon' ), 'input_attrs' => array( 'style' => 'text-align:center;', 'placeholder' => __( 'Auto', 'astra-addon' ), 'min' => 5, 'max' => 1920, ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'operator' => 'contains', 'value' => 'image', ), ), ), /** * Option: Featured Image apply size */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-archive-image-apply-sizes]', 'type' => 'control', 'control' => 'ast-customizer-refresh', 'section' => 'section-blog', 'default' => astra_get_option( 'log-archive-image-apply-sizes' ), 'priority' => 107, 'title' => __( 'Apply Size', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'operator' => 'contains', 'value' => 'image', ), ), ), /** * Option: Blog Single Post */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-post-image-size-heading]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog-single', 'title' => __( 'Featured Images Size', 'astra-addon' ), 'priority' => 6, 'settings' => array(), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-single-post-structure]', 'operator' => 'contains', 'value' => 'single-image', ), ), ), /** * Option: Featured Image width */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-post-image-width]', 'type' => 'control', 'control' => 'number', 'transport' => 'postMessage', 'default' => astra_get_option( 'blog-single-post-image-width' ), 'section' => 'section-blog-single', 'priority' => 6, 'title' => __( 'Width', 'astra-addon' ), 'input_attrs' => array( 'style' => 'text-align:center;', 'placeholder' => __( 'Auto', 'astra-addon' ), 'min' => 5, 'max' => 1920, ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-single-post-structure]', 'operator' => 'contains', 'value' => 'single-image', ), ), ), /** * Option: Featured Image height */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-post-image-height]', 'type' => 'control', 'control' => 'number', 'transport' => 'postMessage', 'default' => astra_get_option( 'blog-single-post-image-height' ), 'section' => 'section-blog-single', 'priority' => 6, 'title' => __( 'Height', 'astra-addon' ), 'input_attrs' => array( 'style' => 'text-align:center;', 'placeholder' => __( 'Auto', 'astra-addon' ), 'min' => 5, 'max' => 1920, ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-single-post-structure]', 'operator' => 'contains', 'value' => 'single-image', ), ), ), /** * Option: Featured Image apply size */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-post-image-apply-sizes]', 'type' => 'control', 'control' => 'ast-customizer-refresh', 'section' => 'section-blog-single', 'default' => astra_get_option( 'blog-single-post-image-apply-sizes' ), 'priority' => 6, 'title' => __( 'Apply Size', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-single-post-structure]', 'operator' => 'contains', 'value' => 'single-image', ), ), ), ); return array_merge( $configurations, $_configs ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.4.3 | Introduced. |