<?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.html.twig */
class __TwigTemplate_feeb4aaf90c3a20cb4ccd0e17f4f2035 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->blocks = [
'bodyClass' => [$this, 'block_bodyClass'],
'metas' => [$this, 'block_metas'],
'structuredData' => [$this, 'block_structuredData'],
'featured' => [$this, 'block_featured'],
'breadcrumbs' => [$this, 'block_breadcrumbs'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "front/front.html.twig";
}
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.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.html.twig"));
$this->parent = $this->load("front/front.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_bodyClass(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(), "block", "bodyClass"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
yield "product product-model";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_metas(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(), "block", "metas"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metas"));
// line 6
yield " <title>";
yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 6, $this->source); })()), "headTitleTag", [], "any", false, false, false, 6)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 6, $this->source); })()), "headTitleTag", [], "any", false, false, false, 6), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 6, $this->source); })()), "name", [], "any", false, false, false, 6), "html", null, true)));
yield "</title>
<meta name=\"description\" content=\"";
// line 7
yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 7, $this->source); })()), "headDescTag", [], "any", false, false, false, 7)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 7, $this->source); })()), "headDescTag", [], "any", false, false, false, 7), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TextExtension']->metaDescriptionFilter(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 7, $this->source); })()), "description", [], "any", false, false, false, 7)), "html", null, true)));
yield "\">
<link rel=\"canonical\" href=\"";
// line 8
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("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.', 8, $this->source); })()), "id", [], "any", false, false, false, 8), "url" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 8, $this->source); })()), "url", [], "any", false, false, false, 8)]), "html", null, true);
yield "\" />
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 11
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_structuredData(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(), "block", "structuredData"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "structuredData"));
// line 12
yield " ";
$context["cpt"] = 1;
// line 13
yield " <script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"BreadcrumbList\",
\"itemListElement\":
[
{
\"@type\": \"ListItem\",
\"position\": ";
// line 21
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 21, $this->source); })()), "html", null, true);
yield ",
\"item\":
{
\"@id\": \"";
// line 24
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("index");
yield "\",
\"name\": \"";
// line 25
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Vivog | Matériel pour les toiletteurs et éleveurs", [], "messages");
yield "\"
}
},
";
// line 28
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["path"]) || array_key_exists("path", $context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.', 28, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
// line 29
yield " ";
$context["cpt"] = ((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 29, $this->source); })()) + 1);
// line 30
yield " {
\"@type\": \"ListItem\",
\"position\": ";
// line 32
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 32, $this->source); })()), "html", null, true);
yield ",
\"item\":
{
";
// line 35
if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 35) == 1)) {
// line 36
yield " \"@id\": \"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("universe", ["url" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "url", [], "any", false, false, false, 36), "id" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "id", [], "any", false, false, false, 36)]), "html", null, true);
yield "\",
";
} else {
// line 38
yield " \"@id\": \"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("category", ["url" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "url", [], "any", false, false, false, 38), "id" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "id", [], "any", false, false, false, 38)]), "html", null, true);
yield "\",
";
}
// line 40
yield " \"name\": \"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "name", [], "any", false, false, false, 40), "html", null, true);
yield "\"
}
},
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
yield " ";
$context["cpt"] = ((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 44, $this->source); })()) + 1);
// line 45
yield " {
\"@type\": \"ListItem\",
\"position\": ";
// line 47
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 47, $this->source); })()), "html", null, true);
yield ",
\"item\":
{
\"@id\": \"";
// line 50
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product", ["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.', 50, $this->source); })()), "url", [], "any", false, false, false, 50), "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.', 50, $this->source); })()), "id", [], "any", false, false, false, 50)]), "html", null, true);
yield "\",
\"name\": \"";
// line 51
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.', 51, $this->source); })()), "name", [], "any", false, false, false, 51), "html", null, true);
yield "\"
}
}
]
}
</script>
<script>
var products = [];
";
// line 59
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 59, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
// line 60
yield " products[\x27";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "id", [], "any", false, false, false, 60), "html", null, true);
yield "\x27] = {
id: ";
// line 61
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "id", [], "any", false, false, false, 61), "js"), "html", null, true);
yield ",
model: \x27";
// line 62
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "model", [], "any", false, false, false, 62), "js"), "html", null, true);
yield "\x27,
inStock: ";
// line 63
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((CoreExtension::getAttribute($this->env, $this->source, $context["p"], "quantity", [], "any", false, false, false, 63) > 0)) ? (1) : (0)), "js"), "html", null, true);
yield ",
price: ";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "getPrice", [], "method", false, false, false, 64), "js"), "html", null, true);
yield ",
attributes: [],
pictures: [],
};
";
// line 68
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["attributes"]) || array_key_exists("attributes", $context) ? $context["attributes"] : (function () { throw new RuntimeError('Variable "attributes" does not exist.', 68, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["attribute"]) {
// line 69
yield " products[\x27";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "id", [], "any", false, false, false, 69), "html", null, true);
yield "\x27].attributes[\x27";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "code", [], "any", false, false, false, 69), "html", null, true);
yield "\x27] = \x27";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["p"], "getAttribute", [CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "code", [], "any", false, false, false, 69)], "method", false, false, false, 69)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["p"], "getAttribute", [CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "code", [], "any", false, false, false, 69)], "method", false, false, false, 69), "value", [], "any", false, false, false, 69)) : ("")), "js"), "html", null, true);
yield "\x27;
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['attribute'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "pictures", [], "any", false, false, false, 71));
foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
// line 72
yield " products[\x27";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "id", [], "any", false, false, false, 72), "html", null, true);
yield "\x27].pictures.push ({
id: ";
// line 73
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "id", [], "any", false, false, false, 73), "js"), "html", null, true);
yield ",
code: \x27";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "code", [], "any", false, false, false, 74), "js"), "html", null, true);
yield "\x27,
url: \x27";
// line 75
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "webPath", [], "any", false, false, false, 75), "js"), "html", null, true);
yield "\x27,
small: \x27";
// line 76
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "webPath", [], "any", false, false, false, 76), "product_small"), "js"), "html", null, true);
yield "\x27,
medium: \x27";
// line 77
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "webPath", [], "any", false, false, false, 77), "product_medium"), "js"), "html", null, true);
yield "\x27,
large: \x27";
// line 78
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "webPath", [], "any", false, false, false, 78), "product_large"), "js"), "html", null, true);
yield "\x27,
zoom: \x27";
// line 79
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "webPath", [], "any", false, false, false, 79), "product_zoom"), "js"), "html", null, true);
yield "\x27,
title: \x27";
// line 80
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "title", [], "any", false, false, false, 80), "js"), "html", null, true);
yield "\x27,
alt: \x27";
// line 81
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "alt", [], "any", false, false, false, 81), "js"), "html", null, true);
yield "\x27,
});
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['picture'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 84
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['p'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 85
yield " var assets = [];
";
// line 86
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 86, $this->source); })()));
foreach ($context['_seq'] as $context["pid"] => $context["pictures"]) {
// line 87
yield " assets[\x27";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["pid"], "html", null, true);
yield "\x27] = [];
";
// line 88
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["pictures"]);
foreach ($context['_seq'] as $context["_key"] => $context["asset"]) {
// line 89
yield " assets[\x27";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["pid"], "html", null, true);
yield "\x27].push ({
id: ";
// line 90
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["asset"], "id", [], "any", false, false, false, 90), "js"), "html", null, true);
yield ",
code: \x27";
// line 91
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["asset"], "code", [], "any", false, false, false, 91), "js"), "html", null, true);
yield "\x27,
url: \x27";
// line 92
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["asset"], "webPath", [], "any", false, false, false, 92), "js"), "html", null, true);
yield "\x27,
small: \x27";
// line 93
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(CoreExtension::getAttribute($this->env, $this->source, $context["asset"], "webPath", [], "any", false, false, false, 93), "product_small"), "js"), "html", null, true);
yield "\x27,
medium: \x27";
// line 94
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(CoreExtension::getAttribute($this->env, $this->source, $context["asset"], "webPath", [], "any", false, false, false, 94), "product_medium"), "js"), "html", null, true);
yield "\x27,
large: \x27";
// line 95
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(CoreExtension::getAttribute($this->env, $this->source, $context["asset"], "webPath", [], "any", false, false, false, 95), "product_large"), "js"), "html", null, true);
yield "\x27,
zoom: \x27";
// line 96
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter(CoreExtension::getAttribute($this->env, $this->source, $context["asset"], "webPath", [], "any", false, false, false, 96), "product_zoom"), "js"), "html", null, true);
yield "\x27,
title: \x27";
// line 97
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["asset"], "title", [], "any", false, false, false, 97), "js"), "html", null, true);
yield "\x27,
alt: \x27";
// line 98
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["asset"], "alt", [], "any", false, false, false, 98), "js"), "html", null, true);
yield "\x27,
});
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['asset'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 101
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['pid'], $context['pictures'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 102
yield " </script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 105
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_featured(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(), "block", "featured"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "featured"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 107
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_breadcrumbs(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(), "block", "breadcrumbs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
// line 108
yield " ";
yield from $this->load("front/layout/breadcrumbs.html.twig", 108)->unwrap()->yield(CoreExtension::merge($context, ["productModel" => (isset($context["productModel"]) || array_key_exists("productModel", $context) ? $context["productModel"] : (function () { throw new RuntimeError('Variable "productModel" does not exist.', 108, $this->source); })())]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 111
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(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(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 112
yield "
";
// line 113
yield from $this->load("front/layout/messages.html.twig", 113)->unwrap()->yield($context);
// line 114
yield "
";
// line 115
if ((($tmp = 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.', 115, $this->source); })()), "request", [], "any", false, false, false, 115), "get", ["debug"], "method", false, false, false, 115)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 116
yield " <div class=\"ctn debug\">
<p>
<em><strong>debug</strong></em>
id du modèle : ";
// line 119
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModel"]) || array_key_exists("productModel", $context) ? $context["productModel"] : (function () { throw new RuntimeError('Variable "productModel" does not exist.', 119, $this->source); })()), "id", [], "any", false, false, false, 119), "html", null, true);
yield "<br>
code du modèle : ";
// line 120
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModel"]) || array_key_exists("productModel", $context) ? $context["productModel"] : (function () { throw new RuntimeError('Variable "productModel" does not exist.', 120, $this->source); })()), "code", [], "any", false, false, false, 120), "html", null, true);
yield "<br>
";
// line 121
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModel"]) || array_key_exists("productModel", $context) ? $context["productModel"] : (function () { throw new RuntimeError('Variable "productModel" does not exist.', 121, $this->source); })()), "variant", [], "any", false, false, false, 121)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 122
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModel"]) || array_key_exists("productModel", $context) ? $context["productModel"] : (function () { throw new RuntimeError('Variable "productModel" does not exist.', 122, $this->source); })()), "variant", [], "any", false, false, false, 122), "code", [], "any", false, false, false, 122), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModel"]) || array_key_exists("productModel", $context) ? $context["productModel"] : (function () { throw new RuntimeError('Variable "productModel" does not exist.', 122, $this->source); })()), "variant", [], "any", false, false, false, 122), "title", [], "any", false, false, false, 122), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModel"]) || array_key_exists("productModel", $context) ? $context["productModel"] : (function () { throw new RuntimeError('Variable "productModel" does not exist.', 122, $this->source); })()), "variant", [], "any", false, false, false, 122), "axis1", [], "any", false, false, false, 122), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModel"]) || array_key_exists("productModel", $context) ? $context["productModel"] : (function () { throw new RuntimeError('Variable "productModel" does not exist.', 122, $this->source); })()), "variant", [], "any", false, false, false, 122), "axis2", [], "any", false, false, false, 122), "html", null, true);
yield "
";
}
// line 124
yield " </p>
";
// line 125
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModel"]) || array_key_exists("productModel", $context) ? $context["productModel"] : (function () { throw new RuntimeError('Variable "productModel" does not exist.', 125, $this->source); })()), "hasChildren", [], "method", false, false, false, 125)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 126
yield " <p>
<em><strong>sous modèles</strong></em>
";
// line 128
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModel"]) || array_key_exists("productModel", $context) ? $context["productModel"] : (function () { throw new RuntimeError('Variable "productModel" does not exist.', 128, $this->source); })()), "children", [], "any", false, false, false, 128));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 129
yield " <li>
id du sous-modèle : ";
// line 130
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 130), "html", null, true);
yield "<br>
code du sous-modèle : ";
// line 131
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "code", [], "any", false, false, false, 131), "html", null, true);
yield "<br>
";
// line 132
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["child"], "variant", [], "any", false, false, false, 132)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 133
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "variant", [], "any", false, false, false, 133), "code", [], "any", false, false, false, 133), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "variant", [], "any", false, false, false, 133), "title", [], "any", false, false, false, 133), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "variant", [], "any", false, false, false, 133), "axis1", [], "any", false, false, false, 133), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "variant", [], "any", false, false, false, 133), "axis2", [], "any", false, false, false, 133), "html", null, true);
yield "
";
}
// line 135
yield " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['child'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 137
yield " </p>
";
}
// line 139
yield " <p>
<em><strong>produits</strong></em>
<ul>
";
// line 142
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModel"]) || array_key_exists("productModel", $context) ? $context["productModel"] : (function () { throw new RuntimeError('Variable "productModel" does not exist.', 142, $this->source); })()), "allProducts", [], "any", false, false, false, 142));
foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
// line 143
yield " <li>
id du produit : ";
// line 144
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "id", [], "any", false, false, false, 144), "html", null, true);
yield "<br>
ref du produit : ";
// line 145
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "reference", [], "any", false, false, false, 145), "html", null, true);
yield "<br>
variant par défaut : ";
// line 146
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "isDefaultVariant", [], "any", false, false, false, 146), "html", null, true);
yield "<br>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['p'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 149
yield " </ul>
</p>
</div>
";
}
// line 153
yield "
<div class=\"product-view\">
<div class=\"ctn\">
<div class=\"product-infos\">
";
// line 157
yield from $this->load("front/catalog/model/view/assets.html.twig", 157)->unwrap()->yield($context);
// line 158
yield " <div class=\"infos\">
";
// line 159
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 160
yield " <div class=\"admin-tools\">
<a href=\"";
// line 161
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 161, $this->source); })()), "id", [], "any", false, false, false, 161)]), "html", null, true);
yield "\" class=\"admin-update\" target=\"_blank\">modifier le produit</a>
</div>
";
}
// line 164
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.', 164, $this->source); })()), "manufacturer", [], "any", false, false, false, 164)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 165
yield " <div class=\"manufacturer\"><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.', 165, $this->source); })()), "manufacturer", [], "any", false, false, false, 165), "id", [], "any", false, false, false, 165), "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.', 165, $this->source); })()), "manufacturer", [], "any", false, false, false, 165), "url", [], "any", false, false, false, 165)]), "html", null, true);
yield "\">";
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.', 165, $this->source); })()), "manufacturer", [], "any", false, false, false, 165), "name", [], "any", false, false, false, 165), "html", null, true);
yield "</a></div>
";
}
// line 167
yield " <h1>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 167, $this->source); })()), "headingTitle", [], "any", false, false, false, 167), "html", null, true);
yield "</h1>
<div class=\"description\">
";
// line 169
if ((($tmp = (isset($context["hasWelcomeDiscount"]) || array_key_exists("hasWelcomeDiscount", $context) ? $context["hasWelcomeDiscount"] : (function () { throw new RuntimeError('Variable "hasWelcomeDiscount" does not exist.', 169, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 170
yield " <div>
";
// line 171
yield from $this->load("front/catalog/product/view/discount-welcome.html.twig", 171)->unwrap()->yield($context);
// line 172
yield " </div>
";
}
// line 174
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 174, $this->source); })()), "description", [], "any", false, false, false, 174)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 175
yield " <a href=\"#description\" class=\"bt-scroll\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Voir le descriptif", [], "messages");
yield "</a>
";
}
// line 177
yield " </div>
";
// line 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.', 178, $this->source); })()), "canSeePrices", [], "method", false, false, false, 178)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 179
yield " <div class=\"not-logged\">
";
// line 180
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Pour voir les prix des articles,", [], "messages");
yield "<a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customer_login");
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("il faut être connecté", [], "messages");
yield "</a> ";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("(c’est gratuit)", [], "messages");
yield ".
</div>
";
}
// line 183
yield " ";
yield from $this->load("front/catalog/model/view/references.html.twig", 183)->unwrap()->yield($context);
// line 184
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.', 184, $this->source); })()), "isExpert", [], "method", false, false, false, 184)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 185
yield " <div class=\"offers\">
<div class=\"free-shipping\">
<img src=\"";
// line 187
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/pictos/shipping.svg"), "html", null, true);
yield "\" alt=\"";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Livraison gratuite dès 100 € HT", [], "messages");
yield "\">
<div>";
// line 188
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("<strong>LIVRAISON GRATUITE</strong><br>dès 100 € HT", [], "messages");
yield "</div>
</div>
<div class=\"free-gift\">
<img src=\"";
// line 191
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/pictos/gift.svg"), "html", null, true);
yield "\" alt=\"";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("1 cadeau offert pour chaque commande internet", [], "messages");
yield "\">
<div>";
// line 192
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("<strong>1 CADEAU OFFERT</strong> pour <br>chaque commande internet", [], "messages");
yield "</div>
</div>
</div>
";
// line 195
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.', 195, $this->source); })()), "hasSoleil", [], "method", false, false, false, 195)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 196
yield " <p>";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("-25% de remise sur les produits <span class=\"picto soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto soleil\"></span>", [], "messages");
yield "</p>
";
}
// line 198
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.', 198, $this->source); })()), "hasNonSoleil", [], "method", false, false, false, 198)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 199
yield " <p>";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("-10% de remise sur les produits <span class=\"picto non-soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto non-soleil\"></span>", [], "messages");
yield "</p>
";
}
// line 201
yield " ";
}
// line 202
yield " </div>
</div>
</div>
<div class=\"ctn\">
";
// line 206
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 206, $this->source); })()), "description", [], "any", false, false, false, 206)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 207
yield " <div class=\"tab-content rte section\" id=\"description\">
<div class=\"title-ctn\">
<div class=\"title\">";
// line 209
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Description détaillée", [], "messages");
yield "</div>
</div>
";
// line 211
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 211, $this->source); })()), "description", [], "any", false, false, false, 211);
yield "
</div>
";
}
// line 214
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.', 214, $this->source); })()), "notice", [], "any", false, false, false, 214)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 215
yield " <div class=\"tab-content rte section\" id=\"notice\">
<div class=\"title-ctn\">
<div class=\"title\">";
// line 217
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Notice", [], "messages");
yield "</div>
</div>
<p class=\"notice\"><a href=\"";
// line 219
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.', 219, $this->source); })()), "noticeUrl", [], "any", false, false, false, 219), "html", null, true);
yield "\" target=\"_blank\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Télécharger la notice d\x27utilisation", [], "messages");
yield "</a></p>
</div>
";
}
// line 222
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 222, $this->source); })()), "conseil1", [], "any", false, false, false, 222)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 223
yield " <div class=\"section rte advices\">
<div class=\"title-ctn\">
<div class=\"title\">";
// line 225
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Conseils et astuces", [], "messages");
yield "</div>
</div>
";
// line 227
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["productModelDescription"]) || array_key_exists("productModelDescription", $context) ? $context["productModelDescription"] : (function () { throw new RuntimeError('Variable "productModelDescription" does not exist.', 227, $this->source); })()), "conseil1", [], "any", false, false, false, 227);
yield "
</div>
";
}
// line 230
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.', 230, $this->source); })()), "video", [], "any", false, false, false, 230)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 231
yield " <div class=\"tab-content rte section\" id=\"video\">
<div class=\"title-ctn\">
<div class=\"title\">";
// line 233
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("VidÉo", [], "messages");
yield "</div>
<hr>
</div>
<div class=\"video-ctn\">
";
// line 237
yield 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.', 237, $this->source); })()), "video", [], "any", false, false, false, 237);
yield "
</div>
</div>
";
}
// line 241
yield " ";
yield from $this->load("front/catalog/product/view/caracteristics.html.twig", 241)->unwrap()->yield($context);
// line 242
yield " </div>
";
// line 243
if ((($tmp = (isset($context["associates"]) || array_key_exists("associates", $context) ? $context["associates"] : (function () { throw new RuntimeError('Variable "associates" does not exist.', 243, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 244
yield " ";
yield from $this->load("front/catalog/product/carousel.html.twig", 244)->unwrap()->yield(CoreExtension::merge($context, ["products" => (isset($context["associates"]) || array_key_exists("associates", $context) ? $context["associates"] : (function () { throw new RuntimeError('Variable "associates" does not exist.', 244, $this->source); })()), "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Produits associés"), "withWrapper" => true]));
// line 245
yield " ";
}
// line 246
yield " <div class=\"ctn\" style=\"padding: 30px 0;\">
";
// line 247
if ((($tmp = (isset($context["inCategory"]) || array_key_exists("inCategory", $context) ? $context["inCategory"] : (function () { throw new RuntimeError('Variable "inCategory" does not exist.', 247, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 248
yield " ";
yield from $this->load("front/catalog/product/carousel.html.twig", 248)->unwrap()->yield(CoreExtension::merge($context, ["products" => (isset($context["inCategory"]) || array_key_exists("inCategory", $context) ? $context["inCategory"] : (function () { throw new RuntimeError('Variable "inCategory" does not exist.', 248, $this->source); })()), "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dans la même catégorie"), "withWrapper" => false]));
// line 249
yield " ";
}
// line 250
yield " </div>
";
// line 251
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\Modules\\SeenProductsController::block", ["request" => CoreExtension::getAttribute($this->env, $this->source, // line 253
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 253, $this->source); })()), "request", [], "any", false, false, false, 253)]));
// line 254
yield "
<div class=\"ctn\">
";
// line 256
if ((($tmp = (isset($context["pathTags"]) || array_key_exists("pathTags", $context) ? $context["pathTags"] : (function () { throw new RuntimeError('Variable "pathTags" does not exist.', 256, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 257
yield " <div class=\"section rte tags\">
<div class=\"title-ctn\">
<div class=\"title\">";
// line 259
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Craquez aussi pour...", [], "messages");
yield "</div>
</div>
";
// line 261
yield (isset($context["pathTags"]) || array_key_exists("pathTags", $context) ? $context["pathTags"] : (function () { throw new RuntimeError('Variable "pathTags" does not exist.', 261, $this->source); })());
yield "
</div>
";
}
// line 264
yield " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 268
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(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(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 269
yield " <script src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/product.js"), "html", null, true);
yield "\"></script>
<script>
\$(document).ready(function(){
";
// line 273
yield " product.init();
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "front/catalog/model/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 923 => 273, 916 => 269, 903 => 268, 890 => 264, 884 => 261, 879 => 259, 875 => 257, 873 => 256, 869 => 254, 867 => 253, 866 => 251, 863 => 250, 860 => 249, 857 => 248, 855 => 247, 852 => 246, 849 => 245, 846 => 244, 844 => 243, 841 => 242, 838 => 241, 831 => 237, 824 => 233, 820 => 231, 817 => 230, 811 => 227, 806 => 225, 802 => 223, 799 => 222, 791 => 219, 786 => 217, 782 => 215, 779 => 214, 773 => 211, 768 => 209, 764 => 207, 762 => 206, 756 => 202, 753 => 201, 747 => 199, 744 => 198, 738 => 196, 736 => 195, 730 => 192, 724 => 191, 718 => 188, 712 => 187, 708 => 185, 705 => 184, 702 => 183, 690 => 180, 687 => 179, 685 => 178, 682 => 177, 676 => 175, 673 => 174, 669 => 172, 667 => 171, 664 => 170, 662 => 169, 656 => 167, 648 => 165, 645 => 164, 639 => 161, 636 => 160, 634 => 159, 631 => 158, 629 => 157, 623 => 153, 617 => 149, 608 => 146, 604 => 145, 600 => 144, 597 => 143, 593 => 142, 588 => 139, 584 => 137, 577 => 135, 565 => 133, 563 => 132, 559 => 131, 555 => 130, 552 => 129, 548 => 128, 544 => 126, 542 => 125, 539 => 124, 527 => 122, 525 => 121, 521 => 120, 517 => 119, 512 => 116, 510 => 115, 507 => 114, 505 => 113, 502 => 112, 489 => 111, 477 => 108, 464 => 107, 442 => 105, 430 => 102, 424 => 101, 415 => 98, 411 => 97, 407 => 96, 403 => 95, 399 => 94, 395 => 93, 391 => 92, 387 => 91, 383 => 90, 378 => 89, 374 => 88, 369 => 87, 365 => 86, 362 => 85, 356 => 84, 347 => 81, 343 => 80, 339 => 79, 335 => 78, 331 => 77, 327 => 76, 323 => 75, 319 => 74, 315 => 73, 310 => 72, 305 => 71, 292 => 69, 288 => 68, 281 => 64, 277 => 63, 273 => 62, 269 => 61, 264 => 60, 260 => 59, 249 => 51, 245 => 50, 239 => 47, 235 => 45, 232 => 44, 213 => 40, 207 => 38, 201 => 36, 199 => 35, 193 => 32, 189 => 30, 186 => 29, 169 => 28, 163 => 25, 159 => 24, 153 => 21, 143 => 13, 140 => 12, 127 => 11, 114 => 8, 110 => 7, 105 => 6, 92 => 5, 69 => 3, 46 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27front/front.html.twig\x27 %}
{% block bodyClass %}product product-model{% endblock %}
{% block metas %}
<title>{{ productModelDescription.headTitleTag ? productModelDescription.headTitleTag : productModelDescription.name }}</title>
<meta name=\"description\" content=\"{{ productModelDescription.headDescTag ? productModelDescription.headDescTag : productModelDescription.description|metadescription }}\">
<link rel=\"canonical\" href=\"{{ url(\x27product\x27,{id:product.id, url:productModelDescription.url}) }}\" />
{% endblock %}
{% block structuredData %}
{% set cpt = 1 %}
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"BreadcrumbList\",
\"itemListElement\":
[
{
\"@type\": \"ListItem\",
\"position\": {{ cpt }},
\"item\":
{
\"@id\": \"{{ url(\x27index\x27) }}\",
\"name\": \"{% trans %}Vivog | Matériel pour les toiletteurs et éleveurs{% endtrans %}\"
}
},
{% for p in path %}
{% set cpt = cpt + 1 %}
{
\"@type\": \"ListItem\",
\"position\": {{ cpt }},
\"item\":
{
{% if loop.index == 1 %}
\"@id\": \"{{ url(\x27universe\x27,{url:p.url,id:p.id}) }}\",
{% else %}
\"@id\": \"{{ url(\x27category\x27,{url:p.url,id:p.id}) }}\",
{% endif %}
\"name\": \"{{ p.name }}\"
}
},
{% endfor %}
{% set cpt = cpt + 1 %}
{
\"@type\": \"ListItem\",
\"position\": {{ cpt }},
\"item\":
{
\"@id\": \"{{ url(\x27product\x27,{url:product.url,id:product.id}) }}\",
\"name\": \"{{ product.name }}\"
}
}
]
}
</script>
<script>
var products = [];
{% for p in products %}
products[\x27{{ p.id }}\x27] = {
id: {{ p.id | e(\x27js\x27) }},
model: \x27{{ p.model | e(\x27js\x27) }}\x27,
inStock: {{ (p.quantity > 0 ? 1 : 0) | e(\x27js\x27) }},
price: {{ p.getPrice() | e(\x27js\x27) }},
attributes: [],
pictures: [],
};
{% for attribute in attributes %}
products[\x27{{ p.id }}\x27].attributes[\x27{{ attribute.code }}\x27] = \x27{{ (p.getAttribute(attribute.code) ? p.getAttribute(attribute.code).value : \x27\x27) |e(\x27js\x27) }}\x27;
{% endfor %}
{% for picture in p.pictures %}
products[\x27{{ p.id }}\x27].pictures.push ({
id: {{ picture.id | e(\x27js\x27) }},
code: \x27{{ picture.code | e(\x27js\x27) }}\x27,
url: \x27{{ picture.webPath |e(\x27js\x27) }}\x27,
small: \x27{{ picture.webPath | imagine_filter(\x27product_small\x27) |e(\x27js\x27) }}\x27,
medium: \x27{{ picture.webPath | imagine_filter(\x27product_medium\x27) |e(\x27js\x27) }}\x27,
large: \x27{{ picture.webPath | imagine_filter(\x27product_large\x27) |e(\x27js\x27) }}\x27,
zoom: \x27{{ picture.webPath | imagine_filter(\x27product_zoom\x27) |e(\x27js\x27) }}\x27,
title: \x27{{ picture.title |e(\x27js\x27) }}\x27,
alt: \x27{{ picture.alt |e(\x27js\x27) }}\x27,
});
{% endfor %}
{% endfor %}
var assets = [];
{% for pid, pictures in assets %}
assets[\x27{{pid}}\x27] = [];
{% for asset in pictures %}
assets[\x27{{pid}}\x27].push ({
id: {{ asset.id | e(\x27js\x27) }},
code: \x27{{ asset.code | e(\x27js\x27) }}\x27,
url: \x27{{ asset.webPath |e(\x27js\x27) }}\x27,
small: \x27{{ asset.webPath | imagine_filter(\x27product_small\x27) |e(\x27js\x27) }}\x27,
medium: \x27{{ asset.webPath | imagine_filter(\x27product_medium\x27) |e(\x27js\x27) }}\x27,
large: \x27{{ asset.webPath | imagine_filter(\x27product_large\x27) |e(\x27js\x27) }}\x27,
zoom: \x27{{ asset.webPath | imagine_filter(\x27product_zoom\x27) |e(\x27js\x27) }}\x27,
title: \x27{{ asset.title |e(\x27js\x27) }}\x27,
alt: \x27{{ asset.alt |e(\x27js\x27) }}\x27,
});
{% endfor %}
{% endfor %}
</script>
{% endblock %}
{% block featured %}{% endblock %}
{% block breadcrumbs %}
{% include \x27front/layout/breadcrumbs.html.twig\x27 with {productModel:productModel} %}
{% endblock %}
{% block content %}
{% include \x27front/layout/messages.html.twig\x27 %}
{% if app.request.get(\x27debug\x27) %}
<div class=\"ctn debug\">
<p>
<em><strong>debug</strong></em>
id du modèle : {{ productModel.id }}<br>
code du modèle : {{ productModel.code }}<br>
{% if productModel.variant %}
{{ productModel.variant.code }} {{ productModel.variant.title }} {{ productModel.variant.axis1 }} {{ productModel.variant.axis2 }}
{% endif %}
</p>
{% if productModel.hasChildren() %}
<p>
<em><strong>sous modèles</strong></em>
{% for child in productModel.children %}
<li>
id du sous-modèle : {{ child.id }}<br>
code du sous-modèle : {{ child.code }}<br>
{% if child.variant %}
{{ child.variant.code }} {{ child.variant.title }} {{ child.variant.axis1 }} {{ child.variant.axis2 }}
{% endif %}
</li>
{% endfor %}
</p>
{% endif %}
<p>
<em><strong>produits</strong></em>
<ul>
{% for p in productModel.allProducts %}
<li>
id du produit : {{ p.id }}<br>
ref du produit : {{ p.reference }}<br>
variant par défaut : {{ p.isDefaultVariant }}<br>
</li>
{% endfor %}
</ul>
</p>
</div>
{% endif %}
<div class=\"product-view\">
<div class=\"ctn\">
<div class=\"product-infos\">
{% include \x27front/catalog/model/view/assets.html.twig\x27 %}
<div class=\"infos\">
{% if is_granted(\x27ROLE_ADMIN\x27) %}
<div class=\"admin-tools\">
<a href=\"{{ path(\x27admin_product_edit\x27,{id:product.id}) }}\" class=\"admin-update\" target=\"_blank\">modifier le produit</a>
</div>
{% endif %}
{% if product.manufacturer %}
<div class=\"manufacturer\"><a href=\"{{ path(\x27manufacturer\x27,{id:product.manufacturer.id, url:product.manufacturer.url}) }}\">{{ product.manufacturer.name }}</a></div>
{% endif %}
<h1>{{ productModelDescription.headingTitle }}</h1>
<div class=\"description\">
{% if hasWelcomeDiscount %}
<div>
{% include \x27front/catalog/product/view/discount-welcome.html.twig\x27 %}
</div>
{% endif %}
{% if productModelDescription.description %}
<a href=\"#description\" class=\"bt-scroll\">{% trans %}Voir le descriptif{% endtrans %}</a>
{% endif %}
</div>
{% if not customerMgr.canSeePrices() %}
<div class=\"not-logged\">
{% trans %}Pour voir les prix des articles, {% endtrans %}<a href=\"{{ path(\x27customer_login\x27) }}\">{% trans %}il faut être connecté{% endtrans %}</a> {% trans %}(c’est gratuit){% endtrans %}.
</div>
{% endif %}
{% include \x27front/catalog/model/view/references.html.twig\x27 %}
{% if not customerMgr.isExpert() %}
<div class=\"offers\">
<div class=\"free-shipping\">
<img src=\"{{ asset(\x27img/pictos/shipping.svg\x27) }}\" alt=\"{% trans %}Livraison gratuite dès 100 € HT{% endtrans %}\">
<div>{% trans %}<strong>LIVRAISON GRATUITE</strong><br>dès 100 € HT{% endtrans %}</div>
</div>
<div class=\"free-gift\">
<img src=\"{{ asset(\x27img/pictos/gift.svg\x27) }}\" alt=\"{% trans %}1 cadeau offert pour chaque commande internet{% endtrans %}\">
<div>{% trans %}<strong>1 CADEAU OFFERT</strong> pour <br>chaque commande internet{% endtrans %}</div>
</div>
</div>
{% if product.hasSoleil() %}
<p>{% trans %}-25% de remise sur les produits <span class=\"picto soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto soleil\"></span>{% endtrans %}</p>
{% endif %}
{% if product.hasNonSoleil() %}
<p>{% trans %}-10% de remise sur les produits <span class=\"picto non-soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto non-soleil\"></span>{% endtrans %}</p>
{% endif %}
{% endif %}
</div>
</div>
</div>
<div class=\"ctn\">
{% if productModelDescription.description %}
<div class=\"tab-content rte section\" id=\"description\">
<div class=\"title-ctn\">
<div class=\"title\">{% trans %}Description détaillée{% endtrans %}</div>
</div>
{{ productModelDescription.description|raw }}
</div>
{% endif %}
{% if product.notice %}
<div class=\"tab-content rte section\" id=\"notice\">
<div class=\"title-ctn\">
<div class=\"title\">{% trans %}Notice{% endtrans %}</div>
</div>
<p class=\"notice\"><a href=\"{{ product.noticeUrl }}\" target=\"_blank\">{% trans %}Télécharger la notice d\x27utilisation{% endtrans %}</a></p>
</div>
{% endif %}
{% if productModelDescription.conseil1 %}
<div class=\"section rte advices\">
<div class=\"title-ctn\">
<div class=\"title\">{% trans %}Conseils et astuces{% endtrans %}</div>
</div>
{{ productModelDescription.conseil1|raw }}
</div>
{% endif %}
{% if product.video %}
<div class=\"tab-content rte section\" id=\"video\">
<div class=\"title-ctn\">
<div class=\"title\">{% trans %}VidÉo{% endtrans %}</div>
<hr>
</div>
<div class=\"video-ctn\">
{{ product.video|raw }}
</div>
</div>
{% endif %}
{% include \x27front/catalog/product/view/caracteristics.html.twig\x27 %}
</div>
{% if associates %}
{% include \x27front/catalog/product/carousel.html.twig\x27 with {products:associates, title:\x27Produits associés\x27|trans, withWrapper:true} %}
{% endif %}
<div class=\"ctn\" style=\"padding: 30px 0;\">
{% if inCategory %}
{% include \x27front/catalog/product/carousel.html.twig\x27 with {products:inCategory, title:\x27Dans la même catégorie\x27|trans, withWrapper:false} %}
{% endif %}
</div>
{{ render(controller(
\x27App\\\\Controller\\\\Front\\\\Modules\\\\SeenProductsController::block\x27,
{ \x27request\x27: app.request }
)) }}
<div class=\"ctn\">
{% if pathTags %}
<div class=\"section rte tags\">
<div class=\"title-ctn\">
<div class=\"title\">{% trans %}Craquez aussi pour...{% endtrans %}</div>
</div>
{{ pathTags|raw }}
</div>
{% endif %}
</div>
</div>
{% endblock %}
{% block javascripts %}
<script src=\"{{ asset(\x27js/product.js\x27) }}\"></script>
<script>
\$(document).ready(function(){
{# tabs.init();#}
product.init();
});
</script>
{% endblock %}", "front/catalog/model/view.html.twig", "/var/www/dogcat.com/pim/templates/front/catalog/model/view.html.twig");
}
}