var/cache/dev/twig/9a/9aacc40a3b9f7b12e9e55019dfd2cc7c.php line 34

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