vendor/crehler/advanced-menu/src/Resources/views/storefront/layout/navigation/categories.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/navigation/categories.html.twig' %}
  2. {% block layout_navigation_categories_item %}
  3.     <div class="navigation-flyout-col{% if treeItem.category.customFields.crehler_category_highlighted %} nav-flyout-highlighted{% if treeItem.category.customFields.crehler_category_highlighted_color %} {{ treeItem.category.customFields.crehler_category_highlighted_color }}{% endif %}{% endif %}">
  4.         {% block layout_navigation_categories_item_link %}
  5.             {% if treeItem.category.type == 'folder' %}
  6.                 <div class="nav-item nav-link navigation-flyout-link is-level-{{ level }}"
  7.                      title="{{ name }}">
  8.                     <span itemprop="name">{{ name }}</span>
  9.                 </div>
  10.             {% else %}
  11.                 <a class="nav-item nav-link navigation-flyout-link is-level-{{ level }}{% if id is same as(activeId) %} active{% endif %}"
  12.                    href="{% if link %}{{ link }}{% else %}{{ seoUrl('frontend.navigation.page', { navigationId: id }) }}{% endif %}"
  13.                    itemprop="url"
  14.                    title="{{ name }}">
  15.                     <div class="nav-item__media">
  16.                         {% if treeItem.category.extensions.icon %}
  17.                             {% sw_thumbnails 'nav-item__image' with {
  18.                                 media: treeItem.category.extensions.icon,
  19.                                 sizes: {
  20.                                     'default': '201px'
  21.                                 },
  22.                                 attributes: {
  23.                                     'class': 'nav-item__image',
  24.                                     'alt': name,
  25.                                     'title': name
  26.                                 }
  27.                             } %}
  28.                         {% endif %}
  29.                     </div>
  30.                     <span class="nav-item__name" itemprop="name">{{ name }}</span>
  31.                 </a>
  32.             {% endif %}
  33.         {% endblock %}
  34.         {% block layout_navigation_categories_recoursion %}
  35.             {% if level < navigationMaxDepth %}
  36.                 {% sw_include '@Storefront/storefront/layout/navigation/categories.html.twig' with {
  37.                     navigationTree: treeItem.children,
  38.                     level: level + 1
  39.                 } only %}
  40.             {% endif %}
  41.         {% endblock %}
  42.     </div>
  43. {% endblock %}