testing changes to dynamic features checkbox
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 20 Jan 2016 17:25:17 +0000 (12:25 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 20 Jan 2016 17:25:17 +0000 (12:25 -0500)
parts/sidebar-l.php

index 03c6a29..1c7d264 100644 (file)
@@ -9,9 +9,13 @@
                 "hierarchical"=>true,
                 "parent"=>0
             );
-      
-//              $cat_id = get_query_var('michsci_category');
-             $cat_id = $_REQUEST['michsci_category'];
+            $cat_id = $_REQUEST['michsci_category'];
+            if(!($cat_id)){
+                $tags = get_terms("michsci_tag", $args);
+                foreach($tags as $tag){
+                    echo '<label class="checkboxLabel"><input class="tagOptions" type="checkbox" name="' . $tag->name . '" value="' . $tag->slug . '"' . '>' . " " . $tag->name . '</label>' ."<br>";
+                }
+                } else {
           
              $myPost = get_posts(array(
                   'post_type' => 'miproduct',
                       echo '<label class="checkboxLabel"><input class="tagOptions" type="checkbox" name="' . $myTerms->name . '" value="' . $myTerms->slug . '"' . '>' . " " . $myTerms->name . '</label>' ."<br>";
                   }
               }
-        
-//              $tags = get_terms("michsci_tag", $args);
-//              foreach($tags as $tag){
-//                  echo '<label class="checkboxLabel"><input class="tagOptions" type="checkbox" name="' . $tag->name . '" value="' . $tag->slug . '"' . '>' . " " . $tag->name . '</label>' ."<br>";
-//              }
+            }
              ?>
                
                 <input type="hidden" name="searchType" value="blog" /> </div>