var/cache/dev/twig/1e/1ec8a501a5ffdd74dc14cde6e109f57a.php line 136

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/model/view/list-item.html.twig */
  16. class __TwigTemplate_5f3aa650b8e18a94185e482e99aa5d34 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/model/view/list-item.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/model/view/list-item.html.twig"));
  38. // line 1
  39. if ((($tmp = !array_key_exists("productTitleTag", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  40. // line 2
  41. yield " ";
  42. $context["productTitleTag"] = "div";
  43. }
  44. // line 4
  45. if ((($tmp = !array_key_exists("priceGroup", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  46. // line 5
  47. yield " ";
  48. $context["priceGroup"] = 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.', 5, $this->source); })()), "getPriceContext", [], "method", false, false, false, 5);
  49. }
  50. // line 7
  51. yield "<li class=\"product\" data-pid=\"";
  52. 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.', 7, $this->source); })()), "id", [], "any", false, false, false, 7), "html", null, true);
  53. yield "\" data-mid=\"";
  54. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 7, $this->source); })()), "code", [], "any", false, false, false, 7), "html", null, true);
  55. yield "\">
  56. ";
  57. // line 8
  58. if (array_key_exists("removeBt", $context)) {
  59. // line 9
  60. yield " <a class=\"";
  61. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["removeBt"]) || array_key_exists("removeBt", $context) ? $context["removeBt"] : (function () { throw new RuntimeError('Variable "removeBt" does not exist.', 9, $this->source); })()), "html", null, true);
  62. yield "\" data-product=\"";
  63. 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.', 9, $this->source); })()), "id", [], "any", false, false, false, 9), "html", null, true);
  64. yield "\">
  65. <svg xmlns=\"http://www.w3.org/2000/svg\" id=\"Calque_2\" viewBox=\"0 0 11.25 11.05\">
  66. <line style=\"fill:none;stroke:#000;stroke-miterlimit:10;\" x1=\".56\" y1=\".35\" x2=\"10.9\" y2=\"10.69\"/>
  67. <line style=\"fill:none;stroke:#000;stroke-miterlimit:10;\" x1=\"10.69\" y1=\".35\" x2=\".35\" y2=\"10.69\"/>
  68. </svg>
  69. </a>
  70. ";
  71. }
  72. // line 16
  73. yield " <div class=\"picture\">
  74. ";
  75. // line 18
  76. yield " ";
  77. $context["picture"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 18, $this->source); })()), "getListingPicture", [(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 18, $this->source); })())], "method", false, false, false, 18);
  78. // line 19
  79. yield " ";
  80. if ((($tmp = (isset($context["picture"]) || array_key_exists("picture", $context) ? $context["picture"] : (function () { throw new RuntimeError('Variable "picture" does not exist.', 19, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  81. // line 20
  82. yield " <img src=\"";
  83. 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, (isset($context["picture"]) || array_key_exists("picture", $context) ? $context["picture"] : (function () { throw new RuntimeError('Variable "picture" does not exist.', 20, $this->source); })()), "webPath", [], "any", false, false, false, 20)), "product_medium"), "html", null, true);
  84. yield "\" width=\"300\" height=\"300\" alt=\"";
  85. 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.', 20, $this->source); })()), "name", [], "any", false, false, false, 20), "html", null, true);
  86. yield "\">
  87. ";
  88. } else {
  89. // line 22
  90. yield " <img src=\"";
  91. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/img-default.png"), "product_medium"), "html", null, true);
  92. yield "\" width=\"300\" height=\"300\" alt=\"";
  93. 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.', 22, $this->source); })()), "name", [], "any", false, false, false, 22), "html", null, true);
  94. yield "\">
  95. ";
  96. }
  97. // line 24
  98. yield " </div>
  99. <div class=\"manufacturer\">
  100. ";
  101. // line 26
  102. 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.', 26, $this->source); })()), "manufacturer", [], "any", false, false, false, 26)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  103. // line 27
  104. yield " ";
  105. $context["slug"] = 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.', 27, $this->source); })()), "manufacturer", [], "any", false, false, false, 27), "getUrl", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 27, $this->source); })()), "request", [], "any", false, false, false, 27), "locale", [], "any", false, false, false, 27)], "method", false, false, false, 27);
  106. // line 28
  107. yield " <a href=\"";
  108. 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.', 28, $this->source); })()), "manufacturer", [], "any", false, false, false, 28), "id", [], "any", false, false, false, 28), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 28, $this->source); })())]), "html", null, true);
  109. yield "\">
  110. ";
  111. // line 29
  112. 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.', 29, $this->source); })()), "manufacturer", [], "any", false, false, false, 29), "name", [], "any", false, false, false, 29), "html", null, true);
  113. yield "
  114. </a>
  115. ";
  116. }
  117. // line 32
  118. yield " </div>
  119. ";
  120. // line 33
  121. $context["productUrl"] = $this->extensions['App\Twig\PathExtension']->productPath((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 33, $this->source); })()));
  122. // line 34
  123. yield " ";
  124. $context["productTitle"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 34, $this->source); })()), "name", [], "any", false, false, false, 34);
  125. // line 35
  126. yield " ";
  127. $context["axisLabel"] = (((($tmp = (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 35, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $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.', 35, $this->source); })()), "listingAxisLabel", [], "any", false, false, false, 35)) : (null));
  128. // line 36
  129. yield " ";
  130. if ((($tmp = (isset($context["axisLabel"]) || array_key_exists("axisLabel", $context) ? $context["axisLabel"] : (function () { throw new RuntimeError('Variable "axisLabel" does not exist.', 36, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  131. // line 37
  132. yield " ";
  133. $context["modelDescription"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 37, $this->source); })()), "getProductModelDescription", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 37, $this->source); })()), "request", [], "any", false, false, false, 37), "locale", [], "any", false, false, false, 37)], "method", false, false, false, 37);
  134. // line 38
  135. yield " ";
  136. if (((isset($context["modelDescription"]) || array_key_exists("modelDescription", $context) ? $context["modelDescription"] : (function () { throw new RuntimeError('Variable "modelDescription" does not exist.', 38, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["modelDescription"]) || array_key_exists("modelDescription", $context) ? $context["modelDescription"] : (function () { throw new RuntimeError('Variable "modelDescription" does not exist.', 38, $this->source); })()), "name", [], "any", false, false, false, 38))) {
  137. // line 39
  138. yield " ";
  139. $context["productTitle"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["modelDescription"]) || array_key_exists("modelDescription", $context) ? $context["modelDescription"] : (function () { throw new RuntimeError('Variable "modelDescription" does not exist.', 39, $this->source); })()), "name", [], "any", false, false, false, 39) . " - ") . (isset($context["axisLabel"]) || array_key_exists("axisLabel", $context) ? $context["axisLabel"] : (function () { throw new RuntimeError('Variable "axisLabel" does not exist.', 39, $this->source); })()));
  140. // line 40
  141. yield " ";
  142. }
  143. // line 41
  144. yield " ";
  145. }
  146. // line 42
  147. yield " <";
  148. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["productTitleTag"]) || array_key_exists("productTitleTag", $context) ? $context["productTitleTag"] : (function () { throw new RuntimeError('Variable "productTitleTag" does not exist.', 42, $this->source); })()), "html", null, true);
  149. yield " class=\"title\"><a href=\"";
  150. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["productUrl"]) || array_key_exists("productUrl", $context) ? $context["productUrl"] : (function () { throw new RuntimeError('Variable "productUrl" does not exist.', 42, $this->source); })()), "html", null, true);
  151. yield "\">";
  152. yield $this->extensions['App\Twig\TextExtension']->excerptFilter((isset($context["productTitle"]) || array_key_exists("productTitle", $context) ? $context["productTitle"] : (function () { throw new RuntimeError('Variable "productTitle" does not exist.', 42, $this->source); })()), 60, "");
  153. yield "</a></";
  154. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["productTitleTag"]) || array_key_exists("productTitleTag", $context) ? $context["productTitleTag"] : (function () { throw new RuntimeError('Variable "productTitleTag" does not exist.', 42, $this->source); })()), "html", null, true);
  155. yield ">
  156. ";
  157. // line 43
  158. 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.', 43, $this->source); })()), "canSeePrices", [], "method", false, false, false, 43) && 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.', 43, $this->source); })()), "hasPrice", [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.', 43, $this->source); })()), "priceContext", [], "any", false, false, false, 43)], "method", false, false, false, 43))) {
  159. // line 44
  160. yield " ";
  161. $context["country"] = 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.', 44, $this->source); })()), "getCustomerCountry", [], "method", false, false, false, 44);
  162. // line 45
  163. yield " ";
  164. 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.', 45, $this->source); })()), "isAvailableForCountry", [(isset($context["country"]) || array_key_exists("country", $context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.', 45, $this->source); })())], "method", false, false, false, 45)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  165. // line 46
  166. yield " ";
  167. // line 47
  168. yield " ";
  169. $context["fromPrice"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 47, $this->source); })()), "getFromPrice", [true, (isset($context["priceGroup"]) || array_key_exists("priceGroup", $context) ? $context["priceGroup"] : (function () { throw new RuntimeError('Variable "priceGroup" does not exist.', 47, $this->source); })()), false, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 47, $this->source); })())], "method", false, false, false, 47);
  170. // line 48
  171. yield " ";
  172. $context["fromPriceVat"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 48, $this->source); })()), "getFromPrice", [true, (isset($context["priceGroup"]) || array_key_exists("priceGroup", $context) ? $context["priceGroup"] : (function () { throw new RuntimeError('Variable "priceGroup" does not exist.', 48, $this->source); })()), true, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 48, $this->source); })())], "method", false, false, false, 48);
  173. // line 49
  174. yield " ";
  175. $context["severalVariants"] = (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 49, $this->source); })()), "getListingProducts", [(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 49, $this->source); })())], "method", false, false, false, 49)) > 1);
  176. // line 50
  177. yield " ";
  178. 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.', 50, $this->source); })()), "isExpert", [], "method", false, false, false, 50)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  179. // line 51
  180. yield " ";
  181. 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.', 51, $this->source); })()), "isGift", [], "method", false, false, false, 51)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  182. // line 52
  183. yield " <div class=\"price-ctn cf\">
  184. ";
  185. // line 53
  186. if (((isset($context["severalVariants"]) || array_key_exists("severalVariants", $context) ? $context["severalVariants"] : (function () { throw new RuntimeError('Variable "severalVariants" does not exist.', 53, $this->source); })()) && (isset($context["fromPriceVat"]) || array_key_exists("fromPriceVat", $context) ? $context["fromPriceVat"] : (function () { throw new RuntimeError('Variable "fromPriceVat" does not exist.', 53, $this->source); })()))) {
  187. // line 54
  188. yield " <div class=\"from-price\">
  189. <span class=\"from\">";
  190. // line 55
  191. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("A partir de :", [], "messages");
  192. yield "</span>
  193. <span class=\"price\">";
  194. // line 56
  195. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\PriceExtension']->priceFilter((isset($context["fromPrice"]) || array_key_exists("fromPrice", $context) ? $context["fromPrice"] : (function () { throw new RuntimeError('Variable "fromPrice" does not exist.', 56, $this->source); })())), "html", null, true);
  196. yield "</span>
  197. </div>
  198. <span class=\"price-tax-incl\">";
  199. // line 58
  200. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\PriceExtension']->priceFilter((isset($context["fromPriceVat"]) || array_key_exists("fromPriceVat", $context) ? $context["fromPriceVat"] : (function () { throw new RuntimeError('Variable "fromPriceVat" does not exist.', 58, $this->source); })())), "html", null, true);
  201. yield "<sup>";
  202. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ttc"), "html", null, true);
  203. yield "</sup></span>
  204. ";
  205. } else {
  206. // line 60
  207. yield " <span class=\"price\">";
  208. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\PriceExtension']->priceFilter((isset($context["fromPrice"]) || array_key_exists("fromPrice", $context) ? $context["fromPrice"] : (function () { throw new RuntimeError('Variable "fromPrice" does not exist.', 60, $this->source); })())), "html", null, true);
  209. yield "</span>
  210. <span class=\"price-tax-incl\">";
  211. // line 61
  212. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\PriceExtension']->priceFilter((isset($context["fromPriceVat"]) || array_key_exists("fromPriceVat", $context) ? $context["fromPriceVat"] : (function () { throw new RuntimeError('Variable "fromPriceVat" does not exist.', 61, $this->source); })())), "html", null, true);
  213. yield "<sup>";
  214. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ttc"), "html", null, true);
  215. yield "</sup></span>
  216. ";
  217. }
  218. // line 63
  219. yield " </div>
  220. ";
  221. }
  222. // line 65
  223. yield " ";
  224. } else {
  225. // line 66
  226. yield " <div class=\"price-ctn cf\">
  227. ";
  228. // line 67
  229. if ((($tmp = (isset($context["fromPrice"]) || array_key_exists("fromPrice", $context) ? $context["fromPrice"] : (function () { throw new RuntimeError('Variable "fromPrice" does not exist.', 67, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  230. // line 68
  231. yield " ";
  232. if ((($tmp = (isset($context["severalVariants"]) || array_key_exists("severalVariants", $context) ? $context["severalVariants"] : (function () { throw new RuntimeError('Variable "severalVariants" does not exist.', 68, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  233. // line 69
  234. yield " <span class=\"from\">";
  235. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("A partir de :", [], "messages");
  236. yield "</span>
  237. ";
  238. }
  239. // line 71
  240. yield " <span class=\"price\">";
  241. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\PriceExtension']->priceFilter((isset($context["fromPrice"]) || array_key_exists("fromPrice", $context) ? $context["fromPrice"] : (function () { throw new RuntimeError('Variable "fromPrice" does not exist.', 71, $this->source); })())), "html", null, true);
  242. yield "</span>
  243. ";
  244. }
  245. // line 73
  246. yield " </div>
  247. ";
  248. }
  249. // line 75
  250. yield " ";
  251. }
  252. // line 76
  253. yield " ";
  254. }
  255. // line 77
  256. yield " ";
  257. if ((array_key_exists("productItemFooter", $context) && (isset($context["productItemFooter"]) || array_key_exists("productItemFooter", $context) ? $context["productItemFooter"] : (function () { throw new RuntimeError('Variable "productItemFooter" does not exist.', 77, $this->source); })()))) {
  258. // line 78
  259. yield " ";
  260. yield (isset($context["productItemFooter"]) || array_key_exists("productItemFooter", $context) ? $context["productItemFooter"] : (function () { throw new RuntimeError('Variable "productItemFooter" does not exist.', 78, $this->source); })());
  261. yield "
  262. ";
  263. }
  264. // line 80
  265. yield "</li>";
  266. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  267. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  268. yield from [];
  269. }
  270. /**
  271. * @codeCoverageIgnore
  272. */
  273. public function getTemplateName(): string
  274. {
  275. return "front/catalog/model/view/list-item.html.twig";
  276. }
  277. /**
  278. * @codeCoverageIgnore
  279. */
  280. public function isTraitable(): bool
  281. {
  282. return false;
  283. }
  284. /**
  285. * @codeCoverageIgnore
  286. */
  287. public function getDebugInfo(): array
  288. {
  289. return array ( 274 => 80, 268 => 78, 265 => 77, 262 => 76, 259 => 75, 255 => 73, 249 => 71, 243 => 69, 240 => 68, 238 => 67, 235 => 66, 232 => 65, 228 => 63, 221 => 61, 216 => 60, 209 => 58, 204 => 56, 200 => 55, 197 => 54, 195 => 53, 192 => 52, 189 => 51, 186 => 50, 183 => 49, 180 => 48, 177 => 47, 175 => 46, 172 => 45, 169 => 44, 167 => 43, 156 => 42, 153 => 41, 150 => 40, 147 => 39, 144 => 38, 141 => 37, 138 => 36, 135 => 35, 132 => 34, 130 => 33, 127 => 32, 121 => 29, 116 => 28, 113 => 27, 111 => 26, 107 => 24, 99 => 22, 91 => 20, 88 => 19, 85 => 18, 82 => 16, 69 => 9, 67 => 8, 60 => 7, 56 => 5, 54 => 4, 50 => 2, 48 => 1,);
  290. }
  291. public function getSourceContext(): Source
  292. {
  293. return new Source("{% if productTitleTag is not defined %}
  294. {% set productTitleTag = \x27div\x27 %}
  295. {% endif %}
  296. {% if priceGroup is not defined %}
  297. {% set priceGroup = customerMgr.getPriceContext() %}
  298. {% endif %}
  299. <li class=\"product\" data-pid=\"{{ product.id }}\" data-mid=\"{{ model.code }}\">
  300. {% if removeBt is defined %}
  301. <a class=\"{{ removeBt }}\" data-product=\"{{ product.id }}\">
  302. <svg xmlns=\"http://www.w3.org/2000/svg\" id=\"Calque_2\" viewBox=\"0 0 11.25 11.05\">
  303. <line style=\"fill:none;stroke:#000;stroke-miterlimit:10;\" x1=\".56\" y1=\".35\" x2=\"10.9\" y2=\"10.69\"/>
  304. <line style=\"fill:none;stroke:#000;stroke-miterlimit:10;\" x1=\"10.69\" y1=\".35\" x2=\".35\" y2=\"10.69\"/>
  305. </svg>
  306. </a>
  307. {% endif %}
  308. <div class=\"picture\">
  309. {# image de la déclinaison affichée, à défaut d\x27une déclinaison de la même entrée, puis du modèle #}
  310. {% set picture = model.getListingPicture(product) %}
  311. {% if picture %}
  312. <img src=\"{{ asset(picture.webPath) | imagine_filter(\x27product_medium\x27) }}\" width=\"300\" height=\"300\" alt=\"{{ product.name }}\">
  313. {% else %}
  314. <img src=\"{{ asset(\x27img/img-default.png\x27) | imagine_filter(\x27product_medium\x27) }}\" width=\"300\" height=\"300\" alt=\"{{ product.name }}\">
  315. {% endif %}
  316. </div>
  317. <div class=\"manufacturer\">
  318. {% if product.manufacturer %}
  319. {% set slug = product.manufacturer.getUrl(app.request.locale) %}
  320. <a href=\"{{ path(\x27manufacturer\x27,{id:product.manufacturer.id,url:slug}) }}\">
  321. {{ product.manufacturer.name }}
  322. </a>
  323. {% endif %}
  324. </div>
  325. {% set productUrl = product_path(product) %}
  326. {% set productTitle = model.name %}
  327. {% set axisLabel = model ? product.listingAxisLabel : null %}
  328. {% if axisLabel %}
  329. {% set modelDescription = model.getProductModelDescription(app.request.locale) %}
  330. {% if modelDescription and modelDescription.name %}
  331. {% set productTitle = modelDescription.name ~ \x27 - \x27 ~ axisLabel %}
  332. {% endif %}
  333. {% endif %}
  334. <{{ productTitleTag }} class=\"title\"><a href=\"{{ productUrl }}\">{{ productTitle|excerpt(60,\x27\x27) | raw }}</a></{{ productTitleTag }}>
  335. {% if customerMgr.canSeePrices() and product.hasPrice(customerMgr.priceContext) %}
  336. {% set country = customerMgr.getCustomerCountry() %}
  337. {% if product.isAvailableForCountry(country) %}
  338. {# prix calculés sur les seules déclinaisons de cette entrée de listing (ex. même couleur) #}
  339. {% set fromPrice = model.getFromPrice(true, priceGroup, false, product) %}
  340. {% set fromPriceVat = model.getFromPrice(true, priceGroup, true, product) %}
  341. {% set severalVariants = model.getListingProducts(product)|length > 1 %}
  342. {% if customerMgr.isExpert() %}
  343. {% if not product.isGift() %}
  344. <div class=\"price-ctn cf\">
  345. {% if severalVariants and fromPriceVat %}
  346. <div class=\"from-price\">
  347. <span class=\"from\">{% trans %}A partir de :{% endtrans %}</span>
  348. <span class=\"price\">{{ fromPrice|price }}</span>
  349. </div>
  350. <span class=\"price-tax-incl\">{{ fromPriceVat|price }}<sup>{{ \x27ttc\x27 | trans }}</sup></span>
  351. {% else %}
  352. <span class=\"price\">{{ fromPrice|price }}</span>
  353. <span class=\"price-tax-incl\">{{ fromPriceVat|price }}<sup>{{ \x27ttc\x27 | trans }}</sup></span>
  354. {% endif %}
  355. </div>
  356. {% endif %}
  357. {% else %}
  358. <div class=\"price-ctn cf\">
  359. {% if fromPrice %}
  360. {% if severalVariants %}
  361. <span class=\"from\">{% trans %}A partir de :{% endtrans %}</span>
  362. {% endif %}
  363. <span class=\"price\">{{ fromPrice|price }}</span>
  364. {% endif %}
  365. </div>
  366. {% endif %}
  367. {% endif %}
  368. {% endif %}
  369. {% if productItemFooter is defined and productItemFooter %}
  370. {{ productItemFooter|raw }}
  371. {% endif %}
  372. </li>", "front/catalog/model/view/list-item.html.twig", "/var/www/dogcat.com/pim/templates/front/catalog/model/view/list-item.html.twig");
  373. }
  374. }