var/cache/dev/twig/a7/a75d9e4a29bc39bd999b597a979462e2.php line 288

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* front/catalog/product/view/infos.html.twig */
  16. class __TwigTemplate_8c606e953050dc288e5adbf8b479c383 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/product/view/infos.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/product/view/infos.html.twig"));
  38. // line 1
  39. yield "<div class=\"product-infos\">
  40. <div class=\"pictures-ctn\">
  41. <div class=\"scene\">
  42. ";
  43. // line 4
  44. yield from $this->load("front/modules/wishlist/bt.html.twig", 4)->unwrap()->yield($context);
  45. // line 5
  46. yield " ";
  47. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 5, $this->source); })()), "pictures", [], "any", false, false, false, 5)) > 0)) {
  48. // line 6
  49. yield " <div class=\"pictures\">
  50. ";
  51. // line 7
  52. $context['_parent'] = $context;
  53. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 7, $this->source); })()), "pictures", [], "any", false, false, false, 7));
  54. $context['loop'] = [
  55. 'parent' => $context['_parent'],
  56. 'index0' => 0,
  57. 'index' => 1,
  58. 'first' => true,
  59. ];
  60. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  61. $length = count($context['_seq']);
  62. $context['loop']['revindex0'] = $length - 1;
  63. $context['loop']['revindex'] = $length;
  64. $context['loop']['length'] = $length;
  65. $context['loop']['last'] = 1 === $length;
  66. }
  67. foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
  68. // line 8
  69. yield " <a ";
  70. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 8)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  71. yield "class=\"on\" ";
  72. }
  73. yield " data-fancybox=\"products-assets\" data-src=\"";
  74. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "webPath", [], "any", false, false, false, 8)), "product_zoom"), "html", null, true);
  75. yield "\"><img src=\"";
  76. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "webPath", [], "any", false, false, false, 8)), "product_large"), "html", null, true);
  77. yield "\" width=\"400\" height=\"400\" alt=\"";
  78. yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "title", [], "any", false, false, false, 8)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "title", [], "any", false, false, false, 8), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 8, $this->source); })()), "name", [], "any", false, false, false, 8), "html", null, true)));
  79. yield "\"></a>
  80. ";
  81. ++$context['loop']['index0'];
  82. ++$context['loop']['index'];
  83. $context['loop']['first'] = false;
  84. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  85. --$context['loop']['revindex0'];
  86. --$context['loop']['revindex'];
  87. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  88. }
  89. }
  90. $_parent = $context['_parent'];
  91. unset($context['_seq'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
  92. $context = array_intersect_key($context, $_parent) + $_parent;
  93. // line 10
  94. yield " </div>
  95. ";
  96. }
  97. // line 12
  98. yield " <div class=\"flags\">
  99. ";
  100. // line 13
  101. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 13, $this->source); })()), "isMadeInFrance", [], "method", false, false, false, 13)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  102. // line 14
  103. yield " <div class=\"flag origin made-in-france\">
  104. <img src=\"";
  105. // line 15
  106. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/pictos/cocarde.svg"), "html", null, true);
  107. yield "\" alt=\"Made in France\">
  108. <span>";
  109. // line 16
  110. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Fabriqué<br>en France", [], "messages");
  111. yield "</span>
  112. </div>
  113. ";
  114. }
  115. // line 19
  116. yield " ";
  117. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 19, $this->source); })()), "guaranty", [], "any", false, false, false, 19)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  118. // line 20
  119. yield " <div class=\"flag guaranty\">
  120. <img src=\"";
  121. // line 21
  122. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/pictos/check.svg"), "html", null, true);
  123. yield "\" alt=\"Made in France\">
  124. <span>
  125. ";
  126. // line 23
  127. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Garantie", [], "messages");
  128. yield "
  129. ";
  130. // line 25
  131. yield " ";
  132. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 25, $this->source); })()), "guaranty", [], "any", false, false, false, 25), "html", null, true);
  133. yield " ";
  134. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("an", [], "messages");
  135. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 25, $this->source); })()), "guaranty", [], "any", false, false, false, 25) > 1)) {
  136. yield "s";
  137. }
  138. // line 29
  139. yield " </span>
  140. </div>
  141. ";
  142. }
  143. // line 32
  144. yield " </div>
  145. </div>
  146. ";
  147. // line 34
  148. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 34, $this->source); })()), "pictures", [], "any", false, false, false, 34)) > 1)) {
  149. // line 35
  150. yield " <ul class=\"thumbs\">
  151. ";
  152. // line 36
  153. $context['_parent'] = $context;
  154. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 36, $this->source); })()), "pictures", [], "any", false, false, false, 36));
  155. $context['loop'] = [
  156. 'parent' => $context['_parent'],
  157. 'index0' => 0,
  158. 'index' => 1,
  159. 'first' => true,
  160. ];
  161. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  162. $length = count($context['_seq']);
  163. $context['loop']['revindex0'] = $length - 1;
  164. $context['loop']['revindex'] = $length;
  165. $context['loop']['length'] = $length;
  166. $context['loop']['last'] = 1 === $length;
  167. }
  168. foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
  169. // line 37
  170. yield " <li class=\"thumb\">
  171. <a ";
  172. // line 38
  173. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 38)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  174. yield "class=\"on\" ";
  175. }
  176. yield " data-index=\"";
  177. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 38), "html", null, true);
  178. yield "\"><img src=\"";
  179. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "webPath", [], "any", false, false, false, 38)), "product_small"), "html", null, true);
  180. yield "\" width=\"100\" height=\"100\" alt=\"";
  181. yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "title", [], "any", false, false, false, 38)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "title", [], "any", false, false, false, 38), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 38, $this->source); })()), "name", [], "any", false, false, false, 38), "html", null, true)));
  182. yield "\"></a>
  183. </li>
  184. ";
  185. ++$context['loop']['index0'];
  186. ++$context['loop']['index'];
  187. $context['loop']['first'] = false;
  188. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  189. --$context['loop']['revindex0'];
  190. --$context['loop']['revindex'];
  191. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  192. }
  193. }
  194. $_parent = $context['_parent'];
  195. unset($context['_seq'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
  196. $context = array_intersect_key($context, $_parent) + $_parent;
  197. // line 41
  198. yield " </ul>
  199. ";
  200. }
  201. // line 43
  202. yield " </div>
  203. <div class=\"infos\">
  204. ";
  205. // line 45
  206. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  207. // line 46
  208. yield " <div class=\"admin-tools\">
  209. <a href=\"";
  210. // line 47
  211. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 47, $this->source); })()), "id", [], "any", false, false, false, 47)]), "html", null, true);
  212. yield "\" class=\"admin-update\" target=\"_blank\">modifier le produit</a>
  213. </div>
  214. ";
  215. }
  216. // line 50
  217. yield " ";
  218. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 50, $this->source); })()), "manufacturer", [], "any", false, false, false, 50)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  219. // line 51
  220. yield " <div class=\"manufacturer\"><a href=\"";
  221. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manufacturer", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 51, $this->source); })()), "manufacturer", [], "any", false, false, false, 51), "id", [], "any", false, false, false, 51), "url" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 51, $this->source); })()), "manufacturer", [], "any", false, false, false, 51), "url", [], "any", false, false, false, 51)]), "html", null, true);
  222. yield "\">";
  223. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 51, $this->source); })()), "manufacturer", [], "any", false, false, false, 51), "name", [], "any", false, false, false, 51), "html", null, true);
  224. yield "</a></div>
  225. ";
  226. }
  227. // line 53
  228. yield " <h1>";
  229. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 53, $this->source); })()), "headingTitle", [], "any", false, false, false, 53), "html", null, true);
  230. yield "</h1>
  231. <div class=\"description\">
  232. <p>";
  233. // line 55
  234. yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 55, $this->source); })()), "teaser", [], "any", false, false, false, 55);
  235. yield "</p>
  236. ";
  237. // line 56
  238. if ((($tmp = (isset($context["hasWelcomeDiscount"]) || array_key_exists("hasWelcomeDiscount", $context) ? $context["hasWelcomeDiscount"] : (function () { throw new RuntimeError('Variable "hasWelcomeDiscount" does not exist.', 56, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  239. // line 57
  240. yield " <div>
  241. ";
  242. // line 58
  243. yield from $this->load("front/catalog/product/view/discount-welcome.html.twig", 58)->unwrap()->yield($context);
  244. // line 59
  245. yield " </div>
  246. ";
  247. }
  248. // line 61
  249. yield " ";
  250. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 61, $this->source); })()), "description", [], "any", false, false, false, 61)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  251. // line 62
  252. yield " <a href=\"#description\" class=\"bt-scroll\">";
  253. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Voir le descriptif", [], "messages");
  254. yield "</a>
  255. ";
  256. }
  257. // line 64
  258. yield " </div>
  259. ";
  260. // line 65
  261. if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 65, $this->source); })()), "canSeePrices", [], "method", false, false, false, 65)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  262. // line 66
  263. yield " <div class=\"not-logged\">
  264. ";
  265. // line 67
  266. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Pour voir les prix des articles,", [], "messages");
  267. yield "<a href=\"";
  268. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customer_login");
  269. yield "\">";
  270. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("il faut être connecté", [], "messages");
  271. yield "</a> ";
  272. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("(c’est gratuit)", [], "messages");
  273. yield ".
  274. </div>
  275. ";
  276. }
  277. // line 70
  278. yield " ";
  279. yield from $this->load("front/catalog/product/view/references.html.twig", 70)->unwrap()->yield($context);
  280. // line 71
  281. yield " ";
  282. if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 71, $this->source); })()), "isExpert", [], "method", false, false, false, 71)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  283. // line 72
  284. yield " <div class=\"offers\">
  285. <div class=\"free-shipping\">
  286. <img src=\"";
  287. // line 74
  288. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/pictos/shipping.svg"), "html", null, true);
  289. yield "\" alt=\"";
  290. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Livraison gratuite dès 100 € HT", [], "messages");
  291. yield "\">
  292. <div>";
  293. // line 75
  294. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("<strong>LIVRAISON GRATUITE</strong><br>dès 100 € HT", [], "messages");
  295. yield "</div>
  296. </div>
  297. <div class=\"free-gift\">
  298. <img src=\"";
  299. // line 78
  300. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/pictos/gift.svg"), "html", null, true);
  301. yield "\" alt=\"";
  302. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("1 cadeau offert pour chaque commande internet", [], "messages");
  303. yield "\">
  304. <div>";
  305. // line 79
  306. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("<strong>1 CADEAU OFFERT</strong> pour <br>chaque commande internet", [], "messages");
  307. yield "</div>
  308. </div>
  309. </div>
  310. ";
  311. // line 82
  312. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 82, $this->source); })()), "hasSoleil", [], "method", false, false, false, 82)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  313. // line 83
  314. yield " <p>";
  315. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("-25% de remise sur les produits <span class=\"picto soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto soleil\"></span>", [], "messages");
  316. yield "</p>
  317. ";
  318. }
  319. // line 85
  320. yield " ";
  321. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 85, $this->source); })()), "hasNonSoleil", [], "method", false, false, false, 85)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  322. // line 86
  323. yield " <p>";
  324. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("-10% de remise sur les produits <span class=\"picto non-soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto non-soleil\"></span>", [], "messages");
  325. yield "</p>
  326. ";
  327. }
  328. // line 88
  329. yield " ";
  330. }
  331. // line 89
  332. yield " </div>
  333. </div>
  334. ";
  335. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  336. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  337. yield from [];
  338. }
  339. /**
  340. * @codeCoverageIgnore
  341. */
  342. public function getTemplateName(): string
  343. {
  344. return "front/catalog/product/view/infos.html.twig";
  345. }
  346. /**
  347. * @codeCoverageIgnore
  348. */
  349. public function isTraitable(): bool
  350. {
  351. return false;
  352. }
  353. /**
  354. * @codeCoverageIgnore
  355. */
  356. public function getDebugInfo(): array
  357. {
  358. return array ( 341 => 89, 338 => 88, 332 => 86, 329 => 85, 323 => 83, 321 => 82, 315 => 79, 309 => 78, 303 => 75, 297 => 74, 293 => 72, 290 => 71, 287 => 70, 275 => 67, 272 => 66, 270 => 65, 267 => 64, 261 => 62, 258 => 61, 254 => 59, 252 => 58, 249 => 57, 247 => 56, 243 => 55, 237 => 53, 229 => 51, 226 => 50, 220 => 47, 217 => 46, 215 => 45, 211 => 43, 207 => 41, 182 => 38, 179 => 37, 162 => 36, 159 => 35, 157 => 34, 153 => 32, 148 => 29, 140 => 25, 136 => 23, 131 => 21, 128 => 20, 125 => 19, 119 => 16, 115 => 15, 112 => 14, 110 => 13, 107 => 12, 103 => 10, 78 => 8, 61 => 7, 58 => 6, 55 => 5, 53 => 4, 48 => 1,);
  359. }
  360. public function getSourceContext(): Source
  361. {
  362. return new Source("<div class=\"product-infos\">
  363. <div class=\"pictures-ctn\">
  364. <div class=\"scene\">
  365. {% include \x27front/modules/wishlist/bt.html.twig\x27 %}
  366. {% if product.pictures|length > 0 %}
  367. <div class=\"pictures\">
  368. {% for picture in product.pictures %}
  369. <a {% if loop.first %}class=\"on\" {% endif %} data-fancybox=\"products-assets\" data-src=\"{{ asset(picture.webPath) | imagine_filter(\x27product_zoom\x27) }}\"><img src=\"{{ asset(picture.webPath) | imagine_filter(\x27product_large\x27) }}\" width=\"400\" height=\"400\" alt=\"{{ picture.title?picture.title:product.name }}\"></a>
  370. {% endfor %}
  371. </div>
  372. {% endif %}
  373. <div class=\"flags\">
  374. {% if product.isMadeInFrance() %}
  375. <div class=\"flag origin made-in-france\">
  376. <img src=\"{{ asset(\x27img/pictos/cocarde.svg\x27) }}\" alt=\"Made in France\">
  377. <span>{% trans %}Fabriqué<br>en France{% endtrans %}</span>
  378. </div>
  379. {% endif %}
  380. {% if product.guaranty %}
  381. <div class=\"flag guaranty\">
  382. <img src=\"{{ asset(\x27img/pictos/check.svg\x27) }}\" alt=\"Made in France\">
  383. <span>
  384. {% trans %}Garantie{% endtrans %}
  385. {# {% if product.guaranty matches \x27/^\\\\d+\$/\x27 %}#}
  386. {{ product.guaranty }} {% trans %}an{% endtrans %}{% if product.guaranty > 1 %}s{% endif %}
  387. {# {% else %}
  388. {% trans %}{{ product.guaranty }}{% endtrans %}
  389. {% endif %}#}
  390. </span>
  391. </div>
  392. {% endif %}
  393. </div>
  394. </div>
  395. {% if product.pictures|length > 1 %}
  396. <ul class=\"thumbs\">
  397. {% for picture in product.pictures %}
  398. <li class=\"thumb\">
  399. <a {% if loop.first %}class=\"on\" {% endif %} data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(picture.webPath) | imagine_filter(\x27product_small\x27) }}\" width=\"100\" height=\"100\" alt=\"{{ picture.title?picture.title:product.name }}\"></a>
  400. </li>
  401. {% endfor %}
  402. </ul>
  403. {% endif %}
  404. </div>
  405. <div class=\"infos\">
  406. {% if is_granted(\x27ROLE_ADMIN\x27) %}
  407. <div class=\"admin-tools\">
  408. <a href=\"{{ path(\x27admin_product_edit\x27,{id:product.id}) }}\" class=\"admin-update\" target=\"_blank\">modifier le produit</a>
  409. </div>
  410. {% endif %}
  411. {% if product.manufacturer %}
  412. <div class=\"manufacturer\"><a href=\"{{ path(\x27manufacturer\x27,{id:product.manufacturer.id, url:product.manufacturer.url}) }}\">{{ product.manufacturer.name }}</a></div>
  413. {% endif %}
  414. <h1>{{ product.headingTitle }}</h1>
  415. <div class=\"description\">
  416. <p>{{ productDescription.teaser|raw }}</p>
  417. {% if hasWelcomeDiscount %}
  418. <div>
  419. {% include \x27front/catalog/product/view/discount-welcome.html.twig\x27 %}
  420. </div>
  421. {% endif %}
  422. {% if productDescription.description %}
  423. <a href=\"#description\" class=\"bt-scroll\">{% trans %}Voir le descriptif{% endtrans %}</a>
  424. {% endif %}
  425. </div>
  426. {% if not customerMgr.canSeePrices() %}
  427. <div class=\"not-logged\">
  428. {% trans %}Pour voir les prix des articles, {% endtrans %}<a href=\"{{ path(\x27customer_login\x27) }}\">{% trans %}il faut être connecté{% endtrans %}</a> {% trans %}(c’est gratuit){% endtrans %}.
  429. </div>
  430. {% endif %}
  431. {% include \x27front/catalog/product/view/references.html.twig\x27 %}
  432. {% if not customerMgr.isExpert() %}
  433. <div class=\"offers\">
  434. <div class=\"free-shipping\">
  435. <img src=\"{{ asset(\x27img/pictos/shipping.svg\x27) }}\" alt=\"{% trans %}Livraison gratuite dès 100 € HT{% endtrans %}\">
  436. <div>{% trans %}<strong>LIVRAISON GRATUITE</strong><br>dès 100 € HT{% endtrans %}</div>
  437. </div>
  438. <div class=\"free-gift\">
  439. <img src=\"{{ asset(\x27img/pictos/gift.svg\x27) }}\" alt=\"{% trans %}1 cadeau offert pour chaque commande internet{% endtrans %}\">
  440. <div>{% trans %}<strong>1 CADEAU OFFERT</strong> pour <br>chaque commande internet{% endtrans %}</div>
  441. </div>
  442. </div>
  443. {% if product.hasSoleil() %}
  444. <p>{% trans %}-25% de remise sur les produits <span class=\"picto soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto soleil\"></span>{% endtrans %}</p>
  445. {% endif %}
  446. {% if product.hasNonSoleil() %}
  447. <p>{% trans %}-10% de remise sur les produits <span class=\"picto non-soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto non-soleil\"></span>{% endtrans %}</p>
  448. {% endif %}
  449. {% endif %}
  450. </div>
  451. </div>
  452. ", "front/catalog/product/view/infos.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/product/view/infos.html.twig");
  453. }
  454. }