removing list view subcats
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Jan 2016 14:40:16 +0000 (09:40 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Jan 2016 14:40:16 +0000 (09:40 -0500)
views/list_products.php

index 5ee37fe..a7c61d0 100644 (file)
       $catNum = $_REQUEST[MICHSCI_CATEGORY_NAME];
       echo category_description($catNum);
    ?>
-        <?php  if(isset($_COOKIE['subcat'])){ ?>
-       
-       <?php foreach($cat_children as $cats){
-            $term = get_term($cats, MICHSCI_CATEGORY_NAME); ?>
-            <?php $tags = wp_get_post_terms($product->ID,'michsci_tag'); ?>
-            <div class="<?php echo $term->slug;?> list small-12 columns<?php if ($product->end){ echo ' end';}?>">
-                <div class="prodImgList small-12 large-3 columns"><a href="<?php echo $product->href; ?>">
-                     <img id="catImg" src="<?php echo z_taxonomy_image_url($cats, array(320, 285)); ?>" class="image wp-post-image no-display" alt=" "  title="<?php echo $term->name; ?>" itemprop="image">
-                </div>
-                <div class="subCatList small-12 large-3 columns">
-                    <a href="<?php echo $cat->href . $term->term_id; ?>"><?php echo $term->name; ?></a>
-                </div>
-                <div class="prodTitleList small-12 large-3 columns">
-                    <a href="<?php echo $cat->href . $term->term_id; ?>"><strong><?php echo $term->name; ?></strong></a>
-                </div>
-        </div>
-        <?php  } ?>
-   <?php 
-   } else { ?>
+        
     <?php if ( isset( $products ) && is_array( $products ) ) : foreach ( $products as $product ) : ?>
 <!--    <div class="row view">-->
 <?php $tags = wp_get_post_terms($product->ID,'michsci_tag'); ?>
@@ -89,6 +71,6 @@
     <?php endforeach; endif; ?>
    </div>
    <?php } ?>
-<?php } 
+