custom/plugins/TcinnThemeWareModern/src/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. {% sw_extends '@Storefront/storefront/layout/header/actions/service-menu-widget.html.twig' %}
  3. {# TODO: prüfen... #}
  4. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  5. {# ThemeWare: Set theme variables #}
  6. {% set twtHeaderTopBarJustifyContent = theme_config('twt-header-top-bar-justify-content') %}
  7. {% set twtHeaderType = theme_config('twt-header-type') %}
  8. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  9. {# TODO: HC-Architecture... #}
  10. {# ThemeWare: Changes on the service-menu-dropdown #}
  11. {# TODO:
  12.     - Default-Konfiguration ergänzen...
  13.     - Check if this can be solved with scss...
  14. #}
  15. {% block layout_header_actions_service_menu_items %}
  16.     {% if twtHeaderType == 4 or twtHeaderTopBarJustifyContent == 'flex-start' %}
  17.         <div class="dropdown-menu dropdown-menu-left"
  18.              aria-labelledby="serviceMenuDropdown-{{ position }}">
  19.             {% for category in page.header.serviceMenu %}
  20.                 {# @deprecated tag:v6.5.0 - Use "category.translated.externalLink" directly or category_url function instead. #}
  21.                 {% set externalLink = category.translated.externalLink %}
  22.                 <a class="top-bar-list-item dropdown-item"
  23.                    href="{% if externalLink %}{{ externalLink }}{% else %}{{ seoUrl('frontend.navigation.page', { navigationId: category.id }) }}{% endif %}"
  24.                    title="{{ category.translated.name }}">{{ category.translated.name }}</a>
  25.             {% endfor %}
  26.         </div>
  27.     {% else %}
  28.         {# Default block #}
  29.         {{ parent() }}
  30.     {% endif %}
  31. {% endblock %}