I am having a hard time determining which lines of code in the category sidebox is used for lookup. I am thinking it is somewhere in this section but am unsure how to implement it into the dropdown.
I am fairly familiar with PHP but it's been a while.
PHP Code:
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 .= '<div class="betterCategories"><a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
if ($box_categories_array[$i]['current']) {
if ($box_categories_array[$i]['has_sub_cat']) {
$content .= '<span class="category-subs-parent">';
$content .= cat_with_pointer($box_categories_array[$i]['name'], 'down', $spacer);
$content .= '</span>';
} else {
$content .= '<span class="category-subs-selected">';
$content .= cat_with_pointer($box_categories_array[$i]['name'], 'nosub', $spacer);
$content .= '</span>';
}
} else {
if ($box_categories_array[$i]['has_sub_cat']) {
$content .= cat_with_pointer($box_categories_array[$i]['name'], 'right', $spacer); }
else {
$content .= cat_with_pointer($box_categories_array[$i]['name'], 'nosub', $spacer); }
}
if ($box_categories_array[$i]['has_sub_cat']) {
$content .= CATEGORIES_SEPARATOR;
}
Bookmarks