summaryrefslogtreecommitdiff
path: root/inc/compatibility/woocommerce/customizer/sections
diff options
context:
space:
mode:
Diffstat (limited to 'inc/compatibility/woocommerce/customizer/sections')
-rw-r--r--inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-container-configs.php128
-rw-r--r--inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-sidebar-configs.php168
-rw-r--r--inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-cart-layout-configs.php114
-rw-r--r--inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-layout-configs.php316
-rw-r--r--inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-single-layout-configs.php160
5 files changed, 443 insertions, 443 deletions
diff --git a/inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-container-configs.php b/inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-container-configs.php
index a24d642..f82ded9 100644
--- a/inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-container-configs.php
+++ b/inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-container-configs.php
@@ -1,64 +1,64 @@
-<?php
-/**
- * Container Options for Astra theme.
- *
- * @package Astra
- * @author Brainstorm Force
- * @copyright Copyright (c) 2020, Brainstorm Force
- * @link https://www.brainstormforce.com
- * @since Astra 1.0
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-if ( ! class_exists( 'Astra_Woo_Shop_Container_Configs' ) ) {
-
- /**
- * Customizer Sanitizes Initial setup
- */
- class Astra_Woo_Shop_Container_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register Astra-WooCommerce Shop Container Settings.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- $_configs = array(
-
- /**
- * Option: Shop Page
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[woocommerce-content-layout]',
- 'type' => 'control',
- 'control' => 'ast-select',
- 'default' => astra_get_option( 'woocommerce-content-layout' ),
- 'section' => 'section-container-layout',
- 'priority' => 85,
- 'title' => __( 'WooCommerce Layout', 'astra' ),
- 'divider' => array( 'ast_class' => 'ast-top-divider' ),
- 'choices' => array(
- 'default' => __( 'Default', 'astra' ),
- 'boxed-container' => __( 'Boxed', 'astra' ),
- 'content-boxed-container' => __( 'Content Boxed', 'astra' ),
- 'plain-container' => __( 'Full Width / Contained', 'astra' ),
- 'page-builder' => __( 'Full Width / Stretched', 'astra' ),
- ),
- ),
- );
-
- return array_merge( $configurations, $_configs );
-
- }
- }
-}
-
-new Astra_Woo_Shop_Container_Configs();
-
+<?php
+/**
+ * Container Options for Astra theme.
+ *
+ * @package Astra
+ * @author Brainstorm Force
+ * @copyright Copyright (c) 2020, Brainstorm Force
+ * @link https://www.brainstormforce.com
+ * @since Astra 1.0
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+
+if ( ! class_exists( 'Astra_Woo_Shop_Container_Configs' ) ) {
+
+ /**
+ * Customizer Sanitizes Initial setup
+ */
+ class Astra_Woo_Shop_Container_Configs extends Astra_Customizer_Config_Base {
+
+ /**
+ * Register Astra-WooCommerce Shop Container Settings.
+ *
+ * @param Array $configurations Astra Customizer Configurations.
+ * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
+ * @since 1.4.3
+ * @return Array Astra Customizer Configurations with updated configurations.
+ */
+ public function register_configuration( $configurations, $wp_customize ) {
+
+ $_configs = array(
+
+ /**
+ * Option: Shop Page
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[woocommerce-content-layout]',
+ 'type' => 'control',
+ 'control' => 'ast-select',
+ 'default' => astra_get_option( 'woocommerce-content-layout' ),
+ 'section' => 'section-container-layout',
+ 'priority' => 85,
+ 'title' => __( 'WooCommerce Layout', 'astra' ),
+ 'divider' => array( 'ast_class' => 'ast-top-divider' ),
+ 'choices' => array(
+ 'default' => __( 'Default', 'astra' ),
+ 'boxed-container' => __( 'Boxed', 'astra' ),
+ 'content-boxed-container' => __( 'Content Boxed', 'astra' ),
+ 'plain-container' => __( 'Full Width / Contained', 'astra' ),
+ 'page-builder' => __( 'Full Width / Stretched', 'astra' ),
+ ),
+ ),
+ );
+
+ return array_merge( $configurations, $_configs );
+
+ }
+ }
+}
+
+new Astra_Woo_Shop_Container_Configs();
+
diff --git a/inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-sidebar-configs.php b/inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-sidebar-configs.php
index 6534163..57f7ded 100644
--- a/inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-sidebar-configs.php
+++ b/inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-sidebar-configs.php
@@ -1,84 +1,84 @@
-<?php
-/**
- * Content Spacing Options for our theme.
- *
- * @package Astra
- * @author Brainstorm Force
- * @copyright Copyright (c) 2020, Brainstorm Force
- * @link https://www.brainstormforce.com
- * @since Astra 1.0
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-if ( ! class_exists( 'Astra_Woo_Shop_Sidebar_Configs' ) ) {
-
- /**
- * Customizer Sanitizes Initial setup
- */
- class Astra_Woo_Shop_Sidebar_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register Astra-WooCommerce Shop Sidebar Configurations.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- $_configs = array(
-
- /**
- * Option: Shop Page
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[woocommerce-sidebar-layout]',
- 'type' => 'control',
- 'control' => 'ast-select',
- 'section' => 'section-sidebars',
- 'default' => astra_get_option( 'woocommerce-sidebar-layout' ),
- 'priority' => 5,
- 'title' => __( 'WooCommerce', 'astra' ),
- 'choices' => array(
- 'default' => __( 'Default', 'astra' ),
- 'no-sidebar' => __( 'No Sidebar', 'astra' ),
- 'left-sidebar' => __( 'Left Sidebar', 'astra' ),
- 'right-sidebar' => __( 'Right Sidebar', 'astra' ),
- ),
- ),
-
- /**
- * Option: Single Product
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[single-product-sidebar-layout]',
- 'type' => 'control',
- 'control' => 'ast-select',
- 'default' => astra_get_option( 'single-product-sidebar-layout' ),
- 'section' => 'section-sidebars',
- 'priority' => 5,
- 'title' => __( 'Single Product', 'astra' ),
- 'choices' => array(
- 'default' => __( 'Default', 'astra' ),
- 'no-sidebar' => __( 'No Sidebar', 'astra' ),
- 'left-sidebar' => __( 'Left Sidebar', 'astra' ),
- 'right-sidebar' => __( 'Right Sidebar', 'astra' ),
- ),
- 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
- ),
- );
-
- return array_merge( $configurations, $_configs );
-
- }
- }
-}
-
-new Astra_Woo_Shop_Sidebar_Configs();
-
-
-
+<?php
+/**
+ * Content Spacing Options for our theme.
+ *
+ * @package Astra
+ * @author Brainstorm Force
+ * @copyright Copyright (c) 2020, Brainstorm Force
+ * @link https://www.brainstormforce.com
+ * @since Astra 1.0
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+
+if ( ! class_exists( 'Astra_Woo_Shop_Sidebar_Configs' ) ) {
+
+ /**
+ * Customizer Sanitizes Initial setup
+ */
+ class Astra_Woo_Shop_Sidebar_Configs extends Astra_Customizer_Config_Base {
+
+ /**
+ * Register Astra-WooCommerce Shop Sidebar Configurations.
+ *
+ * @param Array $configurations Astra Customizer Configurations.
+ * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
+ * @since 1.4.3
+ * @return Array Astra Customizer Configurations with updated configurations.
+ */
+ public function register_configuration( $configurations, $wp_customize ) {
+
+ $_configs = array(
+
+ /**
+ * Option: Shop Page
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[woocommerce-sidebar-layout]',
+ 'type' => 'control',
+ 'control' => 'ast-select',
+ 'section' => 'section-sidebars',
+ 'default' => astra_get_option( 'woocommerce-sidebar-layout' ),
+ 'priority' => 5,
+ 'title' => __( 'WooCommerce', 'astra' ),
+ 'choices' => array(
+ 'default' => __( 'Default', 'astra' ),
+ 'no-sidebar' => __( 'No Sidebar', 'astra' ),
+ 'left-sidebar' => __( 'Left Sidebar', 'astra' ),
+ 'right-sidebar' => __( 'Right Sidebar', 'astra' ),
+ ),
+ ),
+
+ /**
+ * Option: Single Product
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[single-product-sidebar-layout]',
+ 'type' => 'control',
+ 'control' => 'ast-select',
+ 'default' => astra_get_option( 'single-product-sidebar-layout' ),
+ 'section' => 'section-sidebars',
+ 'priority' => 5,
+ 'title' => __( 'Single Product', 'astra' ),
+ 'choices' => array(
+ 'default' => __( 'Default', 'astra' ),
+ 'no-sidebar' => __( 'No Sidebar', 'astra' ),
+ 'left-sidebar' => __( 'Left Sidebar', 'astra' ),
+ 'right-sidebar' => __( 'Right Sidebar', 'astra' ),
+ ),
+ 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
+ ),
+ );
+
+ return array_merge( $configurations, $_configs );
+
+ }
+ }
+}
+
+new Astra_Woo_Shop_Sidebar_Configs();
+
+
+
diff --git a/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-cart-layout-configs.php b/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-cart-layout-configs.php
index 6c36a4f..694eb17 100644
--- a/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-cart-layout-configs.php
+++ b/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-cart-layout-configs.php
@@ -1,57 +1,57 @@
-<?php
-/**
- * WooCommerce Options for Astra Theme.
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since Astra 1.1.0
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-if ( ! class_exists( 'Astra_Woo_Shop_Cart_Layout_Configs' ) ) {
-
-
- /**
- * Customizer Sanitizes Initial setup
- */
- class Astra_Woo_Shop_Cart_Layout_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register Astra-WooCommerce Shop Cart Layout Customizer Configurations.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- $_configs = array(
-
- /**
- * Option: Cart upsells
- *
- * Enable Cross-sells - in the code it is refrenced as upsells rather than cross-sells.
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[enable-cart-upsells]',
- 'section' => 'section-woo-shop-cart',
- 'type' => 'control',
- 'control' => 'ast-toggle-control',
- 'default' => astra_get_option( 'enable-cart-upsells' ),
- 'title' => __( 'Enable Cross-sells', 'astra' ),
- 'priority' => 10,
- ),
- );
-
- return array_merge( $configurations, $_configs );
- }
- }
-}
-
-new Astra_Woo_Shop_Cart_Layout_Configs();
+<?php
+/**
+ * WooCommerce Options for Astra Theme.
+ *
+ * @package Astra
+ * @author Astra
+ * @copyright Copyright (c) 2020, Astra
+ * @link https://wpastra.com/
+ * @since Astra 1.1.0
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+
+if ( ! class_exists( 'Astra_Woo_Shop_Cart_Layout_Configs' ) ) {
+
+
+ /**
+ * Customizer Sanitizes Initial setup
+ */
+ class Astra_Woo_Shop_Cart_Layout_Configs extends Astra_Customizer_Config_Base {
+
+ /**
+ * Register Astra-WooCommerce Shop Cart Layout Customizer Configurations.
+ *
+ * @param Array $configurations Astra Customizer Configurations.
+ * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
+ * @since 1.4.3
+ * @return Array Astra Customizer Configurations with updated configurations.
+ */
+ public function register_configuration( $configurations, $wp_customize ) {
+
+ $_configs = array(
+
+ /**
+ * Option: Cart upsells
+ *
+ * Enable Cross-sells - in the code it is refrenced as upsells rather than cross-sells.
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[enable-cart-upsells]',
+ 'section' => 'section-woo-shop-cart',
+ 'type' => 'control',
+ 'control' => 'ast-toggle-control',
+ 'default' => astra_get_option( 'enable-cart-upsells' ),
+ 'title' => __( 'Enable Cross-sells', 'astra' ),
+ 'priority' => 10,
+ ),
+ );
+
+ return array_merge( $configurations, $_configs );
+ }
+ }
+}
+
+new Astra_Woo_Shop_Cart_Layout_Configs();
diff --git a/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-layout-configs.php b/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-layout-configs.php
index 77a0981..c515172 100644
--- a/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-layout-configs.php
+++ b/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-layout-configs.php
@@ -1,158 +1,158 @@
-<?php
-/**
- * WooCommerce Options for Astra Theme.
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since Astra 1.1.0
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-if ( ! class_exists( 'Astra_Woo_Shop_Layout_Configs' ) ) {
-
- /**
- * Customizer Sanitizes Initial setup
- */
- class Astra_Woo_Shop_Layout_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register Astra-WooCommerce Shop Layout Customizer Configurations.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- $_configs = array(
-
- /**
- * Option: Shop Columns
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[shop-grids]',
- 'type' => 'control',
- 'control' => 'ast-responsive-slider',
- 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ),
- 'section' => 'woocommerce_product_catalog',
- 'default' => astra_get_option(
- 'shop-grids',
- array(
- 'desktop' => 4,
- 'tablet' => 3,
- 'mobile' => 2,
- )
- ),
- 'priority' => 11,
- 'title' => __( 'Shop Columns', 'astra' ),
- 'input_attrs' => array(
- 'step' => 1,
- 'min' => 1,
- 'max' => 6,
- ),
- ),
-
- /**
- * Option: Products Per Page
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[shop-no-of-products]',
- 'type' => 'control',
- 'section' => 'woocommerce_product_catalog',
- 'title' => __( 'Products Per Page', 'astra' ),
- 'default' => astra_get_option( 'shop-no-of-products' ),
- 'control' => 'number',
- 'priority' => 15,
- 'input_attrs' => array(
- 'min' => 1,
- 'step' => 1,
- 'max' => 100,
- ),
- ),
-
- /**
- * Option: Single Post Meta
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[shop-product-structure]',
- 'type' => 'control',
- 'control' => 'ast-sortable',
- 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ),
- 'section' => 'woocommerce_product_catalog',
- 'default' => astra_get_option( 'shop-product-structure' ),
- 'priority' => 15,
- 'title' => __( 'Shop Product Structure', 'astra' ),
- 'choices' => array(
- 'title' => __( 'Title', 'astra' ),
- 'price' => __( 'Price', 'astra' ),
- 'ratings' => __( 'Ratings', 'astra' ),
- 'short_desc' => __( 'Short Description', 'astra' ),
- 'add_cart' => __( 'Add To Cart', 'astra' ),
- 'category' => __( 'Category', 'astra' ),
- ),
- ),
-
- /**
- * Option: Shop Archive Content Width
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[shop-archive-width]',
- 'type' => 'control',
- 'control' => 'ast-select',
- 'section' => 'woocommerce_product_catalog',
- 'default' => astra_get_option( 'shop-archive-width' ),
- 'priority' => 10,
- 'title' => __( 'Shop Archive Content Width', 'astra' ),
- 'choices' => array(
- 'default' => __( 'Default', 'astra' ),
- 'custom' => __( 'Custom', 'astra' ),
- ),
- 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
- ),
-
- /**
- * Option: Enter Width
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[shop-archive-max-width]',
- 'type' => 'control',
- 'control' => 'ast-slider',
- 'section' => 'woocommerce_product_catalog',
- 'default' => astra_get_option( 'shop-archive-max-width' ),
- 'priority' => 10,
- 'title' => __( 'Custom Width', 'astra' ),
- 'transport' => 'postMessage',
- 'suffix' => 'px',
- 'input_attrs' => array(
- 'min' => 768,
- 'step' => 1,
- 'max' => 1920,
- ),
- 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
- 'context' => array(
- Astra_Builder_Helper::$general_tab_config,
- array(
- 'setting' => ASTRA_THEME_SETTINGS . '[shop-archive-width]',
- 'operator' => '===',
- 'value' => 'custom',
- ),
- ),
- ),
- );
-
- $configurations = array_merge( $configurations, $_configs );
-
- return $configurations;
-
- }
- }
-}
-
-new Astra_Woo_Shop_Layout_Configs();
-
+<?php
+/**
+ * WooCommerce Options for Astra Theme.
+ *
+ * @package Astra
+ * @author Astra
+ * @copyright Copyright (c) 2020, Astra
+ * @link https://wpastra.com/
+ * @since Astra 1.1.0
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+
+if ( ! class_exists( 'Astra_Woo_Shop_Layout_Configs' ) ) {
+
+ /**
+ * Customizer Sanitizes Initial setup
+ */
+ class Astra_Woo_Shop_Layout_Configs extends Astra_Customizer_Config_Base {
+
+ /**
+ * Register Astra-WooCommerce Shop Layout Customizer Configurations.
+ *
+ * @param Array $configurations Astra Customizer Configurations.
+ * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
+ * @since 1.4.3
+ * @return Array Astra Customizer Configurations with updated configurations.
+ */
+ public function register_configuration( $configurations, $wp_customize ) {
+
+ $_configs = array(
+
+ /**
+ * Option: Shop Columns
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[shop-grids]',
+ 'type' => 'control',
+ 'control' => 'ast-responsive-slider',
+ 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ),
+ 'section' => 'woocommerce_product_catalog',
+ 'default' => astra_get_option(
+ 'shop-grids',
+ array(
+ 'desktop' => 4,
+ 'tablet' => 3,
+ 'mobile' => 2,
+ )
+ ),
+ 'priority' => 11,
+ 'title' => __( 'Shop Columns', 'astra' ),
+ 'input_attrs' => array(
+ 'step' => 1,
+ 'min' => 1,
+ 'max' => 6,
+ ),
+ ),
+
+ /**
+ * Option: Products Per Page
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[shop-no-of-products]',
+ 'type' => 'control',
+ 'section' => 'woocommerce_product_catalog',
+ 'title' => __( 'Products Per Page', 'astra' ),
+ 'default' => astra_get_option( 'shop-no-of-products' ),
+ 'control' => 'number',
+ 'priority' => 15,
+ 'input_attrs' => array(
+ 'min' => 1,
+ 'step' => 1,
+ 'max' => 100,
+ ),
+ ),
+
+ /**
+ * Option: Single Post Meta
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[shop-product-structure]',
+ 'type' => 'control',
+ 'control' => 'ast-sortable',
+ 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ),
+ 'section' => 'woocommerce_product_catalog',
+ 'default' => astra_get_option( 'shop-product-structure' ),
+ 'priority' => 15,
+ 'title' => __( 'Shop Product Structure', 'astra' ),
+ 'choices' => array(
+ 'title' => __( 'Title', 'astra' ),
+ 'price' => __( 'Price', 'astra' ),
+ 'ratings' => __( 'Ratings', 'astra' ),
+ 'short_desc' => __( 'Short Description', 'astra' ),
+ 'add_cart' => __( 'Add To Cart', 'astra' ),
+ 'category' => __( 'Category', 'astra' ),
+ ),
+ ),
+
+ /**
+ * Option: Shop Archive Content Width
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[shop-archive-width]',
+ 'type' => 'control',
+ 'control' => 'ast-select',
+ 'section' => 'woocommerce_product_catalog',
+ 'default' => astra_get_option( 'shop-archive-width' ),
+ 'priority' => 10,
+ 'title' => __( 'Shop Archive Content Width', 'astra' ),
+ 'choices' => array(
+ 'default' => __( 'Default', 'astra' ),
+ 'custom' => __( 'Custom', 'astra' ),
+ ),
+ 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
+ ),
+
+ /**
+ * Option: Enter Width
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[shop-archive-max-width]',
+ 'type' => 'control',
+ 'control' => 'ast-slider',
+ 'section' => 'woocommerce_product_catalog',
+ 'default' => astra_get_option( 'shop-archive-max-width' ),
+ 'priority' => 10,
+ 'title' => __( 'Custom Width', 'astra' ),
+ 'transport' => 'postMessage',
+ 'suffix' => 'px',
+ 'input_attrs' => array(
+ 'min' => 768,
+ 'step' => 1,
+ 'max' => 1920,
+ ),
+ 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
+ 'context' => array(
+ Astra_Builder_Helper::$general_tab_config,
+ array(
+ 'setting' => ASTRA_THEME_SETTINGS . '[shop-archive-width]',
+ 'operator' => '===',
+ 'value' => 'custom',
+ ),
+ ),
+ ),
+ );
+
+ $configurations = array_merge( $configurations, $_configs );
+
+ return $configurations;
+
+ }
+ }
+}
+
+new Astra_Woo_Shop_Layout_Configs();
+
diff --git a/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-single-layout-configs.php b/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-single-layout-configs.php
index 5a02370..ca1b1d3 100644
--- a/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-single-layout-configs.php
+++ b/inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-single-layout-configs.php
@@ -1,80 +1,80 @@
-<?php
-/**
- * WooCommerce Options for Astra Theme.
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since Astra 1.1.0
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-if ( ! class_exists( 'Astra_Woo_Shop_Single_Layout_Configs' ) ) {
-
-
- /**
- * Customizer Sanitizes Initial setup
- */
- class Astra_Woo_Shop_Single_Layout_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register Astra-WooCommerce Shop Single Layout Customizer Configurations.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- $_configs = array(
-
- /**
- * Option: Disable Breadcrumb
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[single-product-breadcrumb-disable]',
- 'section' => 'section-woo-shop-single',
- 'type' => 'control',
- 'control' => 'ast-toggle-control',
- 'default' => astra_get_option( 'single-product-breadcrumb-disable' ),
- 'title' => __( 'Disable Breadcrumb', 'astra' ),
- 'priority' => 16,
- ),
-
- /**
- * Option: Disable Transparent Header on WooCommerce Product pages
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[transparent-header-disable-woo-products]',
- 'default' => astra_get_option( 'transparent-header-disable-woo-products' ),
- 'type' => 'control',
- 'section' => 'section-transparent-header',
- 'title' => __( 'Disable on WooCommerce Product Pages?', 'astra' ),
- 'context' => array(
- Astra_Builder_Helper::$general_tab_config,
- array(
- 'setting' => ASTRA_THEME_SETTINGS . '[transparent-header-enable]',
- 'operator' => '==',
- 'value' => '1',
- ),
- ),
- 'priority' => 26,
- 'control' => 'ast-toggle-control',
- 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
- ),
- );
-
- return array_merge( $configurations, $_configs );
-
- }
- }
-}
-
-new Astra_Woo_Shop_Single_Layout_Configs();
-
-
+<?php
+/**
+ * WooCommerce Options for Astra Theme.
+ *
+ * @package Astra
+ * @author Astra
+ * @copyright Copyright (c) 2020, Astra
+ * @link https://wpastra.com/
+ * @since Astra 1.1.0
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+
+if ( ! class_exists( 'Astra_Woo_Shop_Single_Layout_Configs' ) ) {
+
+
+ /**
+ * Customizer Sanitizes Initial setup
+ */
+ class Astra_Woo_Shop_Single_Layout_Configs extends Astra_Customizer_Config_Base {
+
+ /**
+ * Register Astra-WooCommerce Shop Single Layout Customizer Configurations.
+ *
+ * @param Array $configurations Astra Customizer Configurations.
+ * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
+ * @since 1.4.3
+ * @return Array Astra Customizer Configurations with updated configurations.
+ */
+ public function register_configuration( $configurations, $wp_customize ) {
+
+ $_configs = array(
+
+ /**
+ * Option: Disable Breadcrumb
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[single-product-breadcrumb-disable]',
+ 'section' => 'section-woo-shop-single',
+ 'type' => 'control',
+ 'control' => 'ast-toggle-control',
+ 'default' => astra_get_option( 'single-product-breadcrumb-disable' ),
+ 'title' => __( 'Disable Breadcrumb', 'astra' ),
+ 'priority' => 16,
+ ),
+
+ /**
+ * Option: Disable Transparent Header on WooCommerce Product pages
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[transparent-header-disable-woo-products]',
+ 'default' => astra_get_option( 'transparent-header-disable-woo-products' ),
+ 'type' => 'control',
+ 'section' => 'section-transparent-header',
+ 'title' => __( 'Disable on WooCommerce Product Pages?', 'astra' ),
+ 'context' => array(
+ Astra_Builder_Helper::$general_tab_config,
+ array(
+ 'setting' => ASTRA_THEME_SETTINGS . '[transparent-header-enable]',
+ 'operator' => '==',
+ 'value' => '1',
+ ),
+ ),
+ 'priority' => 26,
+ 'control' => 'ast-toggle-control',
+ 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
+ ),
+ );
+
+ return array_merge( $configurations, $_configs );
+
+ }
+ }
+}
+
+new Astra_Woo_Shop_Single_Layout_Configs();
+
+