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

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