addiing sidebar to shortcode
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Jan 2016 19:15:43 +0000 (14:15 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Jan 2016 19:15:43 +0000 (14:15 -0500)
views/list_products.php

index 9e41f76..ee76f00 100644 (file)
@@ -1,11 +1,11 @@
 <?php if(!isset($_COOKIE['view']) || $_COOKIE['view'] == "grid"){ ?>
+<?php get_template_part('parts/sidebar-l'); ?>
     <div id="gridView" class="row">
     <?php 
        $cat_id = $_REQUEST[MICHSCI_CATEGORY_NAME];
        echo category_description($cat_id);
        $cat_children = get_term_children($cat_id, MICHSCI_CATEGORY_NAME);
     ?>
-        <?php get_template_part('parts/sidebar-l'); ?>
      <?php if($_COOKIE['subcat'] == "subcat"){ ?>
         <?php foreach($cat_children as $cats){
             $term = get_term($cats, MICHSCI_CATEGORY_NAME); ?>