Code: Alles auswählen
function tep_show_category($counter) {
global $tree, $categories_string, $cPath_array;
for ($i=0; $i<$tree[$counter]['level']; $i++) {
$categories_string .= '';
}
$categories_string .= '<div class="CatBorderB' . $tree[$counter]['level'] . '"><a href="';
if ($tree[$counter]['parent'] == 0) {
$cPath_new = 'cPath=' . $counter;
} else {
$cPath_new = 'cPath=' . $tree[$counter]['path'];
}
$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '"><div class="CatBorderL' . $tree[$counter]['level'] . '">';
if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '<b>';
}
$categories_string .= $tree[$counter]['name'];
if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '</b>';
}
$categories_string .= '</div></a></div>';
if ($tree[$counter]['next_id'] != false) {
tep_show_category($tree[$counter]['next_id']);
}
}
Code: Alles auswählen
/* Kategorien */
div.CatBorderB0 {
width:210px;
line-height:20px;
}
/* Unterkategorien */
div.CatBorderL0 {
padding-left:10px;
width:210px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
letter-spacing: 0.15em;
line-height:20px;
}
div.CatBorderL1 {
padding-left:25px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#999999;
letter-spacing: 0.15em;
line-height:16px;
}
div.CatBorderL2 {
width:160px;
line-height:16px;
}