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

Open in your IDE?
  1. {% block layout_header_actions_service_menu_widget %}
  2.     {% if position is empty %}
  3.         {% set position = 'top-bar' %}
  4.     {% endif %}
  5.     {% if page.header.serviceMenu|length > 0 %}
  6.         <div class="top-bar-nav-item top-bar-menu">
  7.             {% block layout_header_actions_service_menu_list %}
  8.                 <div class="service-menu dropdown">
  9.                     <button class="btn dropdown-toggle top-bar-nav-btn"
  10.                             type="button"
  11.                             id="serviceMenuDropdown-{{ position }}"
  12.                             data-toggle="dropdown"
  13.                             aria-haspopup="true"
  14.                             aria-expanded="false">
  15.                         {% sw_icon 'help' %}
  16.                         <span class="top-bar-nav-text">{{ "header.indexLinkService"|trans|sw_sanitize }}</span>
  17.                     </button>
  18.                     {% block layout_header_actions_service_menu_items %}
  19.                         <div class="dropdown-menu dropdown-menu-right"
  20.                              aria-labelledby="serviceMenuDropdown-{{ position }}">
  21.                             {% for category in page.header.serviceMenu %}
  22.                                 {% set externalLink = category.translated.externalLink %}
  23.                                 <a class="top-bar-list-item dropdown-item"
  24.                                    href="{% if externalLink %}{{ externalLink }}{% else %}{{ seoUrl('frontend.navigation.page', { navigationId: category.id }) }}{% endif %}"
  25.                                    title="{{ category.translated.name }}">{{ category.translated.name }}</a>
  26.                             {% endfor %}
  27.                         </div>
  28.                     {% endblock %}
  29.                 </div>
  30.             {% endblock %}
  31.         </div>
  32.     {% endif %}
  33. {% endblock %}