js css
This commit is contained in:
@@ -33,6 +33,17 @@ if (!function_exists('category_tree_has_current')) {
|
||||
}
|
||||
?>
|
||||
<ul class="category-list depth-<?= e((string) $depth) ?>">
|
||||
<?php if ($depth === 0): ?>
|
||||
<li class="category-special-link is-all">
|
||||
<a href="/catalog"><span>Весь каталог</span></a>
|
||||
</li>
|
||||
<li class="category-special-link">
|
||||
<a href="/#home-promos"><span>Акции</span></a>
|
||||
</li>
|
||||
<li class="category-special-link">
|
||||
<a href="/#home-new"><span>Новинки</span></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($items as $category): ?>
|
||||
<?php $isCurrent = ($currentSlug ?? '') === $category['slug']; ?>
|
||||
<?php $hasChildren = !empty($category['children']); ?>
|
||||
|
||||
Reference in New Issue
Block a user