Esempio n. 1
0
<?php

/**
 * The Sidebar containing the main widget area
 *
 * @package WordPress
 */
if (function_exists('is_shop')) {
    if ((is_shop() or is_product_category() or is_product_tag()) and !is_product() and Majale::shop_grid_number()['sidebar-2'] != 'off') {
        ?>

		<div id="sidebar-2" class="<?php 
        echo Majale::shop_grid_number()['sidebar-2'];
        ?>
 sidebar-2" role="complementary">
			<?php 
        if (is_active_sidebar('sidebar-2')) {
            ?>
				<?php 
            dynamic_sidebar('sidebar-2');
            ?>
			<?php 
        }
        ?>
		</div>

	<?php 
    } elseif (!(is_shop() or is_product_category() or is_product_tag()) and is_product() and Majale::shop_single_grid_number()['sidebar-2'] != 'off') {
        ?>

		<div id="sidebar-2" class="<?php 
Esempio n. 2
0
 * @package 	WooCommerce/Templates
 * @version     2.0.0
 */
if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
get_header('shop');
?>

<div class="main-container max-width center-block">

	<div class="row shop-page">

		<div class="shop-area <?php 
echo Majale::shop_grid_number()['shop-area'];
?>
">

		
		<?php 
/**
 * woocommerce_before_main_content hook
 *
 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
 * @hooked woocommerce_breadcrumb - 20
 */
do_action('woocommerce_before_main_content');
?>
		<div class="shop-page-title">