<?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 18
yield " ";
$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);
// line 19
yield " ";
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)) {
// 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, (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);
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
$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); })()));
// line 34
yield " ";
$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);
// line 35
yield " ";
$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));
// line 36
yield " ";
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)) {
// line 37
yield " ";
$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);
// line 38
yield " ";
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))) {
// line 39
yield " ";
$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); })()));
// line 40
yield " ";
}
// line 41
yield " ";
}
// line 42
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.', 42, $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.', 42, $this->source); })()), "html", null, true);
yield "\">";
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, "");
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.', 42, $this->source); })()), "html", null, true);
yield ">
";
// line 43
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))) {
// line 44
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.', 44, $this->source); })()), "getCustomerCountry", [], "method", false, false, false, 44);
// line 45
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.', 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)) {
// line 46
yield " ";
// line 47
yield " ";
$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);
// line 48
yield " ";
$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);
// line 49
yield " ";
$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);
// line 50
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.', 50, $this->source); })()), "isExpert", [], "method", false, false, false, 50)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 51
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.', 51, $this->source); })()), "isGift", [], "method", false, false, false, 51)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 52
yield " <div class=\"price-ctn cf\">
";
// line 53
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); })()))) {
// line 54
yield " <div class=\"from-price\">
<span class=\"from\">";
// line 55
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("A partir de :", [], "messages");
yield "</span>
<span class=\"price\">";
// line 56
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);
yield "</span>
</div>
<span class=\"price-tax-incl\">";
// line 58
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);
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 60
yield " <span class=\"price\">";
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);
yield "</span>
<span class=\"price-tax-incl\">";
// line 61
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);
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 63
yield " </div>
";
}
// line 65
yield " ";
} else {
// line 66
yield " <div class=\"price-ctn cf\">
";
// line 67
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)) {
// line 68
yield " ";
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)) {
// line 69
yield " <span class=\"from\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("A partir de :", [], "messages");
yield "</span>
";
}
// line 71
yield " <span class=\"price\">";
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);
yield "</span>
";
}
// line 73
yield " </div>
";
}
// line 75
yield " ";
}
// line 76
yield " ";
}
// line 77
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.', 77, $this->source); })()))) {
// line 78
yield " ";
yield (isset($context["productItemFooter"]) || array_key_exists("productItemFooter", $context) ? $context["productItemFooter"] : (function () { throw new RuntimeError('Variable "productItemFooter" does not exist.', 78, $this->source); })());
yield "
";
}
// line 80
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 ( 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,);
}
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\">
{# image de la déclinaison affichée, à défaut d\x27une déclinaison de la même entrée, puis du modèle #}
{% set picture = model.getListingPicture(product) %}
{% if picture %}
<img src=\"{{ asset(picture.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>
{% set productUrl = product_path(product) %}
{% set productTitle = model.name %}
{% set axisLabel = model ? product.listingAxisLabel : null %}
{% if axisLabel %}
{% set modelDescription = model.getProductModelDescription(app.request.locale) %}
{% if modelDescription and modelDescription.name %}
{% set productTitle = modelDescription.name ~ \x27 - \x27 ~ axisLabel %}
{% endif %}
{% endif %}
<{{ productTitleTag }} class=\"title\"><a href=\"{{ productUrl }}\">{{ productTitle|excerpt(60,\x27\x27) | raw }}</a></{{ productTitleTag }}>
{% if customerMgr.canSeePrices() and product.hasPrice(customerMgr.priceContext) %}
{% set country = customerMgr.getCustomerCountry() %}
{% if product.isAvailableForCountry(country) %}
{# prix calculés sur les seules déclinaisons de cette entrée de listing (ex. même couleur) #}
{% set fromPrice = model.getFromPrice(true, priceGroup, false, product) %}
{% set fromPriceVat = model.getFromPrice(true, priceGroup, true, product) %}
{% set severalVariants = model.getListingProducts(product)|length > 1 %}
{% if customerMgr.isExpert() %}
{% if not product.isGift() %}
<div class=\"price-ctn cf\">
{% if severalVariants and fromPriceVat %}
<div class=\"from-price\">
<span class=\"from\">{% trans %}A partir de :{% endtrans %}</span>
<span class=\"price\">{{ fromPrice|price }}</span>
</div>
<span class=\"price-tax-incl\">{{ fromPriceVat|price }}<sup>{{ \x27ttc\x27 | trans }}</sup></span>
{% else %}
<span class=\"price\">{{ fromPrice|price }}</span>
<span class=\"price-tax-incl\">{{ fromPriceVat|price }}<sup>{{ \x27ttc\x27 | trans }}</sup></span>
{% endif %}
</div>
{% endif %}
{% else %}
<div class=\"price-ctn cf\">
{% if fromPrice %}
{% if severalVariants %}
<span class=\"from\">{% trans %}A partir de :{% endtrans %}</span>
{% endif %}
<span class=\"price\">{{ fromPrice|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/pim/templates/front/catalog/model/view/list-item.html.twig");
}
}