custom/plugins/Accentum/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_link %}
  3.     {% set emcgnCategoryImg = treeItem.category.media %}
  4.     {% if treeItem.category.type != 'folder' %}
  5.         {% if emcgnCategoryImg.url %}
  6.             <a class="nav-item nav-link navigation-flyout-link is-level-{{ level }}{% if id is same as(activeId) %} active{% endif %}"
  7.                href="{% if link %}{{ link }}{% else %}{{ seoUrl('frontend.navigation.page', { navigationId: id }) }}{% endif %}"
  8.                itemprop="url"
  9.                title="{{ name }}">
  10.                 {% sw_thumbnails 'cms-image-thumbnails' with {
  11.                     media: emcgnCategoryImg,
  12.                     sizes: {
  13.                         'default': '150px'
  14.                     },
  15.                     attributes: {
  16.                         'class': 'emcgn-nav-item-img',
  17.                         'alt': treeItem.category.name,
  18.                         'title': treeItem.category.name
  19.                     }
  20.                 } %}
  21.             </a>
  22.         {% endif %}
  23.     {% endif %}
  24.     {{ parent() }}
  25. {% endblock %}