Hi, below is my code for tpl_categories.php; I've got the 'show all subs' to work but I'm trying to make the main category not linked and bold (to act as a heading). Does anyone know how to do this?
Code:
$content_tm .= '<table cellpadding="0" cellspacing="0" border="0">';
for ($i=0;$i<sizeof($box_categories_array);$i++) {
if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
// skip if this is for the document box (==3)
} else {
$content_tm .= '<tr>';
if ($box_categories_array[$i]['current']) {
if ($box_categories_array[$i]['has_sub_cat']) {
$content_tm .= '<td class="catnavm">' . $box_categories_array[$i]['name'] . '</td>';
} else {
$content_tm .= '<td class="catnavselected"><a href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">' . $box_categories_array[$i]['name'] . '</a></td>';
}
} else {
$content_tm .= '<td class="catnav"><a href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">' . $box_categories_array[$i]['name'] . '</a></td>';
}
if (SHOW_COUNTS == 'true') {
if ((CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) {
$content_tm .= CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX;
}
}
$content_tm .= '</tr>';
}
}
$content_tm .= '</table>';
Thanks
Bookmarks