themes/BootstrapChildTheme/SyliusShopBundle/views/Taxon/_homepage_catalog.html.twig line 1

Open in your IDE?
  1. {% if taxons|length > 0 %}
  2.     <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3">
  3.         {% for taxon in taxons %}
  4.             <div class="col mb-4 position-relative">
  5.                 {% if taxon.imagesByType('homepage') is not empty %}
  6.                     <a class="image-link d-block bg-gray mb-2" href="{{ path('sylius_shop_product_index', {'slug': taxon.redirect ?: taxon.slug, '_locale': taxon.translation.locale}) }}">
  7.                         <img class="lazy img bg-gray img-fluid rounded ratio ratio-320x246" width="320" height="246" src="{{ taxon.imagesByType('homepage').first.path|imagine_filter('app_shop_home_catalog_small') }}" data-src="{{ taxon.imagesByType('homepage').first.path|imagine_filter('app_shop_home_catalog') }}" alt="{{ taxon.name }}">
  8.                     </a>
  9.                 {% endif %}
  10. {#                <h5 class="title fw-light">#}
  11. {#                    <a class="link link-heading d-inline-flex align-items-center" href="{{ path('sylius_shop_product_index', {'slug': taxon.slug, '_locale': taxon.translation.locale}) }}">#}
  12. {#                        {{ taxon.name }}<svg class="icon bi-arrow-right-short ms-2" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/></svg>#}
  13. {#                    </a>#}
  14. {#                </h5>#}
  15. {#                <img class="lazy img img-fluid w-100 rounded mb-2" src="{{ taxon.imagesByType('homepage').first.path|imagine_filter('app_shop_home_catalog_small') }}" data-src="{{ taxon.imagesByType('homepage').first.path|imagine_filter('app_shop_home_catalog') }}" alt="{{ taxon.name }}">#}
  16.                 <h3 class="taxon-item-title" onclick="window.location.href='{{ path('sylius_shop_product_index', {'slug': taxon.redirect ?: taxon.slug, '_locale': taxon.translation.locale}) }}'">
  17.                     <a href="{{ path('sylius_shop_product_index', {'slug': taxon.redirect ?: taxon.slug, '_locale': taxon.translation.locale}) }}" class="link">{{ taxon.name }}</a>
  18.                 </h3>
  19.             </div>
  20.         {% endfor %}
  21.     </div>
  22. {% endif %}