added id to nested group

master
A1Gard 1 day ago
parent e5765b5339
commit 8fdf482786

@ -431,7 +431,7 @@ function showCatNested($cats, $parent = null)
$ret = ""; $ret = "";
foreach ($cats as $cat) { foreach ($cats as $cat) {
if ($cat->parent_id == $parent & !$cat->hide) { if ($cat->parent_id == $parent & !$cat->hide) {
$ret .= "<li>"; $ret .= "<li class='category-nested-{$cat->id}'>";
$ret .= "<a href='" . $cat->webUrl() . "'>"; $ret .= "<a href='" . $cat->webUrl() . "'>";
$ret .= $cat->name . '</a>'; $ret .= $cat->name . '</a>';
$ret .= showCatNested($cats, $cat->id); $ret .= showCatNested($cats, $cat->id);

Loading…
Cancel
Save