themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/_horizontalList.html.twig line 1

Open in your IDE?
  1. {% set wishlist = null %}
  2. {% if app.user %}
  3.     {% set wishlist = app_get_wishlist() %}
  4. {% endif %}
  5. {% set path_route = app.request.attributes.get('_route') %}
  6. {% if products|length > 0  %}
  7.  
  8.     <div class="position-relative position-relative mx-top-index mt-3">
  9.         <div class="btn2-slide-prev{% if path_route == "app_shop_products_visited" %} vu-prev {% elseif path_route == "app_shop_partial_products_same_category_index" %} conseil-prev {% else %} conseil-prev {% endif %}"></div>
  10.         <div class="btn2-slide-next conseil-next"></div> 
  11.         <div class="{% if path_route == "app_shop_products_visited" %} swiper-vu {% elseif path_route == "app_shop_partial_products_same_category_index" %} swiper-collection2 {% else %} swiper-conseil {% endif %} swiper-container ">
  12.             <div class="swiper-wrapper wrapper-article-h">
  13.                 {% for product in products %}
  14.                     {% if product.enabled and app_count_available_variants(product) and (not product.variants.empty() or (product.simple and sylius_inventory_is_available(product.variants.first)) )%}
  15.                         <div class="swiper-slide art-collection-item">
  16.                         {% include '@SyliusShop/Product/_box.html.twig' with {'wishlist': wishlist} %}
  17.                         </div>
  18.                     {% endif %} 
  19.                 {% endfor %}
  20.             </div>
  21.             
  22.         </div>
  23.         <div class="position-relative pt-md-3 container-pagination d-none">
  24.             <div class="swiper-pagination {% if path_route == "app_shop_products_visited" %} swiper-pagination-vu {% elseif path_route == "app_shop_partial_products_same_category_index" %} swiper-pagination-collection2 {% else %} swiper-pagination-conseil {% endif %} position-relative bottom-0"> </div> 
  25.         </div>
  26.         
  27.     </div>
  28.  
  29. {% else %}
  30. <style>
  31. .article-bottom{display:none}
  32. </style>
  33. {% endif %}