custom/plugins/Itptheme/src/Resources/views/storefront/layout/navigation/flyout.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/navigation/flyout.html.twig' %}
  2. {# CIO-AI-Driven: The desktop hover flyout renders the cascading mega menu
  3.    (fixed 3 levels with fixed column widths) ONLY for the Taster category.
  4.    All other top-level categories fall back to the stock Shopware flyout. #}
  5. {% set isMegaMenu = navigationTree.category.id == 'e6245cf3105048d69cb220a9ab115030' %}
  6. {% block layout_navigation_flyout_bar %}
  7.     {% if not isMegaMenu %}
  8.         {{ parent() }}
  9.     {% endif %}
  10. {% endblock %}
  11. {% block layout_navigation_flyout_content %}
  12.     {% if isMegaMenu %}
  13.         <div class="mega-menu-stage" data-mega-menu-height-sync="true">
  14.             {% sw_include '@Storefront/storefront/layout/navigation/categories-mega-menu.html.twig' with {
  15.                 navigationTree: navigationTree.children,
  16.                 level: 0,
  17.                 page: page
  18.             } only %}
  19.         </div>
  20.     {% else %}
  21.         {{ parent() }}
  22.     {% endif %}
  23. {% endblock %}