removed test print statements and moved products breadcrumbs
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 29 Jan 2016 18:47:21 +0000 (13:47 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 29 Jan 2016 18:47:21 +0000 (13:47 -0500)
index.php
views/list_categories.php

index 7e2c6ab..4252dcf 100644 (file)
--- a/index.php
+++ b/index.php
@@ -465,7 +465,6 @@ function michsci_shortcode($atts)
     } else if ( !$catid_id && !$product_id ) {
         $text_query = $_REQUEST['tsearch'];
         if(isset($_REQUEST['tsearch'])){
-            echo $text_query;
             setcookie("test", "cool",time()+1, "/" );
         } else {
             setcookie("test", "null",time()+1, "/" );
index b56f7c4..180706e 100644 (file)
@@ -1,8 +1,7 @@
 <?php if(!isset($_COOKIE['catView']) || $_COOKIE['catView'] == "grid"){ ?>
  <?php $cat_id = $_REQUEST['michsci_category']; 
- if($cat_id){
-      $ancestors = get_category_parents($cat_id, false, " > "); 
- } ?>
+ if($cat_id){ ?>
+      <?php $ancestors = get_category_parents($cat_id, false, " > "); ?>
 <div class="small-12 medium-6" id="productBreadcrumbs">
  <?php echo '<a href="'. get_permalink(510) .  '">' . Products . '</a>'." > "; ?>
 <?php foreach($ancestors as $relative){
@@ -10,6 +9,8 @@
 } ?>
     <?php echo $relative->name . print_r($ancestors, true) . "<br>"; ?>
 </div>
+ <?php } ?>
+
 
 
 <div id="categoriesGridView" class="row">