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="{{ category_url(category) }}"
  63.                                {% if category_linknewtab(category) %}target="_blank"
  64.                                    {% if category.linkType == "external" %}rel="noopener noreferrer"{% endif %}
  65.                                {% endif %}
  66.                                title="{{ name }}">
  67.                                 {% sw_thumbnails 'navigation-flyout-teaser-image-thumbnails' with {
  68.                                     media: category.media,
  69.                                     sizes: {
  70.                                         'default': '310px'
  71.                                     },
  72.                                     attributes: {
  73.                                         'class': 'navigation-flyout-teaser-image',
  74.                                         'alt': (category.media.translated.alt ?: ''),
  75.                                         'title': (category.media.translated.title ?: ''),
  76.                                         'data-object-fit': 'cover'
  77.                                     }
  78.                                 } %}
  79.                             </a>
  80.                         {% endblock %}
  81.                     </div>
  82.                 </div>
  83.                 {% endif %}
  84.             {% endblock %}
  85.         </div>
  86.     {% endblock %}
  87. {% endblock %}