themes/BootstrapChildTheme/SyliusShopBundle/views/Product/Index/_main.html.twig line 1

Open in your IDE?
  1. {% import '@SyliusShop/Common/Macro/messages.html.twig' as messages %}
  2. {% import '@SyliusShop/Common/Macro/pagination.html.twig' as pagination %}
  3. {# Povodny search nad kategoriou
  4. <div class="mb-3">
  5.     {{ sylius_template_event('sylius.shop.product.index.search', _context) }}
  6.     <div class="clearfix"></div>
  7. </div>
  8. #}
  9. {{ sylius_template_event('sylius.shop.product.index.before_list', {'products': resources.data}) }}
  10. {{ sylius_template_event('app.shop.category_view', _context) }}
  11. {% if resources.data|length > 0 %}
  12.     <div class="product-list-wrap" {{ sylius_test_html_attribute('products') }}>
  13.         <div class="product-list">
  14.             <div class="product-list-content row row-cols-2 row-cols-sm-3 row-cols-md-2 row-cols-lg-3 row-cols-xxl-4 row-cols-xxxxl-6">
  15.                 {% for product in resources.data %}
  16.                     {% include '@SyliusShop/Product/_box.html.twig' %}
  17.                 {% endfor %}
  18.             </div>
  19.         </div>
  20.     </div>
  21.     {{ sylius_template_event('sylius.shop.product.index.before_pagination', {'products': resources.data}) }}
  22.     <div class="d-flex justify-content-end mt-3">
  23.         {{ pagination.simple(resources.data) }}
  24.     </div>
  25. {% else %}
  26.     {{ messages.info('sylius.ui.no_results_to_display') }}
  27. {% endif %}