From 8a53db93aa9029813d36b16acca7a36290e0d3e0 Mon Sep 17 00:00:00 2001 From: francgrasso Date: Fri, 26 Jun 2020 10:49:53 +0200 Subject: [PATCH] version 1.2.11 * Fix shop pages sidebar position management --- inc/template-functions.php | 16 ++++++---------- readme.txt | 5 ++++- sass/style.scss | 2 +- sidebar.php | 9 ++++----- style.css | 2 +- 5 files changed, 16 insertions(+), 18 deletions(-) diff --git a/inc/template-functions.php b/inc/template-functions.php index b3c47e9..d14c7bf 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -74,19 +74,15 @@ function yith_proteo_get_sidebar_position( $info = null ) { if ( class_exists( 'WooCommerce' ) ) { if ( is_shop() ) { $general_sidebar = get_post_meta( get_option( 'woocommerce_shop_page_id' ), 'sidebar_position', true ); - } - if ( is_product_category() ) { + } elseif ( is_product_category() ) { $general_sidebar = get_theme_mod( 'yith_proteo_product_category_page_sidebar_position', 'no-sidebar' ); - } - if ( is_product_tag() ) { + } elseif ( is_product_tag() ) { $general_sidebar = get_theme_mod( 'yith_proteo_product_tag_page_sidebar_position', 'no-sidebar' ); - } - - if ( is_product() ) { + } elseif ( is_product_taxonomy() ) { + $general_sidebar = get_theme_mod( 'yith_proteo_product_tax_page_sidebar_position', 'no-sidebar' ); + } elseif ( is_product() ) { $general_sidebar = get_theme_mod( 'yith_proteo_product_page_sidebar_position', 'no-sidebar' ); - } - - if ( is_checkout() || is_cart() || is_account_page() ) { + } elseif ( is_checkout() || is_cart() || is_account_page() ) { return false; } } diff --git a/readme.txt b/readme.txt index b6ae27b..0b6b51e 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: one-column, two-columns, left-sidebar, right-sidebar, wide-blocks, accessi Requires at least: 4.9.6 Tested up to: WordPress 5.4 Requires PHP: 5.6 -Stable tag: 1.2.10 +Stable tag: 1.2.11 YITH Proteo WordPress Theme, Copyright 2020 YITH YITH Proteo is distributed under the terms of the GNU GPL License: GPLv2 or later @@ -25,6 +25,9 @@ Proteo is a sleek, modern and "Gutenberg-friendly" e-commerce theme. Developed w == Frequently Asked Questions == == Changelog == += 1.2.11 - June 26 2020 = +* Fix shop pages sidebar position management + = 1.2.10 - June 24 2020 = * Add One Click Demo Import support and configuration diff --git a/sass/style.scss b/sass/style.scss index 70deb89..bfc60cc 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -5,7 +5,7 @@ Author: YITH Author URI: https://yithemes.com Description: Proteo is a sleek, modern and “Gutenberg-friendly” e-commerce theme. Developed with a beautiful UI and a minimal design, is perfect for each kind of shop. Easy to manage and to customize, Proteo is the best solution if you want a complete e-commerce template and start quickly to sell your products with WooCommerce without a technical knowledge. Use it also for corporate site or a blog: there are no limits about what you can do with a beautiful and usable theme like this! Main features: Colors and Typography customization (Google font support), Logo customization, 3 different Header layouts, Advanced customizer theme options, Sidebar Management, Sidebar Chooser on each page and product, Page title icons, Top Bar Management, Easy main color shade chooser, Buttons style management (gradient buttons support), Footer management with multiple sidebars, WooCommerce support, Shop Theme Options, Custom WooCommerce messages and animated WooCommerce alert notices, Two cart page layouts, Bootstrap grid system, CSS animations, Gutenberg support, Responsive, Fullscreen search, Multilevel menus, Support to all YITH plugins, SVG icons for HiDPI screens, Translation Ready. Discover more > | Check our live demo > -Version: 1.2.10.1 +Version: 1.2.11 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: yith-proteo diff --git a/sidebar.php b/sidebar.php index ad2974e..eec08ef 100644 --- a/sidebar.php +++ b/sidebar.php @@ -35,17 +35,16 @@