custom/static-plugins/NdVoorwindenTheme/src/Resources/views/storefront/element/cms-element-manufacturer-overview.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/element/cms-element-manufacturer-overview.html.twig' %}
  2. {% block element_manufacturer_overview_upper_nav %}
  3.     <section class="brand-listing-navigation overflow-x-auto">
  4.         <ul class="brand-listing-nav-list flex divide-grey-400 justify-center w-max lg:w-full">
  5.             {% for key, value in manufacturers %}
  6.             <li class="brand-listing-nav-item nav-item_{{ key }}">
  7.                 <a href="#brand_{{ key }}"
  8.                    class="brand-listing-nav-trigger flex items-center justify-center uppercase text-base text-display text-grey-600 transition hover:text-grey-200 p-3"
  9.                    id="trigger_{{ key }}">{{ key }}</a>
  10.             </li>
  11.             {% endfor %}
  12.         </ul>
  13.     </section>
  14. {% endblock %}
  15. {% block element_manufacturer_overview_main_container %}
  16.     <section data-element="{{ element.type }}" class="boxed-layout" id="brand-listing-container">
  17.                 {% if manufacturers|length > 0 %}
  18.                 <span id="brand-listing-count" class="hidden">{{ manufacturers|length }}</span>
  19.                 <ul class="max-w-[1710px] w-full pl-6 lg:pb-10 mx-auto columns-1 sm:columns-2 md:columns-3 grid-gap-10 pb-5 lg:py-5">
  20.                         {% for index, merken in manufacturers %}
  21.                             {# {% for index, merken in alphabet %} #}
  22.                             {% if merken %}
  23.                                 <li class="brand-listing-collection items-start grid-gap-6 mb-6 break-inside-avoid lg:grid-gap-4 md:mr-8">
  24.                                     <div class="relative h-full flex">
  25.                                         <div class="flex justify-center items-center w-6 h-6 scroll-mt-4 text-black absolute -left-[34px] top-[10px] text-2xl font-display"
  26.                                              id="brand_{{ index }}">
  27.                                             {{ index }}
  28.                                         </div>
  29.                                         <span class="w-full h-[1px] bg-grey-200 my-6"></span>
  30.                                     </div>
  31.                                     <ul class="brand-list grid">
  32.                                         {% if merken %}
  33.                                             {% for index, brand in merken %}
  34.                                                 <li class="brand-listing-item py-2" data-id="{{ brand.id }}">
  35.                                                     <a {% if brand.url %} href="{{ brand.url }}" {% endif %}
  36.                                                             class="inline-block text-sm font-bold font-accent uppercase tracking-wider text-black{% if brand.url %} btn-underline{% endif %}"
  37.                                                             title="{{ brand.name }}">
  38.                                                         {{ brand.name }}
  39.                                                     </a>
  40.                                                 </li>
  41.                                             {% endfor %}
  42.                                         {% else %}
  43.                                             <li class="no-brands-found text-sm py-2">
  44.                                                 {{ "pages.brands.notFound"|trans|sw_sanitize }}
  45.                                             </li>
  46.                                         {% endif %}
  47.                                     </ul>
  48.                                 </li>
  49.                             {% endif %}
  50.                         {% endfor %}
  51.                 </ul>
  52.             {% else %}
  53.                 <span id="brand-listing-count" class="hidden">0</span>
  54.                 <div class="text-lg text-center mx-auto my-20">{{ "pages.brands.notFound"|trans|sw_sanitize }}</div>
  55.             {% endif %}
  56.     </section>
  57. {% endblock %}