function wpex_woo_sidebar() { // Get current class $class = wpex_woo_layout_class(); // Return true or false if ($class == 'right-sidebar' || $class == 'left-sidebar') { return true; } else { return false; } }
<?php /** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages and that other * 'pages' on your WordPress site will use a different template. * * @package WordPress * @subpackage Total * @since Total 1.0 */ // Returns the correct classes for the main wrap // See functions/woocommerce/woo-layouts.php $wpex_woo_layout_class = wpex_woo_layout_class(); // Get site header get_header(); ?> <?php // Header For Main Shop if (wpex_option('woo_shop_title', '1') == '1' && is_shop()) { ?> <header class="page-header"> <div class="page-header-inner container clr"> <h1 class="page-header-title"> <?php // Display custom WooCommerce title if (wpex_option('woo_shop_custom_title')) { echo wpex_option('woo_shop_custom_title');