templates/front/catalog/product/view.html.twig line 122

Open in your IDE?
  1. {% extends 'front/front.html.twig' %}
  2. {% block bodyClass %}product{% endblock %}
  3. {% block metas %}
  4. <title>{{ productDescription.headTitleTag ? productDescription.headTitleTag : productDescription.name }}</title>
  5. <meta name="description" content="{{ productDescription.headDescTag ? productDescription.headDescTag : productDescription.description|metadescription }}">
  6. <link rel="canonical" href="{{ url('product',{id:product.id, url:productDescription.url}) }}" />
  7. {% endblock %}
  8. {% block structuredData %}
  9. {% set cpt = 1 %}
  10. <script type="application/ld+json">
  11. {
  12. "@context": "https://schema.org",
  13. "@type": "BreadcrumbList",
  14. "itemListElement":
  15. [
  16. {
  17. "@type": "ListItem",
  18. "position": {{ cpt }},
  19. "item":
  20. {
  21. "@id": "{{ url('index') }}",
  22. "name": "{% trans %}Vivog | Matériel pour les toiletteurs et éleveurs{% endtrans %}"
  23. }
  24. },
  25. {% for p in path %}
  26. {% set cpt = cpt + 1 %}
  27. {
  28. "@type": "ListItem",
  29. "position": {{ cpt }},
  30. "item":
  31. {
  32. {% if loop.index == 1 %}
  33. "@id": "{{ url('universe',{url:p.url,id:p.id}) }}",
  34. {% else %}
  35. "@id": "{{ url('category',{url:p.url,id:p.id}) }}",
  36. {% endif %}
  37. "name": "{{ p.name }}"
  38. }
  39. },
  40. {% endfor %}
  41. {% set cpt = cpt + 1 %}
  42. {
  43. "@type": "ListItem",
  44. "position": {{ cpt }},
  45. "item":
  46. {
  47. "@id": "{{ url('product',{url:product.url,id:product.id}) }}",
  48. "name": "{{ product.name }}"
  49. }
  50. }
  51. ]
  52. }
  53. </script>
  54. <style>
  55. .caracteristics table td{ min-width: 300px;padding: 5px 20px 5px 0; }
  56. </style>
  57. {% endblock %}
  58. {% block featured %}{% endblock %}
  59. {% block breadcrumbs %}
  60. {% include 'front/layout/breadcrumbs.html.twig' with {product:product} %}
  61. {% endblock %}
  62. {% block content %}
  63. {% include 'front/layout/messages.html.twig' %}
  64. <div class="product-view">
  65. <div class="ctn">
  66. {% include 'front/catalog/product/view/infos.html.twig' with {discounts:discountsList} %}
  67. </div>
  68. <div class="ctn">
  69. {% if productDescription.description %}
  70. <div class="tab-content rte section" id="description">
  71. <div class="title-ctn">
  72. <div class="title">{% trans %}Description détaillée{% endtrans %}</div>
  73. </div>
  74. {{ productDescription.description|raw }}
  75. </div>
  76. {% endif %}
  77. {% if product.notice %}
  78. <div class="tab-content rte section" id="notice">
  79. <div class="title-ctn">
  80. <div class="title">{% trans %}Notice{% endtrans %}</div>
  81. </div>
  82. <p class="notice"><a href="{{ product.noticeUrl }}" target="_blank">{% trans %}Télécharger la notice d'utilisation{% endtrans %}</a></p>
  83. </div>
  84. {% endif %}
  85. {% if productDescription.conseil1 %}
  86. <div class="section rte advices">
  87. <div class="title-ctn">
  88. <div class="title">{% trans %}Conseils et astuces{% endtrans %}</div>
  89. </div>
  90. {{ productDescription.conseil1|raw }}
  91. </div>
  92. {% endif %}
  93. {% if product.video %}
  94. <div class="tab-content rte section" id="video">
  95. <div class="title-ctn">
  96. <div class="title">{% trans %}Vid&Eacute;o{% endtrans %}</div>
  97. <hr>
  98. </div>
  99. <div class="video-ctn">
  100. {{ product.video|raw }}
  101. </div>
  102. </div>
  103. {% endif %}
  104. {% include 'front/catalog/product/view/caracteristics.html.twig' %}
  105. </div>
  106. {% if associates %}
  107. {% include 'front/catalog/product/carousel.html.twig' with {products:associates, title:'Produits associés'|trans, withWrapper:true} %}
  108. {% endif %}
  109. <div class="ctn" style="padding: 30px 0;">
  110. {% if inCategory %}
  111. {% include 'front/catalog/product/carousel.html.twig' with {products:inCategory, title:'Dans la même catégorie'|trans, withWrapper:false} %}
  112. {% endif %}
  113. </div>
  114. {{ render(controller(
  115. 'App\\Controller\\Front\\Modules\\SeenProductsController::block',
  116. { 'request': app.request }
  117. )) }}
  118. <div class="ctn">
  119. {% if pathTags %}
  120. <div class="section rte tags">
  121. <div class="title-ctn">
  122. <div class="title">{% trans %}Craquez aussi pour...{% endtrans %}</div>
  123. </div>
  124. {{ pathTags|raw }}
  125. </div>
  126. {% endif %}
  127. </div>
  128. {# <div class="ctn">
  129. <div class="section tags module-categories">
  130. <div class="title-ctn">
  131. <div class="title">{% trans %}No catégories{% endtrans %}</div>
  132. </div>
  133. <div class="content">
  134. {{ pathTags|raw }}
  135. </div>
  136. </div>
  137. </div>#}
  138. </div>
  139. {% endblock %}
  140. {% block javascripts %}
  141. <script src="{{ asset('js/product.js') }}"></script>
  142. <script>
  143. $(document).ready(function(){
  144. {# tabs.init();#}
  145. product.init();
  146. });
  147. </script>
  148. {% endblock %}