restricted dropdown need to fix link
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 12 Jan 2016 19:32:08 +0000 (14:32 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 12 Jan 2016 19:32:08 +0000 (14:32 -0500)
index.php

index 138ab36..5e66988 100644 (file)
--- a/index.php
+++ b/index.php
@@ -483,23 +483,20 @@ function michsci_get_terms_dropdown($cat_id)
     $taxonomyName = MICHSCI_CATEGORY_NAME;
     
     if($cat_id){
-        
         $main = get_term($cat_id, MICHSCI_CATEGORY_NAME);
         $cats_child = get_term_children($cat_id, $taxonomyName);
-        $output ="<select id='categoryDropdown' name=\"" . MICHSCI_CATEGORY_NAME . "\"><option value=\"\">Select " . $main->name . "</option>";
+        $output ="<select id='categoryDropdown' name=\"" . MICHSCI_CATEGORY_NAME . "\"><option value=\"\">" . $main->name . "</option>";
         foreach($cats_child as $cat){
-            echo $cat . " ";
           $output .= '<option value="' . $cat . '"';
            if ($_REQUEST[MICHSCI_CATEGORY_NAME] == $cat) {
                 $output .= ' selected';
             }
             $catName = get_term($cat, MICHSCI_CATEGORY_NAME);
-             $output .= '>' . $catName->name. '</option>';
+             $output .= '>' . "&nbsp&nbsp&nbsp" . $catName->name. '</option>';
         }
         $output .="</select>";
     } else {
         
-        
     $parent_terms = get_terms($taxonomyName, array('parent' => 0, 'orderby' => 'name', 'hide_empty' => false));
     $output ="<select id='categoryDropdown' name=\"" . MICHSCI_CATEGORY_NAME . "\"><option value=\"\">Select " . MICHSCI_CATEGORY_SINGLE . "</option>";
         // get parent categories