PDA

View Full Version : 'Category Box as Nested Unordered List for EZ(er) CSS & Dynamic menus v 1.00



michael_s
04-26-2010, 12:00 PM
I added diffrent stylesheet's for IE browser.

Also found 'display image bug' in li classes: in ul_categories.php line 158:


if (isset($cPath_array) && in_array($key, $cPath_array) && $classname_for_selected) {
$this_cat_class = $classname_for_selected . ' ';
} else {
$this_cat_class = '';
}

$output .= '<li class="'.$this_cat_class.'cat_lev_'.$level.'"><a class="link_lev_' .$level.'" href="';<br /> <br /> if (!$level) {<br /> unset($GLOBALS['cPath_set']);<br /> $GLOBALS['cPath_set'][0] = $key;<br /> $cPath_new = 'cPath=' . $key;<br /> <br /> } else {<br /> $GLOBALS['cPath_set'][$level] = $key; <br /> $cPath_new = 'cPath=' . implode("_", array_slice($GLOBALS['cPath_set'], 0, ($level+1)));br / }br / br / if (tep_has_category_subcategories($key) && $classname_for_parent) {br / $this_parent_class = ' class="'.$classname_for_parent.'"';br / } else {br / $this_parent_class = ''; br / } br / br / $output .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '"'.$this_parent_class.'>'.$val;



should be:

if (!$level) {
unset($GLOBALS['cPath_set']);
$GLOBALS['cPath_set'][0] = $key;
$cPath_new = 'cPath=' . $key;

} else {
$GLOBALS['cPath_set'][$level] = $key;
$cPath_new = 'cPath=' . implode("_", array_slice($GLOBALS['cPath_set'], 0, ($level+1)));
}

$output .= '