templates/front/catalog/model/view/assets.html.twig line 1

Open in your IDE?
  1. <div class="pictures-ctn">
  2. <div class="scene">
  3. {% include 'front/modules/wishlist/bt.html.twig' %}
  4. {% if defaultProduct %}
  5. <div class="pictures">
  6. {% for picture in defaultProduct.pictures %}
  7. <a class="picture {% if loop.index0 == 0 %}on{% endif %}" data-code="{{ picture.code }}" data-fancybox="products-assets" data-src="{{ asset(picture.webPath) | imagine_filter('product_zoom') }}">
  8. <img src="{{ asset(picture.webPath) | imagine_filter('product_large') }}" width="400" height="400" alt="{{ picture.title?picture.title:product.name }}">
  9. </a>
  10. {% endfor %}
  11. </div>
  12. {% endif %}
  13. <div class="flags">
  14. {% if product.isMadeInFrance() %}
  15. <div class="flag origin made-in-france">
  16. <img src="{{ asset('img/pictos/cocarde.svg') }}" alt="Made in France">
  17. <span>{% trans %}Fabriqué<br>en France{% endtrans %}</span>
  18. </div>
  19. {% endif %}
  20. {% if product.guaranty %}
  21. <div class="flag guaranty">
  22. <img src="{{ asset('img/pictos/check.svg') }}" alt="Made in France">
  23. <span>
  24. {% trans %}Garantie{% endtrans %}
  25. {{ product.guaranty }} {% trans %}an{% endtrans %}{% if product.guaranty > 1 %}s{% endif %}
  26. </span>
  27. </div>
  28. {% endif %}
  29. </div>
  30. </div>
  31. {% if defaultProduct %}
  32. <ul class="thumbs">
  33. {% for picture in defaultProduct.pictures %}
  34. <li class="thumb" >
  35. <a {% if loop.index0 == 0 %}class="on" {% endif %} data-index="{{ loop.index0 }}"><img src="{{ asset(picture.webPath) | imagine_filter('product_small') }}" width="100" height="100" alt="{{ picture.title?picture.title:product.name }}"></a>
  36. </li>
  37. {% endfor %}
  38. </ul>
  39. {% endif %}
  40. </div>