Hi,
I would like to add a line break to the category links in the sideboxes, so that every 4 links the script generates an extra <br> in the code. i.e instead of:
blue widgets
pink widgets
green widgets
yellow widgets
orange widgets
purple widgets
red widgets
turquoiuse widgets
you would have:
blue widgets
pink widgets
green widgets
yellow widgets
orange widgets
purple widgets
red widgets
turquoiuse widgets
and so on. I believe I have to do something to this portion of the code in tpl_categories, but it is beyond my knowldege of PHP:
Can anybody offer a fellow zenner any assistance? :)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 .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '" title="' . $box_categories_array[$i]['name'] . '">'; if ($box_categories_array[$i]['current']) { if ($box_categories_array[$i]['has_sub_cat']) { $content .= '<span class="category-subs-parent">' . $box_categories_array[$i]['name'] . '</span>'; } else { $content .= '<span class="category-subs-selected">' . $box_categories_array[$i]['name'] . '</span>'; } } else { $content .= $box_categories_array[$i]['name']; } if ($box_categories_array[$i]['has_sub_cat']) { $content .= CATEGORIES_SEPARATOR; } $content .= '</a>'; if (SHOW_COUNTS == 'true') { if ((CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) { $content .= CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX; } } $content .= '<br />' . "\n"; } }
Thanks



