<?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;
/* front/catalog/product/view.html.twig */
class __TwigTemplate_b5e706c0ec1bc01cb35635b777847c09 extends Template
{
private $source;
private $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)
{
// line 1
return "front/front.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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/product/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/product/view.html.twig"));
$this->parent = $this->loadTemplate("front/front.html.twig", "front/catalog/product/view.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
public function block_bodyClass($context, array $blocks = [])
{
$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";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 5
public function block_metas($context, array $blocks = [])
{
$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 $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 6, $this->source); })()), "headTitleTag", [], "any", false, false, false, 6)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 6, $this->source); })()), "headTitleTag", [], "any", false, false, false, 6)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 6, $this->source); })()), "name", [], "any", false, false, false, 6))), "html", null, true);
yield "</title>
<meta name=\"description\" content=\"";
// line 7
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 7, $this->source); })()), "headDescTag", [], "any", false, false, false, 7)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 7, $this->source); })()), "headDescTag", [], "any", false, false, false, 7)) : ($this->extensions['App\Twig\TextExtension']->metaDescriptionFilter(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" 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["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" 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);
return; yield '';
}
// line 11
public function block_structuredData($context, array $blocks = [])
{
$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']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $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>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 59
public function block_featured($context, array $blocks = [])
{
$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);
return; yield '';
}
// line 61
public function block_breadcrumbs($context, array $blocks = [])
{
$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 62
yield " ";
yield from $this->loadTemplate("front/layout/breadcrumbs.html.twig", "front/catalog/product/view.html.twig", 62)->unwrap()->yield(CoreExtension::merge($context, ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 62, $this->source); })())]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 65
public function block_content($context, array $blocks = [])
{
$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 66
yield "
";
// line 67
yield from $this->loadTemplate("front/layout/messages.html.twig", "front/catalog/product/view.html.twig", 67)->unwrap()->yield($context);
// line 68
yield "
<div class=\"product-view\">
<div class=\"ctn\">
";
// line 71
yield from $this->loadTemplate("front/catalog/product/view/infos.html.twig", "front/catalog/product/view.html.twig", 71)->unwrap()->yield(CoreExtension::merge($context, ["discounts" => (isset($context["discountsList"]) || array_key_exists("discountsList", $context) ? $context["discountsList"] : (function () { throw new RuntimeError('Variable "discountsList" does not exist.', 71, $this->source); })())]));
// line 72
yield " </div>
<div class=\"ctn\">
";
// line 74
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 74, $this->source); })()), "description", [], "any", false, false, false, 74)) {
// line 75
yield " <div class=\"tab-content rte section\" id=\"description\">
<div class=\"title-ctn\">
<div class=\"title\">";
// line 77
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Description détaillée", [], "messages");
yield "</div>
</div>
";
// line 79
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 79, $this->source); })()), "description", [], "any", false, false, false, 79);
yield "
</div>
";
}
// line 82
yield " ";
if (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.', 82, $this->source); })()), "notice", [], "any", false, false, false, 82)) {
// line 83
yield " <div class=\"tab-content rte section\" id=\"notice\">
<div class=\"title-ctn\">
<div class=\"title\">";
// line 85
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Notice", [], "messages");
yield "</div>
</div>
<p class=\"notice\"><a href=\"";
// line 87
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.', 87, $this->source); })()), "noticeUrl", [], "any", false, false, false, 87), "html", null, true);
yield "\" target=\"_blank\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Télécharger la notice d'utilisation", [], "messages");
yield "</a></p>
</div>
";
}
// line 90
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 90, $this->source); })()), "conseil1", [], "any", false, false, false, 90)) {
// line 91
yield " <div class=\"section rte advices\">
<div class=\"title-ctn\">
<div class=\"title\">";
// line 93
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Conseils et astuces", [], "messages");
yield "</div>
</div>
";
// line 95
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 95, $this->source); })()), "conseil1", [], "any", false, false, false, 95);
yield "
</div>
";
}
// line 98
yield " ";
if (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.', 98, $this->source); })()), "video", [], "any", false, false, false, 98)) {
// line 99
yield " <div class=\"tab-content rte section\" id=\"video\">
<div class=\"title-ctn\">
<div class=\"title\">";
// line 101
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("VidÉo", [], "messages");
yield "</div>
<hr>
</div>
<div class=\"video-ctn\">
";
// line 105
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.', 105, $this->source); })()), "video", [], "any", false, false, false, 105);
yield "
</div>
</div>
";
}
// line 109
yield " </div>
";
// line 110
if ((isset($context["associates"]) || array_key_exists("associates", $context) ? $context["associates"] : (function () { throw new RuntimeError('Variable "associates" does not exist.', 110, $this->source); })())) {
// line 111
yield " ";
yield from $this->loadTemplate("front/catalog/product/carousel.html.twig", "front/catalog/product/view.html.twig", 111)->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.', 111, $this->source); })()), "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Produits associés"), "withWrapper" => true]));
// line 112
yield " ";
}
// line 113
yield " <div class=\"ctn\" style=\"padding: 30px 0;\">
";
// line 114
if ((isset($context["inCategory"]) || array_key_exists("inCategory", $context) ? $context["inCategory"] : (function () { throw new RuntimeError('Variable "inCategory" does not exist.', 114, $this->source); })())) {
// line 115
yield " ";
yield from $this->loadTemplate("front/catalog/product/carousel.html.twig", "front/catalog/product/view.html.twig", 115)->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.', 115, $this->source); })()), "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dans la même catégorie"), "withWrapper" => false]));
// line 116
yield " ";
}
// line 117
yield " </div>
";
// line 118
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 120
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 120, $this->source); })()), "request", [], "any", false, false, false, 120)]));
// line 121
yield "
<div class=\"ctn\">
";
// line 123
if ((isset($context["pathTags"]) || array_key_exists("pathTags", $context) ? $context["pathTags"] : (function () { throw new RuntimeError('Variable "pathTags" does not exist.', 123, $this->source); })())) {
// line 124
yield " <div class=\"section rte tags\">
<div class=\"title-ctn\">
<div class=\"title\">";
// line 126
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Craquez aussi pour...", [], "messages");
yield "</div>
</div>
";
// line 128
yield (isset($context["pathTags"]) || array_key_exists("pathTags", $context) ? $context["pathTags"] : (function () { throw new RuntimeError('Variable "pathTags" does not exist.', 128, $this->source); })());
yield "
</div>
";
}
// line 131
yield " </div>
";
// line 142
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 145
public function block_javascripts($context, array $blocks = [])
{
$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 146
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 150
yield " product.init();
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/catalog/product/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 478 => 150, 471 => 146, 461 => 145, 449 => 142, 446 => 131, 440 => 128, 435 => 126, 431 => 124, 429 => 123, 425 => 121, 423 => 120, 422 => 118, 419 => 117, 416 => 116, 413 => 115, 411 => 114, 408 => 113, 405 => 112, 402 => 111, 400 => 110, 397 => 109, 390 => 105, 383 => 101, 379 => 99, 376 => 98, 370 => 95, 365 => 93, 361 => 91, 358 => 90, 350 => 87, 345 => 85, 341 => 83, 338 => 82, 332 => 79, 327 => 77, 323 => 75, 321 => 74, 317 => 72, 315 => 71, 310 => 68, 308 => 67, 305 => 66, 295 => 65, 283 => 62, 273 => 61, 254 => 59, 236 => 51, 232 => 50, 226 => 47, 222 => 45, 219 => 44, 200 => 40, 194 => 38, 188 => 36, 186 => 35, 180 => 32, 176 => 30, 173 => 29, 156 => 28, 150 => 25, 146 => 24, 140 => 21, 130 => 13, 127 => 12, 117 => 11, 104 => 8, 100 => 7, 95 => 6, 85 => 5, 65 => 3, 42 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'front/front.html.twig' %}
{% block bodyClass %}product{% endblock %}
{% block metas %}
<title>{{ productDescription.headTitleTag ? productDescription.headTitleTag : productDescription.name }}</title>
<meta name=\"description\" content=\"{{ productDescription.headDescTag ? productDescription.headDescTag : productDescription.description|metadescription }}\">
<link rel=\"canonical\" href=\"{{ url('product',{id:product.id, url:productDescription.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('index') }}\",
\"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('universe',{url:p.url,id:p.id}) }}\",
{% else %}
\"@id\": \"{{ url('category',{url:p.url,id:p.id}) }}\",
{% endif %}
\"name\": \"{{ p.name }}\"
}
},
{% endfor %}
{% set cpt = cpt + 1 %}
{
\"@type\": \"ListItem\",
\"position\": {{ cpt }},
\"item\":
{
\"@id\": \"{{ url('product',{url:product.url,id:product.id}) }}\",
\"name\": \"{{ product.name }}\"
}
}
]
}
</script>
{% endblock %}
{% block featured %}{% endblock %}
{% block breadcrumbs %}
{% include 'front/layout/breadcrumbs.html.twig' with {product:product} %}
{% endblock %}
{% block content %}
{% include 'front/layout/messages.html.twig' %}
<div class=\"product-view\">
<div class=\"ctn\">
{% include 'front/catalog/product/view/infos.html.twig' with {discounts:discountsList} %}
</div>
<div class=\"ctn\">
{% if productDescription.description %}
<div class=\"tab-content rte section\" id=\"description\">
<div class=\"title-ctn\">
<div class=\"title\">{% trans %}Description détaillée{% endtrans %}</div>
</div>
{{ productDescription.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'utilisation{% endtrans %}</a></p>
</div>
{% endif %}
{% if productDescription.conseil1 %}
<div class=\"section rte advices\">
<div class=\"title-ctn\">
<div class=\"title\">{% trans %}Conseils et astuces{% endtrans %}</div>
</div>
{{ productDescription.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 %}
</div>
{% if associates %}
{% include 'front/catalog/product/carousel.html.twig' with {products:associates, title:'Produits associés'|trans, withWrapper:true} %}
{% endif %}
<div class=\"ctn\" style=\"padding: 30px 0;\">
{% if inCategory %}
{% include 'front/catalog/product/carousel.html.twig' with {products:inCategory, title:'Dans la même catégorie'|trans, withWrapper:false} %}
{% endif %}
</div>
{{ render(controller(
'App\\\\Controller\\\\Front\\\\Modules\\\\SeenProductsController::block',
{ 'request': 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 class=\"ctn\">
<div class=\"section tags module-categories\">
<div class=\"title-ctn\">
<div class=\"title\">{% trans %}No catégories{% endtrans %}</div>
</div>
<div class=\"content\">
{{ pathTags|raw }}
</div>
</div>
</div>#}
</div>
{% endblock %}
{% block javascripts %}
<script src=\"{{ asset('js/product.js') }}\"></script>
<script>
\$(document).ready(function(){
{# tabs.init();#}
product.init();
});
</script>
{% endblock %}", "front/catalog/product/view.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/product/view.html.twig");
}
}