{% block layout_header_actions_service_menu_widget %}
{% if position is empty %}
{% set position = 'top-bar' %}
{% endif %}
{% if page.header.serviceMenu|length > 0 %}
<div class="top-bar-nav-item top-bar-menu">
{% block layout_header_actions_service_menu_list %}
<div class="service-menu dropdown">
<button class="btn dropdown-toggle top-bar-nav-btn"
type="button"
id="serviceMenuDropdown-{{ position }}"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false">
{% sw_icon 'help' %}
<span class="top-bar-nav-text">{{ "header.indexLinkService"|trans|sw_sanitize }}</span>
</button>
{% block layout_header_actions_service_menu_items %}
<div class="dropdown-menu dropdown-menu-right"
aria-labelledby="serviceMenuDropdown-{{ position }}">
{% for category in page.header.serviceMenu %}
{% set externalLink = category.translated.externalLink %}
<a class="top-bar-list-item dropdown-item"
href="{% if externalLink %}{{ externalLink }}{% else %}{{ seoUrl('frontend.navigation.page', { navigationId: category.id }) }}{% endif %}"
title="{{ category.translated.name }}">{{ category.translated.name }}</a>
{% endfor %}
</div>
{% endblock %}
</div>
{% endblock %}
</div>
{% endif %}
{% endblock %}