vendor/shopware/storefront/Resources/views/storefront/layout/header/actions/service-menu-widget.html.twig line 1

Open in your IDE?
  1. {# @deprecated tag:v6.5.0 - file will be removed, menu has been moved to footer #}
  2. {% block layout_header_actions_service_menu_widget %}
  3.     {% if position is empty %}
  4.         {% set position = 'top-bar' %}
  5.     {% endif %}
  6.     {% if page.header.serviceMenu|length > 0 %}
  7.         <div class="top-bar-nav-item top-bar-menu">
  8.             {% block layout_header_actions_service_menu_list %}
  9.                 <div class="service-menu dropdown">
  10.                     <button class="btn dropdown-toggle top-bar-nav-btn"
  11.                             type="button"
  12.                             id="serviceMenuDropdown-{{ position }}"
  13.                             {{ dataBsToggleAttr }}="dropdown"
  14.                             aria-haspopup="true"
  15.                             aria-expanded="false">
  16.                         {% sw_icon 'help' %}
  17.                         <span class="top-bar-nav-text">{{ "header.indexLinkService"|trans|sw_sanitize }}</span>
  18.                     </button>
  19.                     {% block layout_header_actions_service_menu_items %}
  20.                         <div class="dropdown-menu dropdown-menu-right"
  21.                              aria-labelledby="serviceMenuDropdown-{{ position }}">
  22.                             {% for category in page.header.serviceMenu %}
  23.                                 {# @deprecated tag:v6.5.0 - Use "category.translated.externalLink" directly or category_url function instead. #}
  24.                                 {% set externalLink = category.translated.externalLink %}
  25.                                 <a class="top-bar-list-item dropdown-item"
  26.                                    href="{{ category_url(category) }}"
  27.                                    {% if category_linknewtab(category) %}target="_blank"{% endif %}
  28.                                    title="{{ category.translated.name }}">{{ category.translated.name }}</a>
  29.                             {% endfor %}
  30.                         </div>
  31.                     {% endblock %}
  32.                 </div>
  33.             {% endblock %}
  34.         </div>
  35.     {% endif %}
  36. {% endblock %}