custom/plugins/VKTheme/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. {% block layout_navigation_flyout %}
  3.     {% set category = navigationTree.category %}
  4.     {% set name = category.translated.name %}
  5.     {% block layout_navigation_flyout_bar %}
  6.         <div class="navigation-flyout-bar">
  7.             {% block layout_navigation_flyout_bar_category %}
  8.                 <div class="navigation-flyout-category-link">
  9.                     {% block layout_navigation_flyout_bar_category_link %}
  10.                         {% if category.type == 'page' %}
  11.                             <a class="flyout-header"
  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.                                     {{ name }}
  17.                                 {% endblock %}
  18.                             </a>
  19.                         {% endif %}
  20.                     {% endblock %}
  21.                 </div>
  22.             {% endblock %}
  23.         </div>
  24.     {% endblock %}
  25.     {% block layout_navigation_flyout_content %}
  26.         <div class="row my-3 px-3" style="display:grid;grid-template-columns:1fr 1fr 1fr;gap:30px 0;">
  27.             {% for item in navigationTree.children %}
  28.                 <div class="flyout-content">
  29.                     <div class="d-flex" style="flex-direction:column;align-items:center;">
  30.                         <span class="">
  31.                             <a href="{{ category_url(item.category) }}">
  32.                                 {% if item.category.media.url %}
  33.                                     <img class="flyout-child-img" src="{{ item.category.media.url }}" loading="lazy" height="100" style="width:100%;opacity:1;">
  34.                                 {% else %}
  35.                                     <div style="height:80px;width:100%;border:1px solid orange;border-radius:5px;"> </div>
  36.                                 {% endif %}
  37.                             </a>
  38.                         </span>
  39.                         <a class="" href="{{ category_url(item.category) }}" style="font-size:larger;">
  40.                             {{ item.category.name }}
  41.                         </a>
  42.                         {% for item2 in item.children %}
  43.                             <div class="">
  44.                                 <div style="display:grid;justify-items:center;">
  45.                                     {% if item2.category.media.url %}<img src="{{ item2.category.media.url }}" alt="" height="50">{% endif %}
  46.                                     <small><a href="{{ category_url(item2.category) }}" style="font-weight:400;font-size:12px;">{{ item2.category.name }}</a></small>
  47.                                 </div>
  48.                             </div>
  49.                         {% endfor %}
  50.                     </div>
  51.                 </div>
  52.             {% endfor %}
  53.         </div>
  54.     {% endblock %}
  55. {% endblock %}