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