Sto provando a metter mano al file
includes/boxes/categories.php che gestisce il tree delle categorie
ebbene vorrei aggiungere uno spazio fra una categoria e l'altra così da avere
categoria
spazio
categoria2
sottocategoria
sottocategoria2
spazio
categoria3
.
.
.
nel codice, ho trovato
Codice: Seleziona tutto
function tep_show_category($counter) {
global $tree, $categories_string, $cPath_array;
for ($i=0; $i<$tree[$counter]['level']; $i++) {
$categories_string .= " ";
}
$categories_string .= '<img src="images/sign_link.jpg" width="13" height="14"> <a class="m11" href="';
if ($tree[$counter]['parent'] == 0) {
$cPath_new = 'cPath=' . $counter;
} else {
$cPath_new = 'cPath=' . $tree[$counter]['path'];
}
$categories_string .= tep_href_link(FILENAME_PRODUCTS, $cPath_new) . '">';
if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '<span style="font-weight:bold; text-decoration:underline; color:#FF0000">';
}
// display category name
$categories_string .= $tree[$counter]['name'];
if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '</span>';
}
if (tep_has_category_subcategories($counter)) {
$categories_string .= '->';
}
$categories_string .= '</a>';
if (SHOW_COUNTS == 'true') {
$products_in_category = tep_count_products_in_category($counter);
if ($products_in_category > 0) {
$categories_string .= '<span style="color:#E80377"> (' . $products_in_category . ')</span>';
}
}
$categories_string .= '<br>';
if ($tree[$counter]['next_id'] != false) {
tep_show_category($tree[$counter]['next_id']);
}
}
?>
categoria
spazio
categoria2
spazio
sottocategoria
spazio
sottocategoria2
spazio
categoria3
.
.
.
Come posso aggiustare il codice così che solo nelle categorie principali metta un br?