<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* front/catalog/model/view/list-item.html.twig */
class __TwigTemplate_5f3aa650b8e18a94185e482e99aa5d34 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/model/view/list-item.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/model/view/list-item.html.twig"));
// line 1
if ((($tmp = !array_key_exists("productTitleTag", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 2
yield " ";
$context["productTitleTag"] = "div";
}
// line 4
if ((($tmp = !array_key_exists("priceGroup", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 5
yield " ";
$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);
}
// line 7
yield "<li class=\"product\" data-pid=\"";
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);
yield "\" data-mid=\"";
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);
yield "\">
";
// line 8
if (array_key_exists("removeBt", $context)) {
// line 9
yield " <a class=\"";
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);
yield "\" data-product=\"";
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);
yield "\">
<svg xmlns=\"http://www.w3.org/2000/svg\" id=\"Calque_2\" viewBox=\"0 0 11.25 11.05\">
<line style=\"fill:none;stroke:#000;stroke-miterlimit:10;\" x1=\".56\" y1=\".35\" x2=\"10.9\" y2=\"10.69\"/>
<line style=\"fill:none;stroke:#000;stroke-miterlimit:10;\" x1=\"10.69\" y1=\".35\" x2=\".35\" y2=\"10.69\"/>
</svg>
</a>
";
}
// line 16
yield " <div class=\"picture\">
";
// line 17
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)) {
// line 18
yield " <img src=\"";
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);
yield "\" width=\"300\" height=\"300\" alt=\"";
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);
yield "\">
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 19
(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))) {
// line 20
yield " <img src=\"";
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);
yield "\" width=\"300\" height=\"300\" alt=\"";
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);
yield "\">
";
} else {
// line 22
yield " <img src=\"";
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);
yield "\" width=\"300\" height=\"300\" alt=\"";
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);
yield "\">
";
}
// line 24
yield " </div>
<div class=\"manufacturer\">
";
// line 26
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)) {
// line 27
yield " ";
$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);
// line 28
yield " <a href=\"";
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);
yield "\">
";
// line 29
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);
yield "
</a>
";
}
// line 32
yield " </div>
";
// line 33
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)) {
// line 34
yield " ";
$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)]);
// line 35
yield " ";
} else {
// line 36
yield " ";
$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)]);
// line 37
yield " ";
}
// line 38
yield " <";
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);
yield " class=\"title\"><a href=\"";
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);
yield "\">";
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, "");
yield "</a></";
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);
yield ">
";
// line 39
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))) {
// line 40
yield " ";
$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);
// line 41
yield " ";
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)) {
// line 42
yield " ";
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)) {
// line 43
yield " ";
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)) {
// line 44
yield " <div class=\"price-ctn cf\">
";
// line 45
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))) {
// line 46
yield " <div class=\"from-price\">
<span class=\"from\">";
// line 47
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("A partir de :", [], "messages");
yield "</span>
<span class=\"price\">";
// line 48
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);
yield "</span>
</div>
<span class=\"price-tax-incl\">";
// line 50
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);
yield "<sup>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ttc"), "html", null, true);
yield "</sup></span>
";
} else {
// line 52
yield " <span class=\"price\">";
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);
yield "</span>
<span class=\"price-tax-incl\">";
// line 53
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);
yield "<sup>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ttc"), "html", null, true);
yield "</sup></span>
";
}
// line 55
yield " </div>
";
}
// line 57
yield " ";
} else {
// line 58
yield " <div class=\"price-ctn cf\">
";
// line 59
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)) {
// line 60
yield " <span class=\"from\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("A partir de :", [], "messages");
yield "</span>
<span class=\"price\">";
// line 61
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);
yield "</span>
";
}
// line 63
yield " </div>
";
}
// line 65
yield " ";
}
// line 66
yield " ";
}
// line 67
yield " ";
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); })()))) {
// line 68
yield " ";
yield (isset($context["productItemFooter"]) || array_key_exists("productItemFooter", $context) ? $context["productItemFooter"] : (function () { throw new RuntimeError('Variable "productItemFooter" does not exist.', 68, $this->source); })());
yield "
";
}
// line 70
yield "</li>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "front/catalog/model/view/list-item.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% if productTitleTag is not defined %}
{% set productTitleTag = \x27div\x27 %}
{% endif %}
{% if priceGroup is not defined %}
{% set priceGroup = customerMgr.getPriceContext() %}
{% endif %}
<li class=\"product\" data-pid=\"{{ product.id }}\" data-mid=\"{{ model.code }}\">
{% if removeBt is defined %}
<a class=\"{{ removeBt }}\" data-product=\"{{ product.id }}\">
<svg xmlns=\"http://www.w3.org/2000/svg\" id=\"Calque_2\" viewBox=\"0 0 11.25 11.05\">
<line style=\"fill:none;stroke:#000;stroke-miterlimit:10;\" x1=\".56\" y1=\".35\" x2=\"10.9\" y2=\"10.69\"/>
<line style=\"fill:none;stroke:#000;stroke-miterlimit:10;\" x1=\"10.69\" y1=\".35\" x2=\".35\" y2=\"10.69\"/>
</svg>
</a>
{% endif %}
<div class=\"picture\">
{% if product.pictures|length > 0 %}
<img src=\"{{ asset(attribute(product.pictures,0).webPath) | imagine_filter(\x27product_medium\x27) }}\" width=\"300\" height=\"300\" alt=\"{{ product.name }}\">
{% elseif product.parent and product.parent.pictures|length > 0 %}
<img src=\"{{ asset(attribute(product.parent.pictures,0).webPath) | imagine_filter(\x27product_medium\x27) }}\" width=\"300\" height=\"300\" alt=\"{{ product.name }}\">
{% else %}
<img src=\"{{ asset(\x27img/img-default.png\x27) | imagine_filter(\x27product_medium\x27) }}\" width=\"300\" height=\"300\" alt=\"{{ product.name }}\">
{% endif %}
</div>
<div class=\"manufacturer\">
{% if product.manufacturer %}
{% set slug = product.manufacturer.getUrl(app.request.locale) %}
<a href=\"{{ path(\x27manufacturer\x27,{id:product.manufacturer.id,url:slug}) }}\">
{{ product.manufacturer.name }}
</a>
{% endif %}
</div>
{% if product.hasParent() %}
{% set productUrl = path(\x27product\x27,{id:product.parent.id,url:product.parent.url}) %}
{% else %}
{% set productUrl = path(\x27product\x27,{id:product.id,url:product.url}) %}
{% endif %}
<{{ productTitleTag }} class=\"title\"><a href=\"{{ productUrl }}\">{{ product.name|excerpt(60,\x27\x27) | raw }}</a></{{ productTitleTag }}>
{% if customerMgr.canSeePrices() and product.hasPrice(customerMgr.priceContext) %}
{% set country = customerMgr.getCustomerCountry() %}
{% if product.isAvailableForCountry(country) %}
{% if customerMgr.isExpert() %}
{% if not product.isGift() %}
<div class=\"price-ctn cf\">
{% if model.hasChildren() and model.getFromPrice(true, priceGroup, true) %}
<div class=\"from-price\">
<span class=\"from\">{% trans %}A partir de :{% endtrans %}</span>
<span class=\"price\">{{ model.getFromPrice(true, priceGroup)|price }}</span>
</div>
<span class=\"price-tax-incl\">{{ model.getFromPrice(true, priceGroup, true)|price }}<sup>{{ \x27ttc\x27 | trans }}</sup></span>
{% else %}
<span class=\"price\">{{ model.getPrice(true, priceGroup)|price }}</span>
<span class=\"price-tax-incl\">{{ model.getPrice(true, priceGroup, true)|price }}<sup>{{ \x27ttc\x27 | trans }}</sup></span>
{% endif %}
</div>
{% endif %}
{% else %}
<div class=\"price-ctn cf\">
{% if model.getFromPrice(true, priceGroup) %}
<span class=\"from\">{% trans %}A partir de :{% endtrans %}</span>
<span class=\"price\">{{ model.getFromPrice(true, priceGroup)|price }}</span>
{% endif %}
</div>
{% endif %}
{% endif %}
{% endif %}
{% if productItemFooter is defined and productItemFooter %}
{{ productItemFooter|raw }}
{% endif %}
</li>", "front/catalog/model/view/list-item.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/model/view/list-item.html.twig");
}
}