js css
This commit is contained in:
@@ -31,8 +31,18 @@ if (!function_exists('render_mega_category_children')) {
|
||||
<?php if ($megaCategories !== []): ?>
|
||||
<nav class="category-mega-bar" aria-label="Категории товаров">
|
||||
<div class="category-mega-inner">
|
||||
<a class="mega-root mega-all-link" href="/catalog">Весь каталог</a>
|
||||
<a class="mega-root mega-virtual-link is-promo" href="/#home-promos">Акции</a>
|
||||
<a class="mega-root mega-virtual-link is-new" href="/#home-new">Новинки</a>
|
||||
<?php foreach ($megaCategories as $category): ?>
|
||||
<?php if (($category['slug'] ?? '') === 'myasnaya-gastronomiya' || ($category['name'] ?? '') === 'Мясная гастрономия') {
|
||||
<?php
|
||||
$hiddenTopCategorySlugs = ['myasnaya-gastronomiya', 'molochnaya-produkciya'];
|
||||
$hiddenTopCategoryNames = ['Мясная гастрономия', 'Молочная продукция'];
|
||||
|
||||
if (
|
||||
in_array((string) ($category['slug'] ?? ''), $hiddenTopCategorySlugs, true)
|
||||
|| in_array((string) ($category['name'] ?? ''), $hiddenTopCategoryNames, true)
|
||||
) {
|
||||
continue;
|
||||
} ?>
|
||||
<?php $iconName = category_tree_icon((string) $category['name']); ?>
|
||||
|
||||
Reference in New Issue
Block a user