vendor/shopware/storefront/Resources/views/storefront/layout/navigation/offcanvas/show-active-link.html.twig line 1

Open in your IDE?
  1. {% set name = item.translated.name %}
  2. <li class="navigation-offcanvas-list-item">
  3.     {% block layout_navigation_offcanvas_navigation_categories_list_current_category_item_link %}
  4.         <a class="nav-item nav-link navigation-offcanvas-link is-current-category"
  5.            href="{{ category_url(item) }}"
  6.            itemprop="url"
  7.            {% if category_linknewtab(item) %}target="_blank"{% endif %}
  8.            title="{{ name }}">
  9.             {% block layout_navigation_offcanvas_navigation_categories_list_current_category_item_text %}
  10.                 <span itemprop="name">
  11.                     {{ "general.showCategory"|trans({"%category%": name})|sw_sanitize }}
  12.                 </span>
  13.             {% endblock %}
  14.         </a>
  15.     {% endblock %}
  16. </li>