changes
This commit is contained in:
@@ -38,10 +38,11 @@ class ShopPageShowCatsInsteadAction extends RadAction
|
||||
$withoutUncategorized = array_filter($productCats, fn ($c) => $c->slug != "uncategorized");
|
||||
$topLevelCats = array_filter($withoutUncategorized, fn ($c) => $c->parent == 0);
|
||||
|
||||
// echo
|
||||
echo "<div class='row'>";
|
||||
foreach ($topLevelCats as $cat) {
|
||||
echo "<div class='col'>".site()->render("page-tile", $cat)."</div>";
|
||||
}
|
||||
echo "</div>";
|
||||
// var_dump($topLevelCats);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user