vendor/shopware/storefront/Resources/views/storefront/layout/navigation/flyout.html.twig line 1

Open in your IDE?
  1. {% block layout_navigation_flyout %}
  2.     {% set category = navigationTree.category %}
  3.     {% set name = category.translated.name %}
  4.     {% block layout_navigation_flyout_bar %}
  5.         <div class="row navigation-flyout-bar">
  6.             {% block layout_navigation_flyout_bar_category %}
  7.                 <div class="col">
  8.                     <div class="navigation-flyout-category-link">
  9.                         {% block layout_navigation_flyout_bar_category_link %}
  10.                             {% if category.type == 'page' %}
  11.                                 <a class="nav-link"
  12.                                    href="{{ seoUrl('frontend.navigation.page', { navigationId: category.id }) }}"
  13.                                    itemprop="url"
  14.                                    title="{{ name }}">
  15.                                     {% block layout_navigation_flyout_bar_category_link_text %}
  16.                                         {{ "general.toCategory"|trans|sw_sanitize }} {{ name }}
  17.                                         {% sw_icon 'arrow-right' style {
  18.                                             'color': 'primary',
  19.                                             'pack':'solid'
  20.                                         } %}
  21.                                     {% endblock %}
  22.                                 </a>
  23.                             {% endif %}
  24.                         {% endblock %}
  25.                     </div>
  26.                 </div>
  27.             {% endblock %}
  28.             {% block layout_navigation_flyout_bar_close %}
  29.                 <div class="col-auto">
  30.                     <div class="navigation-flyout-close js-close-flyout-menu">
  31.                         {% block layout_navigation_flyout_bar_close_content %}
  32.                             {% block layout_utilities_offcanvas_close_icon %}
  33.                                 {% sw_icon 'x' %}
  34.                             {% endblock %}
  35.                         {% endblock %}
  36.                     </div>
  37.                 </div>
  38.             {% endblock %}
  39.         </div>
  40.     {% endblock %}
  41.     {% block layout_navigation_flyout_content %}
  42.         <div class="row navigation-flyout-content">
  43.             {% block layout_navigation_flyout_categories %}
  44.                 <div class="{% if category.media %}col-8 col-xl-9{% else %}col{% endif %}">
  45.                     <div class="navigation-flyout-categories">
  46.                         {% block layout_navigation_flyout_categories_recoursion %}
  47.                             {% sw_include '@Storefront/storefront/layout/navigation/categories.html.twig' with {
  48.                                 navigationTree: navigationTree.children,
  49.                                 navigationMedia: category.media,
  50.                                 page: page
  51.                             } only %}
  52.                         {% endblock %}
  53.                     </div>
  54.                 </div>
  55.             {% endblock %}
  56.             {% block layout_navigation_flyout_teaser %}
  57.                 {% if category.media %}
  58.                 <div class="col-4 col-xl-3">
  59.                     <div class="navigation-flyout-teaser">
  60.                         {% block layout_navigation_flyout_teaser_image %}
  61.                             <a class="navigation-flyout-teaser-image-container"
  62.                                href="{{ seoUrl('frontend.navigation.page', { navigationId: category.id }) }}"
  63.                                title="{{ name }}">
  64.                                 {% sw_thumbnails 'navigation-flyout-teaser-image-thumbnails' with {
  65.                                     media: category.media,
  66.                                     sizes: {
  67.                                         'default': '310px'
  68.                                     },
  69.                                     attributes: {
  70.                                         'class': 'navigation-flyout-teaser-image',
  71.                                         'alt': (category.media.translated.alt ?: ''),
  72.                                         'title': (category.media.translated.title ?: ''),
  73.                                         'data-object-fit': 'cover'
  74.                                     }
  75.                                 } %}
  76.                             </a>
  77.                         {% endblock %}
  78.                     </div>
  79.                 </div>
  80.                 {% endif %}
  81.             {% endblock %}
  82.         </div>
  83.     {% endblock %}
  84. {% endblock %}