From 69c17f9c1942fd0d6a5ea941636e87723b8a6fe2 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Wed, 21 Jul 2021 16:19:29 -0500 Subject: dos2unix on all .php files, begin paring down admin page and site branding. --- ...class-astra-customizer-register-edd-section.php | 134 +++---- .../sections/class-astra-edd-container-configs.php | 128 +++--- .../sections/class-astra-edd-sidebar-configs.php | 168 ++++---- .../class-astra-edd-archive-layout-configs.php | 428 ++++++++++----------- ...ass-astra-edd-single-product-layout-configs.php | 114 +++--- 5 files changed, 486 insertions(+), 486 deletions(-) (limited to 'inc/compatibility/edd/customizer') diff --git a/inc/compatibility/edd/customizer/class-astra-customizer-register-edd-section.php b/inc/compatibility/edd/customizer/class-astra-customizer-register-edd-section.php index afdfa36..7efaf64 100644 --- a/inc/compatibility/edd/customizer/class-astra-customizer-register-edd-section.php +++ b/inc/compatibility/edd/customizer/class-astra-customizer-register-edd-section.php @@ -1,67 +1,67 @@ - 'section-edd-group', - 'type' => 'section', - 'title' => __( 'Easy Digital Downloads', 'astra' ), - 'priority' => 60, - ), - - array( - 'name' => 'section-edd-archive', - 'title' => __( 'Product Archive', 'astra' ), - 'type' => 'section', - 'section' => 'section-edd-group', - 'priority' => 10, - ), - - array( - 'name' => 'section-edd-single', - 'type' => 'section', - 'title' => __( 'Single Product', 'astra' ), - 'section' => 'section-edd-group', - 'priority' => 15, - ), - ); - - return array_merge( $configurations, $configs ); - } - } -} - - -new Astra_Customizer_Register_Edd_Section(); + 'section-edd-group', + 'type' => 'section', + 'title' => __( 'Easy Digital Downloads', 'astra' ), + 'priority' => 60, + ), + + array( + 'name' => 'section-edd-archive', + 'title' => __( 'Product Archive', 'astra' ), + 'type' => 'section', + 'section' => 'section-edd-group', + 'priority' => 10, + ), + + array( + 'name' => 'section-edd-single', + 'type' => 'section', + 'title' => __( 'Single Product', 'astra' ), + 'section' => 'section-edd-group', + 'priority' => 15, + ), + ); + + return array_merge( $configurations, $configs ); + } + } +} + + +new Astra_Customizer_Register_Edd_Section(); diff --git a/inc/compatibility/edd/customizer/sections/class-astra-edd-container-configs.php b/inc/compatibility/edd/customizer/sections/class-astra-edd-container-configs.php index 45c2cb3..5f48705 100644 --- a/inc/compatibility/edd/customizer/sections/class-astra-edd-container-configs.php +++ b/inc/compatibility/edd/customizer/sections/class-astra-edd-container-configs.php @@ -1,64 +1,64 @@ - ASTRA_THEME_SETTINGS . '[edd-content-layout]', - 'type' => 'control', - 'control' => 'ast-select', - 'default' => astra_get_option( 'edd-content-layout' ), - 'section' => 'section-container-layout', - 'priority' => 85, - 'title' => __( 'Easy Digital Downloads 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_Edd_Container_Configs(); - + ASTRA_THEME_SETTINGS . '[edd-content-layout]', + 'type' => 'control', + 'control' => 'ast-select', + 'default' => astra_get_option( 'edd-content-layout' ), + 'section' => 'section-container-layout', + 'priority' => 85, + 'title' => __( 'Easy Digital Downloads 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_Edd_Container_Configs(); + diff --git a/inc/compatibility/edd/customizer/sections/class-astra-edd-sidebar-configs.php b/inc/compatibility/edd/customizer/sections/class-astra-edd-sidebar-configs.php index eb36e7f..7404dfc 100644 --- a/inc/compatibility/edd/customizer/sections/class-astra-edd-sidebar-configs.php +++ b/inc/compatibility/edd/customizer/sections/class-astra-edd-sidebar-configs.php @@ -1,84 +1,84 @@ - ASTRA_THEME_SETTINGS . '[edd-sidebar-layout]', - 'type' => 'control', - 'control' => 'ast-select', - 'section' => 'section-sidebars', - 'default' => astra_get_option( 'edd-sidebar-layout' ), - 'priority' => 5, - 'title' => __( 'Easy Digital Downloads', '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 . '[edd-single-product-sidebar-layout]', - 'type' => 'control', - 'control' => 'ast-select', - 'default' => astra_get_option( 'edd-single-product-sidebar-layout' ), - 'section' => 'section-sidebars', - 'priority' => 5, - 'title' => __( 'EDD 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_Edd_Sidebar_Configs(); - - - + ASTRA_THEME_SETTINGS . '[edd-sidebar-layout]', + 'type' => 'control', + 'control' => 'ast-select', + 'section' => 'section-sidebars', + 'default' => astra_get_option( 'edd-sidebar-layout' ), + 'priority' => 5, + 'title' => __( 'Easy Digital Downloads', '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 . '[edd-single-product-sidebar-layout]', + 'type' => 'control', + 'control' => 'ast-select', + 'default' => astra_get_option( 'edd-single-product-sidebar-layout' ), + 'section' => 'section-sidebars', + 'priority' => 5, + 'title' => __( 'EDD 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_Edd_Sidebar_Configs(); + + + diff --git a/inc/compatibility/edd/customizer/sections/layout/class-astra-edd-archive-layout-configs.php b/inc/compatibility/edd/customizer/sections/layout/class-astra-edd-archive-layout-configs.php index bd770a9..7a088d5 100644 --- a/inc/compatibility/edd/customizer/sections/layout/class-astra-edd-archive-layout-configs.php +++ b/inc/compatibility/edd/customizer/sections/layout/class-astra-edd-archive-layout-configs.php @@ -1,214 +1,214 @@ - ASTRA_THEME_SETTINGS . '[edd-archive-grids]', - 'type' => 'control', - 'control' => 'ast-responsive-slider', - 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), - 'section' => 'section-edd-archive', - 'default' => astra_get_option( - 'edd-archive-grids', - array( - 'desktop' => 4, - 'tablet' => 3, - 'mobile' => 2, - ) - ), - 'priority' => 10, - 'title' => __( 'Archive Columns', 'astra' ), - 'input_attrs' => array( - 'step' => 1, - 'min' => 1, - 'max' => 6, - ), - 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), - 'transport' => 'postMessage', - ), - - /** - * Option: EDD Archive Post Meta - */ - array( - 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', - 'type' => 'control', - 'control' => 'ast-sortable', - 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), - 'section' => 'section-edd-archive', - 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), - 'default' => astra_get_option( 'edd-archive-product-structure' ), - 'priority' => 30, - 'title' => __( 'Product Structure', 'astra' ), - 'description' => __( 'The Image option cannot be sortable if the Product Style is selected to the List Style ', 'astra' ), - 'choices' => array( - 'image' => __( 'Image', 'astra' ), - 'category' => __( 'Category', 'astra' ), - 'title' => __( 'Title', 'astra' ), - 'price' => __( 'Price', 'astra' ), - 'short_desc' => __( 'Short Description', 'astra' ), - 'add_cart' => __( 'Add To Cart', 'astra' ), - ), - ), - - /** - * Option: Add to Cart button text - */ - array( - 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-add-to-cart-button-text]', - 'type' => 'control', - 'control' => 'text', - 'section' => 'section-edd-archive', - 'default' => astra_get_option( 'edd-archive-add-to-cart-button-text' ), - 'priority' => 31, - 'title' => __( 'Cart Button Text', 'astra' ), - 'context' => array( - Astra_Builder_Helper::$general_tab_config, - array( - 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', - 'operator' => 'contains', - 'value' => 'add_cart', - ), - ), - ), - - /** - * Option: Variable product button - */ - array( - 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-variable-button]', - 'type' => 'control', - 'control' => 'ast-select', - 'section' => 'section-edd-archive', - 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-top-divider' ), - 'default' => astra_get_option( 'edd-archive-variable-button' ), - 'context' => array( - Astra_Builder_Helper::$general_tab_config, - array( - 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', - 'operator' => 'contains', - 'value' => 'add_cart', - ), - ), - 'priority' => 31, - 'title' => __( 'Variable Product Button', 'astra' ), - 'choices' => array( - 'button' => __( 'Button', 'astra' ), - 'options' => __( 'Options', 'astra' ), - ), - ), - - /** - * Option: Variable product button text - */ - array( - 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-variable-button-text]', - 'type' => 'control', - 'control' => 'text', - 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), - 'section' => 'section-edd-archive', - 'default' => astra_get_option( 'edd-archive-variable-button-text' ), - 'context' => array( - Astra_Builder_Helper::$general_tab_config, - array( - 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-variable-button]', - 'operator' => '==', - 'value' => 'button', - ), - ), - 'priority' => 31, - 'title' => __( 'Variable Product Button Text', 'astra' ), - ), - - /** - * Option: Archive Content Width - */ - array( - 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-width]', - 'type' => 'control', - 'control' => 'ast-select', - 'section' => 'section-edd-archive', - 'default' => astra_get_option( 'edd-archive-width' ), - 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), - 'priority' => 220, - 'title' => __( 'Archive Content Width', 'astra' ), - 'choices' => array( - 'default' => __( 'Default', 'astra' ), - 'custom' => __( 'Custom', 'astra' ), - ), - 'transport' => 'postMessage', - ), - - /** - * Option: Enter Width - */ - array( - 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-max-width]', - 'type' => 'control', - 'control' => 'ast-slider', - 'section' => 'section-edd-archive', - 'default' => astra_get_option( 'edd-archive-max-width' ), - 'priority' => 225, - 'context' => array( - Astra_Builder_Helper::$general_tab_config, - array( - 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-width]', - 'operator' => '===', - 'value' => 'custom', - ), - ), - - 'title' => __( 'Custom Width', 'astra' ), - 'transport' => 'postMessage', - 'suffix' => 'px', - 'input_attrs' => array( - 'min' => 768, - 'step' => 1, - 'max' => 1920, - ), - ), - ); - - $configurations = array_merge( $configurations, $_configs ); - - return $configurations; - - } - } -} - -new Astra_Edd_Archive_Layout_Configs(); - + ASTRA_THEME_SETTINGS . '[edd-archive-grids]', + 'type' => 'control', + 'control' => 'ast-responsive-slider', + 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), + 'section' => 'section-edd-archive', + 'default' => astra_get_option( + 'edd-archive-grids', + array( + 'desktop' => 4, + 'tablet' => 3, + 'mobile' => 2, + ) + ), + 'priority' => 10, + 'title' => __( 'Archive Columns', 'astra' ), + 'input_attrs' => array( + 'step' => 1, + 'min' => 1, + 'max' => 6, + ), + 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), + 'transport' => 'postMessage', + ), + + /** + * Option: EDD Archive Post Meta + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', + 'type' => 'control', + 'control' => 'ast-sortable', + 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), + 'section' => 'section-edd-archive', + 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), + 'default' => astra_get_option( 'edd-archive-product-structure' ), + 'priority' => 30, + 'title' => __( 'Product Structure', 'astra' ), + 'description' => __( 'The Image option cannot be sortable if the Product Style is selected to the List Style ', 'astra' ), + 'choices' => array( + 'image' => __( 'Image', 'astra' ), + 'category' => __( 'Category', 'astra' ), + 'title' => __( 'Title', 'astra' ), + 'price' => __( 'Price', 'astra' ), + 'short_desc' => __( 'Short Description', 'astra' ), + 'add_cart' => __( 'Add To Cart', 'astra' ), + ), + ), + + /** + * Option: Add to Cart button text + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-add-to-cart-button-text]', + 'type' => 'control', + 'control' => 'text', + 'section' => 'section-edd-archive', + 'default' => astra_get_option( 'edd-archive-add-to-cart-button-text' ), + 'priority' => 31, + 'title' => __( 'Cart Button Text', 'astra' ), + 'context' => array( + Astra_Builder_Helper::$general_tab_config, + array( + 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', + 'operator' => 'contains', + 'value' => 'add_cart', + ), + ), + ), + + /** + * Option: Variable product button + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-variable-button]', + 'type' => 'control', + 'control' => 'ast-select', + 'section' => 'section-edd-archive', + 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-top-divider' ), + 'default' => astra_get_option( 'edd-archive-variable-button' ), + 'context' => array( + Astra_Builder_Helper::$general_tab_config, + array( + 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', + 'operator' => 'contains', + 'value' => 'add_cart', + ), + ), + 'priority' => 31, + 'title' => __( 'Variable Product Button', 'astra' ), + 'choices' => array( + 'button' => __( 'Button', 'astra' ), + 'options' => __( 'Options', 'astra' ), + ), + ), + + /** + * Option: Variable product button text + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-variable-button-text]', + 'type' => 'control', + 'control' => 'text', + 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), + 'section' => 'section-edd-archive', + 'default' => astra_get_option( 'edd-archive-variable-button-text' ), + 'context' => array( + Astra_Builder_Helper::$general_tab_config, + array( + 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-variable-button]', + 'operator' => '==', + 'value' => 'button', + ), + ), + 'priority' => 31, + 'title' => __( 'Variable Product Button Text', 'astra' ), + ), + + /** + * Option: Archive Content Width + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-width]', + 'type' => 'control', + 'control' => 'ast-select', + 'section' => 'section-edd-archive', + 'default' => astra_get_option( 'edd-archive-width' ), + 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), + 'priority' => 220, + 'title' => __( 'Archive Content Width', 'astra' ), + 'choices' => array( + 'default' => __( 'Default', 'astra' ), + 'custom' => __( 'Custom', 'astra' ), + ), + 'transport' => 'postMessage', + ), + + /** + * Option: Enter Width + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-max-width]', + 'type' => 'control', + 'control' => 'ast-slider', + 'section' => 'section-edd-archive', + 'default' => astra_get_option( 'edd-archive-max-width' ), + 'priority' => 225, + 'context' => array( + Astra_Builder_Helper::$general_tab_config, + array( + 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-width]', + 'operator' => '===', + 'value' => 'custom', + ), + ), + + 'title' => __( 'Custom Width', 'astra' ), + 'transport' => 'postMessage', + 'suffix' => 'px', + 'input_attrs' => array( + 'min' => 768, + 'step' => 1, + 'max' => 1920, + ), + ), + ); + + $configurations = array_merge( $configurations, $_configs ); + + return $configurations; + + } + } +} + +new Astra_Edd_Archive_Layout_Configs(); + diff --git a/inc/compatibility/edd/customizer/sections/layout/class-astra-edd-single-product-layout-configs.php b/inc/compatibility/edd/customizer/sections/layout/class-astra-edd-single-product-layout-configs.php index 64e163b..ef39d97 100644 --- a/inc/compatibility/edd/customizer/sections/layout/class-astra-edd-single-product-layout-configs.php +++ b/inc/compatibility/edd/customizer/sections/layout/class-astra-edd-single-product-layout-configs.php @@ -1,57 +1,57 @@ - ASTRA_THEME_SETTINGS . '[disable-edd-single-product-nav]', - 'section' => 'section-edd-single', - 'type' => 'control', - 'control' => 'ast-toggle-control', - 'default' => astra_get_option( 'disable-edd-single-product-nav' ), - 'title' => __( 'Disable Product Navigation', 'astra' ), - 'priority' => 10, - 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), - - ), - ); - - return array_merge( $configurations, $_configs ); - } - } -} - -new Astra_Edd_Single_Product_Layout_Configs(); + ASTRA_THEME_SETTINGS . '[disable-edd-single-product-nav]', + 'section' => 'section-edd-single', + 'type' => 'control', + 'control' => 'ast-toggle-control', + 'default' => astra_get_option( 'disable-edd-single-product-nav' ), + 'title' => __( 'Disable Product Navigation', 'astra' ), + 'priority' => 10, + 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), + + ), + ); + + return array_merge( $configurations, $_configs ); + } + } +} + +new Astra_Edd_Single_Product_Layout_Configs(); -- cgit v1.2.3-70-g09d2