restructuring code
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 15:07:14 +0000 (10:07 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 15:07:14 +0000 (10:07 -0500)
views/list_products.php

index a55da8d..56ac012 100644 (file)
@@ -1,10 +1,10 @@
 <?php if(!isset($_COOKIE['view']) || $_COOKIE['view'] == "grid"){ ?>
+ $cat_id = $_REQUEST[MICHSCI_CATEGORY_NAME];
 <?php $term = get_term($cat_id, MICHSCI_CATEGORY_NAME); ?>
 <?php echo $term->name; ?>
 <?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);
     ?>