If all of this stays:
PHP Code:
$content .= cat_box_subtext($current_path);
}
}
$content .= cat_ul_manage(0, $prev_cat_depth, 0) . '</ul>' . "\n";
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
// display a separator between categories and links
Making this the last line of replaced code:
Code:
$content .= '</a>';
The page is showing all main links as bold text only. No subcategories, not styling, and no hidden categories. You can see it live here: http://www.lasilhouettelingerie.com/...ssories-c-193/
I was able to use Beyond Compare to merge changes. All the items in red, are said differences that were merged into my file:
----------------------------------------------------------------------------
$skip_cat = 0;
$skip_cat = cat_active_level_manage($current_path);
$cat_depth = substr_count($current_path,'_');//no top cat link
if ($skip_cat or 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 {
$cat_box_heading = cat_box_heading($current_path);
$cat_ul = cat_ul_manage($current_path, $prev_cat_depth, $cat_box_heading[0]);
$content .= $cat_ul;
$content .= $cat_box_heading[1];
$cat_name_display = cat_name_display($box_categories_array[$i]['name'], $current_path);
$active_class = ($box_categories_array[$i]['current'])? ($box_categories_array[$i]['has_sub_cat']? 'parent': 'selected'): 'not-selected';
//$content .= ' <li class="cat-' . $new_style . '"><a class="cat-' . $active_class . $cat_name_display[0] . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
if ($cat_depth == 0) {//no top cat link
$content .= str_repeat(' ',$cat_depth) . ' <li class="cat-' . $new_style . '"><span class="cat-' . $active_class . $cat_name_display[0] . '">';
} else {
$content .= str_repeat(' ',$cat_depth) . ' <li class="cat-' . $new_style . '"><a class="cat-' . $active_class . $cat_name_display[0] . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
}//no top cat link
$content .= $cat_name_display[1];
if ($box_categories_array[$i]['has_sub_cat'] and $cat_name_display[0] == '-text') {
$content .= CATEGORIES_SEPARATOR;
}
if (SHOW_COUNTS == 'true' and $cat_name_display[0] == '-text') {
if ((CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) {
$content .= '<span class="catCount">' . CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX . '</span>';
}
}
//$content .= '</a>';
if ($cat_depth == 0) {//no top cat link
$content .= '</span>';
} else {
$content .= '</a>';
}//no top cat link
}
}
$content .= cat_ul_manage(0, $prev_cat_depth, 0) . '</ul>' . "\n";
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
// display a separator between categories and links
------------------------------------------------------------------
Something seems to be breaking the styling from the page.