<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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/theme1/produits/page_produit.html.twig */
class __TwigTemplate_70862b2d0e67102d95eafc5b43d79d5e77b33961dd0e00fdc7d62aca30517c50 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'preload' => [$this, 'block_preload'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate((("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1, $this->source); })()), "request", [], "any", false, false, false, 1), "server", [], "any", false, false, false, 1), "get", [0 => "APP_THEME"], "method", false, false, false, 1)) . "/base.html.twig"), "front/theme1/produits/page_produit.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/produits/page_produit.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/produits/page_produit.html.twig"));
// line 2
$context["parametre"] = $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction();
// line 1
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_preload($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preload"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preload"));
// line 4
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["post"] ?? null), "image", [], "any", true, true, false, 4) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 4, $this->source); })()), "image", [], "any", false, false, false, 4)))) {
// line 5
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 5, $this->source); })()), "image", [], "any", false, false, false, 5)) {
// line 6
echo " <link rel=\"preload\" as=\"image\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 6, $this->source); })()), "image", [], "any", false, false, false, 6)), "html", null, true);
echo "\" />
";
}
// line 8
echo " ";
}
// line 9
echo "
";
// line 10
if ((array_key_exists("galleries", $context) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 10, $this->source); })())))) {
// line 11
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 11, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 12
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", true, true, false, 12)) {
// line 13
echo " <link rel=\"preload\" as=\"image\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageGalleryFunction(twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", false, false, false, 13)), "html", null, true);
echo "\" />
";
}
// line 15
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 16
echo " ";
}
// line 17
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 21
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
// line 22
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie", $context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.', 22, $this->source); })()), 0, [], "array", false, false, false, 22), "type", [], "any", false, false, false, 22) == 4)) {
// line 23
echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/flexslider/flexslider.css"), "html", null, true);
echo "\" media=\"screen\" >
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 27
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 28
echo "
";
// line 29
$context["position_image"] = twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 29, $this->source); })()), "positionimage", [], "any", false, false, false, 29);
// line 30
echo " ";
$context["class_position"] = "";
// line 31
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 31, $this->source); })()), "positionimage", [], "any", false, false, false, 31) == 2)) {
// line 32
echo " ";
$context["class_position"] = "float-md-left mb-2 mr-md-3";
// line 33
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 33, $this->source); })()), "positionimage", [], "any", false, false, false, 33) == 3)) {
// line 34
echo " ";
$context["class_position"] = "float-md-right mb-2 ml-md-3";
// line 35
echo " ";
}
// line 36
echo "
";
// line 37
if (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 37, $this->source); })()), "imageBandeau", [], "any", false, false, false, 37)) {
// line 38
echo " ";
$context["imagebandeau"] = twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 38, $this->source); })()), "imageBandeau", [], "any", false, false, false, 38);
// line 39
echo " ";
} elseif (twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 39, $this->source); })()), "imageBandeau", [], "any", false, false, false, 39)) {
// line 40
echo " ";
$context["imagebandeau"] = ("uploads/images/" . twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 40, $this->source); })()), "imageBandeau", [], "any", false, false, false, 40));
// line 41
echo " ";
} else {
// line 42
echo " ";
$context["imagebandeau"] = "";
// line 43
echo " ";
}
// line 44
echo "
";
// line 45
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 45, $this->source); })()) != "")) {
// line 46
echo " <section class=\"image-bandeau text-center\">
<img class=\"lazyload\" alt=\"";
// line 47
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 47, $this->source); })()), "title", [], "any", false, false, false, 47), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 47, $this->source); })()), "title", [], "any", false, false, false, 47), "html", null, true);
echo "\" data-srcset=\"";
echo twig_escape_filter($this->env, (isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 47, $this->source); })()), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 47, $this->source); })())), "html", null, true);
echo "\" />
<div class=\"cnt-bandeau text-center\">
\t\t\t\t<div class=\"container-fluid wrapper\">
<div class=\"breadcrumb-style-default\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
";
// line 54
if ((array_key_exists("breadcrumb", $context) && !twig_test_empty((isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 54, $this->source); })())))) {
// line 55
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 55, $this->source); })()), "request", [], "any", false, false, false, 55), "server", [], "any", false, false, false, 55), "get", [0 => "APP_THEME"], "method", false, false, false, 55)) . "/partials/breadcrumb.html.twig"));
echo "
";
}
// line 57
echo " </div>
</div>
</div>
</div>
<h1 class=\"page-title\">";
// line 61
echo twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 61, $this->source); })()), "title", [], "any", false, false, false, 61);
echo "</h1>
</div>
</div>
</section>
";
}
// line 66
echo "
<div class=\"page_product pt-5\">
";
// line 68
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 68, $this->source); })()) == "")) {
// line 69
echo " <div class=\"breadcrumb-style-default\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
";
// line 74
if ((array_key_exists("breadcrumb", $context) && !twig_test_empty((isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 74, $this->source); })())))) {
// line 75
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 75, $this->source); })()), "request", [], "any", false, false, false, 75), "server", [], "any", false, false, false, 75), "get", [0 => "APP_THEME"], "method", false, false, false, 75)) . "/partials/breadcrumb.html.twig"));
echo "
";
// line 76
if (twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 76, $this->source); })()), "image", [], "any", false, false, false, 76))) {
// line 77
echo " <h1 class=\"page-title\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_last($this->env, (isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 77, $this->source); })())), "name", [], "any", false, false, false, 77), "html", null, true);
echo "</h1>
";
}
// line 79
echo " ";
}
// line 80
echo " </div>
</div>
</div>
</div>
</div>
";
}
// line 86
echo "
<div class=\"container-fluid ";
// line 87
echo (((array_key_exists("categories_tree", $context) && !twig_test_empty((isset($context["categories_tree"]) || array_key_exists("categories_tree", $context) ? $context["categories_tree"] : (function () { throw new RuntimeError('Variable "categories_tree" does not exist.', 87, $this->source); })())))) ? ("") : ("wrapper"));
echo " mt-3\">
<div class=\"row gx-5 py-2\">
";
// line 89
if ((array_key_exists("categories_tree", $context) && !twig_test_empty((isset($context["categories_tree"]) || array_key_exists("categories_tree", $context) ? $context["categories_tree"] : (function () { throw new RuntimeError('Variable "categories_tree" does not exist.', 89, $this->source); })())))) {
// line 90
echo " <div class=\"col-sm-12 col-md-3 ";
echo (((array_key_exists("show_filter_categorie", $context) && ((isset($context["show_filter_categorie"]) || array_key_exists("show_filter_categorie", $context) ? $context["show_filter_categorie"] : (function () { throw new RuntimeError('Variable "show_filter_categorie" does not exist.', 90, $this->source); })()) == true))) ? ("") : ("d-none"));
echo "\">
";
// line 91
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 91, $this->source); })()), "request", [], "any", false, false, false, 91), "server", [], "any", false, false, false, 91), "get", [0 => "APP_THEME"], "method", false, false, false, 91)) . "/partials/product/_sidebar.html.twig"));
echo "
</div>
";
}
// line 94
echo "
<div class=\"col-sm-12 col-md-";
// line 95
echo (((array_key_exists("show_filter_categorie", $context) && ((isset($context["show_filter_categorie"]) || array_key_exists("show_filter_categorie", $context) ? $context["show_filter_categorie"] : (function () { throw new RuntimeError('Variable "show_filter_categorie" does not exist.', 95, $this->source); })()) == true))) ? ("9") : ("12"));
echo " bloc-content-produit\">
<div class=\"row\">
<div class=\"col-sm-12 col-lg-6\">
";
// line 98
if ( !((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie", $context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.', 98, $this->source); })()), 0, [], "array", false, false, false, 98), "type", [], "any", false, false, false, 98) == 4) && (twig_length_filter($this->env, (isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 98, $this->source); })())) > 1))) {
// line 99
echo " <div class=\"image-product\">
";
// line 100
if ((twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 100, $this->source); })()), "image", [], "any", false, false, false, 100) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 100, $this->source); })()), "image", [], "any", false, false, false, 100)))) {
// line 101
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 101, $this->source); })()), "image", [], "any", false, false, false, 101), "medium"), "html", null, true);
echo "\" data-fancybox=\"image\" tirle=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 101, $this->source); })()), "titre", [], "any", false, false, false, 101), "html", null, true);
echo "\" >
<img class=\"img-fluid\" data-srcset=\"";
// line 102
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 102, $this->source); })()), "image", [], "any", false, false, false, 102), "medium"), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 102, $this->source); })()), "image", [], "any", false, false, false, 102), "medium"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 102, $this->source); })()), "titre", [], "any", false, false, false, 102), "html", null, true);
echo "\" />
</a>
";
} elseif (( // line 105
array_key_exists("galleries", $context) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 105, $this->source); })())))) {
// line 106
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageGalleryFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 106, $this->source); })()), 0, [], "array", false, false, false, 106), "path", [], "any", false, false, false, 106)), "html", null, true);
echo "\" data-fancybox=\"image\" tirle=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 106, $this->source); })()), "titre", [], "any", false, false, false, 106), "html", null, true);
echo "\" >
<img class=\"img-fluid\" data-srcset=\"";
// line 107
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageGalleryFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 107, $this->source); })()), 0, [], "array", false, false, false, 107), "path", [], "any", false, false, false, 107)), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageGalleryFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 107, $this->source); })()), 0, [], "array", false, false, false, 107), "path", [], "any", false, false, false, 107)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 107, $this->source); })()), "titre", [], "any", false, false, false, 107), "html", null, true);
echo "\" />
</a>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 110
($context["parametre"] ?? null), "imageVide", [], "any", true, true, false, 110) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 110, $this->source); })()), "imageVide", [], "any", false, false, false, 110)))) {
// line 111
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/images/" . twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 111, $this->source); })()), "imageVide", [], "any", false, false, false, 111))), "html", null, true);
echo "\" data-fancybox=\"image\" tirle=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 111, $this->source); })()), "titre", [], "any", false, false, false, 111), "html", null, true);
echo "\" >
<img class=\"img-fluid\" data-srcset=\"";
// line 112
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/images/" . twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 112, $this->source); })()), "imageVide", [], "any", false, false, false, 112))), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/images/" . twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 112, $this->source); })()), "imageVide", [], "any", false, false, false, 112))), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 112, $this->source); })()), "titre", [], "any", false, false, false, 112), "html", null, true);
echo "\" />
</a>
";
}
// line 115
echo "
";
// line 116
if (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 116, $this->source); })()), "disponibiliteproduit", [], "any", false, false, false, 116)) {
// line 117
echo " <span class=\"disponible\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, "disponible"), "html", null, true);
echo "</span>
";
}
// line 119
echo " </div>
";
} else {
// line 121
echo " ";
if (((((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 121, $this->source); })()) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 121, $this->source); })()))) && array_key_exists("template_model_gallerie", $context)) && !twig_test_empty((isset($context["template_model_gallerie"]) || array_key_exists("template_model_gallerie", $context) ? $context["template_model_gallerie"] : (function () { throw new RuntimeError('Variable "template_model_gallerie" does not exist.', 121, $this->source); })())))) {
// line 122
echo " <div class=\"image-product\">
";
// line 123
if ((twig_get_attribute($this->env, $this->source, ($context["post"] ?? null), "image", [], "any", true, true, false, 123) && (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 123, $this->source); })()), "image", [], "any", false, false, false, 123) == null))) {
// line 124
echo " ";
$context["galleries"] = twig_slice($this->env, (isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 124, $this->source); })()), 1);
// line 125
echo " ";
}
// line 126
echo "
";
// line 127
echo twig_include($this->env, $context, twig_template_from_string($this->env, (isset($context["template_model_gallerie"]) || array_key_exists("template_model_gallerie", $context) ? $context["template_model_gallerie"] : (function () { throw new RuntimeError('Variable "template_model_gallerie" does not exist.', 127, $this->source); })())));
echo "
";
// line 128
if (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 128, $this->source); })()), "disponibiliteproduit", [], "any", false, false, false, 128)) {
// line 129
echo " <span class=\"disponible\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, "disponible"), "html", null, true);
echo "</span>
";
}
// line 131
echo " </div>
";
}
// line 133
echo " ";
}
// line 134
echo " </div>
<div class=\"col-sm-12 col-lg-6 mt-lg-0 mt-4\">
";
// line 136
if (((twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 136, $this->source); })()), "image", [], "any", false, false, false, 136) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 136, $this->source); })()), "image", [], "any", false, false, false, 136))) && ((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 136, $this->source); })()) == ""))) {
// line 137
echo " <h1 class=\"page-title\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_last($this->env, (isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 137, $this->source); })())), "name", [], "any", false, false, false, 137), "html", null, true);
echo "</h1>
";
}
// line 139
echo "
";
// line 140
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 140, $this->source); })()), "content", [], "any", false, false, false, 140)) && (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 140, $this->source); })()), "content", [], "any", false, false, false, 140) != " "))) {
// line 141
echo " ";
echo twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 141, $this->source); })()), "content", [], "any", false, false, false, 141);
echo "
";
}
// line 143
echo "
";
// line 145
if (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 145, $this->source); })()), "prixproduit", [], "any", false, false, false, 145)) {
// line 146
echo " <div class=\"price_product\"> Prix : <span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 146, $this->source); })()), "prixproduit", [], "any", false, false, false, 146), "html", null, true);
echo "</span> € </div>
";
}
// line 148
echo "
";
// line 149
if (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 149, $this->source); })()), "referanceproduit", [], "any", false, false, false, 149)) {
// line 150
echo " <div class=\"ref_product\"> Réf : <strong>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 150, $this->source); })()), "referanceproduit", [], "any", false, false, false, 150), "html", null, true);
echo " </strong></div>
";
}
// line 152
echo "
";
// line 153
if ((array_key_exists("champsPersonnalisesPost", $context) && !twig_test_empty((isset($context["champsPersonnalisesPost"]) || array_key_exists("champsPersonnalisesPost", $context) ? $context["champsPersonnalisesPost"] : (function () { throw new RuntimeError('Variable "champsPersonnalisesPost" does not exist.', 153, $this->source); })())))) {
// line 154
echo " <div class=\"autre_info\">
";
// line 155
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["champsPersonnalisesPost"]) || array_key_exists("champsPersonnalisesPost", $context) ? $context["champsPersonnalisesPost"] : (function () { throw new RuntimeError('Variable "champsPersonnalisesPost" does not exist.', 155, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 156
echo " <div class=\"item d-flex\">
<div class=\"label\"> ";
// line 157
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 157), "html", null, true);
echo " : </div>
<div class=\"value\"> ";
// line 158
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "value", [], "any", false, false, false, 158), "html", null, true);
echo "</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 161
echo " </div>
";
}
// line 163
echo "
";
// line 166
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 166, $this->source); })()), "prixproduit", [], "any", false, false, false, 166))) {
// line 167
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["post"] ?? null), "typepost", [], "any", false, true, false, 167), "parametrepost", [], "any", false, true, false, 167), 0, [], "array", true, true, false, 167) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 167, $this->source); })()), "typepost", [], "any", false, false, false, 167), "parametrepost", [], "any", false, false, false, 167), 0, [], "array", false, false, false, 167), "actifpanier", [], "any", false, false, false, 167) == true))) {
// line 168
echo " <div class=\"input-quantite\">
<label>Quantité :</label>
<input type=\"number\" class=\"form-control quantite\" value=\"1\" min=\"1\" name=\"qte\" />
</div>
";
}
// line 173
echo " ";
}
// line 174
echo "
";
// line 175
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["post"] ?? null), "typepost", [], "any", false, true, false, 175), "parametrepost", [], "any", false, true, false, 175), 0, [], "array", true, true, false, 175) && ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 175, $this->source); })()), "typepost", [], "any", false, false, false, 175), "parametrepost", [], "any", false, false, false, 175), 0, [], "array", false, false, false, 175), "actifpanier", [], "any", false, false, false, 175) == true) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 175, $this->source); })()), "typepost", [], "any", false, false, false, 175), "parametrepost", [], "any", false, false, false, 175), 0, [], "array", false, false, false, 175), "buttoninteresse", [], "any", false, false, false, 175) != "")))) {
// line 176
echo " <div class=\"d-flex mt-3 boutons-panier\">
";
// line 177
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 177, $this->source); })()), "prixproduit", [], "any", false, false, false, 177)) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 177, $this->source); })()), "typepost", [], "any", false, false, false, 177), "parametrepost", [], "any", false, false, false, 177), 0, [], "array", false, false, false, 177), "actifpanier", [], "any", false, false, false, 177) == true))) {
// line 178
echo " <button title=\"Ajouter au panier\" class=\"btn btn-add-panier\">Ajouter au panier</button>
";
}
// line 180
echo "
";
// line 181
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 181, $this->source); })()), "typepost", [], "any", false, false, false, 181), "parametrepost", [], "any", false, false, false, 181), 0, [], "array", false, false, false, 181), "buttoninteresse", [], "any", false, false, false, 181) != "") && ($this->extensions['App\Twig\FunctionExtension']->slugPageContactFunction("page-contact") != null))) {
// line 182
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => $this->extensions['App\Twig\FunctionExtension']->slugPageContactFunction("page-contact")]), "html", null, true);
echo "?product=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 182, $this->source); })()), "slug", [], "any", false, false, false, 182), "html", null, true);
echo "\" class=\"btn btn-interesse\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 182, $this->source); })()), "typepost", [], "any", false, false, false, 182), "parametrepost", [], "any", false, false, false, 182), 0, [], "array", false, false, false, 182), "buttoninteresse", [], "any", false, false, false, 182), "html", null, true);
echo "</a>
";
}
// line 184
echo " </div>
";
}
// line 185
echo "
</div>
";
// line 188
if ((twig_get_attribute($this->env, $this->source, ($context["post"] ?? null), "produitsinfo", [], "any", true, true, false, 188) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 188, $this->source); })()), "produitsinfo", [], "any", false, false, false, 188)))) {
// line 189
echo " <div class=\"col-md-12\">
<div class=\"product-tabs\">
<ul class=\"tabs\">
";
// line 192
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 192, $this->source); })()), "produitsinfo", [], "any", false, false, false, 192));
foreach ($context['_seq'] as $context["key"] => $context["item"]) {
// line 193
echo " <li class=\"tab-link ";
echo ((($context["key"] == 0)) ? ("current") : (""));
echo "\" data-tab=\"tab-";
echo twig_escape_filter($this->env, ($context["key"] + 1), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titre", [], "any", false, false, false, 193)), "html", null, true);
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 195
echo " </ul>
<div class=\"\">
";
// line 197
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 197, $this->source); })()), "produitsinfo", [], "any", false, false, false, 197));
foreach ($context['_seq'] as $context["key"] => $context["item"]) {
// line 198
echo " <div id=\"tab-";
echo twig_escape_filter($this->env, ($context["key"] + 1), "html", null, true);
echo "\" class=\"tab-content ";
echo ((($context["key"] == 0)) ? ("current") : (""));
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["item"], "text", [], "any", false, false, false, 198);
echo "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 200
echo " </div>
</div>
</div>
";
}
// line 204
echo "
<div class=\"col-sm-12\">
";
// line 206
if ((twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 206, $this->source); })()), "typelien", [], "any", false, false, false, 206) == null)) {
// line 207
echo " ";
if ((array_key_exists("categorieTree", $context) && twig_get_attribute($this->env, $this->source, ($context["categorieTree"] ?? null), 0, [], "array", true, true, false, 207))) {
// line 208
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 209
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 209, $this->source); })()), 0, [], "array", false, false, false, 209), "slug", [], "any", false, false, false, 209)]), "html", null, true);
echo "\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">Retour à la liste ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 209, $this->source); })()), 0, [], "array", false, false, false, 209), "titre", [], "any", false, false, false, 209), "html", null, true);
echo "</a>
</div>
";
}
// line 212
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 212, $this->source); })()), "typelien", [], "any", false, false, false, 212) != 1)) {
// line 213
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 213, $this->source); })()), "typelien", [], "any", false, false, false, 213) == "4")) {
// line 214
echo " <div class=\"text-center py-2\">
<a href=\"javascript:void(0)\" onclick=\"window.location.href = 'tel:";
// line 215
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 215, $this->source); })()), "telephone", [], "any", false, false, false, 215), "html", null, true);
echo "';\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 215, $this->source); })()), "titrelien", [], "any", false, false, false, 215), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 217
(isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 217, $this->source); })()), "typelien", [], "any", false, false, false, 217) == "2")) {
// line 218
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 219
echo twig_escape_filter($this->env, $this->extensions['App\Twig\FunctionExtension']->slugLinkInterneFunction(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 219, $this->source); })()), "lieninterne", [], "any", false, false, false, 219)), "html", null, true);
echo "\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 219, $this->source); })()), "titrelien", [], "any", false, false, false, 219), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 221
(isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 221, $this->source); })()), "typelien", [], "any", false, false, false, 221) == "3")) {
// line 222
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 223
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 223, $this->source); })()), "lienexterne", [], "any", false, false, false, 223), "html", null, true);
echo "\" target=\"_blank\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 223, $this->source); })()), "titrelien", [], "any", false, false, false, 223), "html", null, true);
echo "</a>
</div>
";
}
// line 226
echo " ";
}
// line 227
echo "
";
// line 228
if (((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 228, $this->source); })()) && !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 228, $this->source); })())))) {
// line 229
echo " <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
";
// line 230
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 230, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 231
echo " <a class=\"btn-back-pulse m-2\" href=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["doc"], "location", [], "any", false, false, false, 231) . twig_get_attribute($this->env, $this->source, $context["doc"], "path", [], "any", false, false, false, 231)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 231)), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "titre", [], "any", false, false, false, 231), "html", null, true);
echo "\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "titre", [], "any", false, false, false, 231), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['doc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 233
echo " </div>
";
}
// line 235
echo " </div>
</div>
</div>
</div>
</div>
";
// line 240
if ((((((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 240, $this->source); })()) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 240, $this->source); })()))) && array_key_exists("template_model_gallerie", $context)) && !twig_test_empty((isset($context["template_model_gallerie"]) || array_key_exists("template_model_gallerie", $context) ? $context["template_model_gallerie"] : (function () { throw new RuntimeError('Variable "template_model_gallerie" does not exist.', 240, $this->source); })()))) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie", $context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.', 240, $this->source); })()), 0, [], "array", false, false, false, 240), "type", [], "any", false, false, false, 240) != 4))) {
// line 241
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["post"] ?? null), "image", [], "any", true, true, false, 241) && (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 241, $this->source); })()), "image", [], "any", false, false, false, 241) == null))) {
// line 242
echo " ";
$context["galleries"] = twig_slice($this->env, (isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 242, $this->source); })()), 1);
// line 243
echo " ";
}
// line 244
echo "
";
// line 245
echo twig_include($this->env, $context, twig_template_from_string($this->env, (isset($context["template_model_gallerie"]) || array_key_exists("template_model_gallerie", $context) ? $context["template_model_gallerie"] : (function () { throw new RuntimeError('Variable "template_model_gallerie" does not exist.', 245, $this->source); })())));
echo "
";
}
// line 247
echo "
";
// line 248
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 248, $this->source); })()), "urlvideo", [], "any", false, false, false, 248))) {
// line 249
echo " <div class=\"container-fluid wrapper mt-3\">
<div class=\"col-md-12 mt-1\">
<div class=\"video\">
";
// line 252
$context["id_video_externe"] = twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 252, $this->source); })()), "urlvideo", [], "any", false, false, false, 252), "?v="), 1, [], "array", false, false, false, 252);
// line 253
echo " <a class=\"video-thumbnail m-0\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 253, $this->source); })()), "urlvideo", [], "any", false, false, false, 253), "html", null, true);
echo "\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/";
// line 254
echo twig_escape_filter($this->env, (isset($context["id_video_externe"]) || array_key_exists("id_video_externe", $context) ? $context["id_video_externe"] : (function () { throw new RuntimeError('Variable "id_video_externe" does not exist.', 254, $this->source); })()), "html", null, true);
echo "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
</a>
</div>
</div>
</div>
";
}
// line 260
echo "
";
// line 263
if (array_key_exists("blocs", $context)) {
// line 264
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["blocs"]) || array_key_exists("blocs", $context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.', 264, $this->source); })()), "Bloc", [], "any", false, false, false, 264));
foreach ($context['_seq'] as $context["_key"] => $context["bloc"]) {
// line 265
echo " ";
if (($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && (twig_get_attribute($this->env, $this->source, $context["bloc"], "mobile", [], "any", false, false, false, 265) == true))) {
// line 266
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 266, $this->source); })()), "request", [], "any", false, false, false, 266), "server", [], "any", false, false, false, 266), "get", [0 => "APP_THEME"], "method", false, false, false, 266)) . "/bloc/bloc.html.twig"), ["bloc" => // line 267
$context["bloc"]], false);
// line 268
echo "
";
}
// line 270
echo "
";
// line 271
if ((($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isFullView() && ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() == false)) && (twig_get_attribute($this->env, $this->source, $context["bloc"], "desktop", [], "any", false, false, false, 271) == true))) {
// line 272
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 272, $this->source); })()), "request", [], "any", false, false, false, 272), "server", [], "any", false, false, false, 272), "get", [0 => "APP_THEME"], "method", false, false, false, 272)) . "/bloc/bloc.html.twig"), ["bloc" => // line 273
$context["bloc"]], false);
// line 274
echo "
";
}
// line 276
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bloc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 277
echo " ";
}
echo "
";
// line 279
if ((array_key_exists("produit_related", $context) && !twig_test_empty((isset($context["produit_related"]) || array_key_exists("produit_related", $context) ? $context["produit_related"] : (function () { throw new RuntimeError('Variable "produit_related" does not exist.', 279, $this->source); })())))) {
// line 280
echo " <section class=\"\">
<div class=\"container-fluid mt-3\">
<div class=\"row gx-5 py-2\">
<div class=\"col-sm-12 text-center\">
";
// line 284
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["post"] ?? null), "typepost", [], "any", false, true, false, 284), "parametrepost", [], "any", false, true, false, 284), 0, [], "array", true, true, false, 284)) {
// line 285
echo " <h2 class=\"sub-title wow\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 285, $this->source); })()), "typepost", [], "any", false, false, false, 285), "parametrepost", [], "any", false, false, false, 285), 0, [], "array", false, false, false, 285), "titreblocproduitrelated", [], "any", false, false, false, 285), "html", null, true);
echo "</h2>
";
}
// line 287
echo " </div>
<div class=\"col-sm-12\">
<div class=\"list_blocs pos1\">
<div class=\"blocs\">
<section class=\"results dynam-affichage affichage1 type_affiche3 \">
";
// line 292
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["produit_related"]) || array_key_exists("produit_related", $context) ? $context["produit_related"] : (function () { throw new RuntimeError('Variable "produit_related" does not exist.', 292, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 293
echo " ";
$context["duree"] = 0.1;
// line 294
echo " ";
$context["prix"] = "";
// line 295
echo "
";
// line 296
if (twig_get_attribute($this->env, $this->source, $context["item"], "prixproduit", [], "any", true, true, false, 296)) {
// line 297
echo " ";
$context["prix"] = twig_get_attribute($this->env, $this->source, $context["item"], "prixproduit", [], "any", false, false, false, 297);
// line 298
echo " ";
}
// line 299
echo "
";
// line 300
$context["image_item"] = (((twig_get_attribute($this->env, $this->source, $context["item"], "image", [], "any", false, false, false, 300) != null)) ? ($this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, $context["item"], "image", [], "any", false, false, false, 300))) : (null));
// line 301
echo " ";
if (((isset($context["image_item"]) || array_key_exists("image_item", $context) ? $context["image_item"] : (function () { throw new RuntimeError('Variable "image_item" does not exist.', 301, $this->source); })()) == null)) {
// line 302
echo "
";
// line 303
$context["filteredItems"] = twig_array_filter($this->env, (isset($context["resultats_first_images_produits"]) || array_key_exists("resultats_first_images_produits", $context) ? $context["resultats_first_images_produits"] : (function () { throw new RuntimeError('Variable "resultats_first_images_produits" does not exist.', 303, $this->source); })()), function ($__p__) use ($context, $macros) { $context["p"] = $__p__; return (twig_get_attribute($this->env, $this->source, (isset($context["p"]) || array_key_exists("p", $context) ? $context["p"] : (function () { throw new RuntimeError('Variable "p" does not exist.', 303, $this->source); })()), "id", [], "any", false, false, false, 303) == twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 303)); });
// line 304
echo "
";
// line 305
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["filteredItems"]) || array_key_exists("filteredItems", $context) ? $context["filteredItems"] : (function () { throw new RuntimeError('Variable "filteredItems" does not exist.', 305, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["first_gallerie_image"]) {
// line 306
echo "
";
// line 307
$context["image_item"] = (((twig_get_attribute($this->env, $this->source, $context["first_gallerie_image"], "galleries_first_image", [], "any", false, false, false, 307) != null)) ? ($this->extensions['App\Twig\ImagesExtenstion']->AssetImageGalleryFunction(twig_get_attribute($this->env, $this->source, $context["first_gallerie_image"], "galleries_first_image", [], "any", false, false, false, 307))) : (null));
// line 308
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['first_gallerie_image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 310
echo " ";
}
// line 311
echo " ";
$context["image_item"] = ((((isset($context["image_item"]) || array_key_exists("image_item", $context) ? $context["image_item"] : (function () { throw new RuntimeError('Variable "image_item" does not exist.', 311, $this->source); })()) != null)) ? ((isset($context["image_item"]) || array_key_exists("image_item", $context) ? $context["image_item"] : (function () { throw new RuntimeError('Variable "image_item" does not exist.', 311, $this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/images/" . twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 311, $this->source); })()), "imagevide", [], "any", false, false, false, 311)))));
// line 312
echo "
<div class=\"article wow zoomIn animated\" ";
// line 313
if (( !twig_test_empty((isset($context["prix"]) || array_key_exists("prix", $context) ? $context["prix"] : (function () { throw new RuntimeError('Variable "prix" does not exist.', 313, $this->source); })())) && ((array_key_exists("param_post", $context) && twig_get_attribute($this->env, $this->source, ($context["param_post"] ?? null), "actifprixliste", [], "any", true, true, false, 313)) && (twig_get_attribute($this->env, $this->source, (isset($context["param_post"]) || array_key_exists("param_post", $context) ? $context["param_post"] : (function () { throw new RuntimeError('Variable "param_post" does not exist.', 313, $this->source); })()), "actifprixliste", [], "any", false, false, false, 313) == 1)))) {
echo "data-prix=\"";
echo twig_escape_filter($this->env, (isset($context["prix"]) || array_key_exists("prix", $context) ? $context["prix"] : (function () { throw new RuntimeError('Variable "prix" does not exist.', 313, $this->source); })()), "html", null, true);
echo "\"";
}
echo " data-wow-delay=\"";
echo twig_escape_filter($this->env, (isset($context["duree"]) || array_key_exists("duree", $context) ? $context["duree"] : (function () { throw new RuntimeError('Variable "duree" does not exist.', 313, $this->source); })()), "html", null, true);
echo "s\" style=\"visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;\">
<span class=\"article-image lazyloaded\" style=\"background-image: url(";
// line 314
echo twig_escape_filter($this->env, (isset($context["image_item"]) || array_key_exists("image_item", $context) ? $context["image_item"] : (function () { throw new RuntimeError('Variable "image_item" does not exist.', 314, $this->source); })()), "html", null, true);
echo "); background-size: cover; background-position: center center; background-repeat: no-repeat;\"> </span>
<span class=\"article-cnt\">
";
// line 316
if ($this->extensions['App\Twig\FunctionExtension']->GetCategoryFunction(twig_get_attribute($this->env, $this->source, $context["item"], "defaultcategorie", [], "any", false, false, false, 316))) {
// line 317
echo " <a class=\"article-titre\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_sous_categorie", ["categorie1" => twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\FunctionExtension']->GetCategoryFunction(twig_get_attribute($this->env, $this->source, $context["item"], "defaultcategorie", [], "any", false, false, false, 317)), "slugurl", [], "any", false, false, false, 317), "categorie2" => twig_get_attribute($this->env, $this->source, $context["item"], "slug", [], "any", false, false, false, 317)]), "html", null, true);
echo "\" title=\"";
echo twig_get_attribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 317);
echo "\">";
echo twig_get_attribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 317);
echo "</a>
";
}
// line 318
echo "
";
// line 320
if (( !twig_test_empty((isset($context["prix"]) || array_key_exists("prix", $context) ? $context["prix"] : (function () { throw new RuntimeError('Variable "prix" does not exist.', 320, $this->source); })())) && ((array_key_exists("param_post", $context) && twig_get_attribute($this->env, $this->source, ($context["param_post"] ?? null), "actifprixliste", [], "any", true, true, false, 320)) && (twig_get_attribute($this->env, $this->source, (isset($context["param_post"]) || array_key_exists("param_post", $context) ? $context["param_post"] : (function () { throw new RuntimeError('Variable "param_post" does not exist.', 320, $this->source); })()), "actifprixliste", [], "any", false, false, false, 320) == 1)))) {
// line 321
echo " <span class=\"article-prix\">";
echo twig_escape_filter($this->env, (isset($context["prix"]) || array_key_exists("prix", $context) ? $context["prix"] : (function () { throw new RuntimeError('Variable "prix" does not exist.', 321, $this->source); })()), "html", null, true);
echo " €</span>
";
}
// line 323
echo "
";
// line 324
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["item"], "summary", [], "any", false, false, false, 324))) {
// line 325
echo " <span class=\"article-txt\">
";
// line 326
echo twig_get_attribute($this->env, $this->source, $context["item"], "summary", [], "any", false, false, false, 326);
echo "
</span>
";
} else {
// line 329
echo " <span class=\"article-txt\">
";
// line 330
if ((twig_get_attribute($this->env, $this->source, $context["item"], "content", [], "any", false, false, false, 330) != "")) {
// line 331
echo " ";
echo $this->extensions['App\Twig\FunctionExtension']->cutTextFunction(twig_get_attribute($this->env, $this->source, $context["item"], "content", [], "any", false, false, false, 331));
echo "
";
}
// line 333
echo " </span>
";
}
// line 335
echo "
";
// line 336
if ($this->extensions['App\Twig\FunctionExtension']->GetCategoryFunction(twig_get_attribute($this->env, $this->source, $context["item"], "defaultcategorie", [], "any", false, false, false, 336))) {
// line 337
echo " <span class=\"article-bts\">
<button class=\"article-plus btn-fade\" onclick=\"window.open('";
// line 338
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_sous_categorie", ["categorie1" => twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\FunctionExtension']->GetCategoryFunction(twig_get_attribute($this->env, $this->source, $context["item"], "defaultcategorie", [], "any", false, false, false, 338)), "slugurl", [], "any", false, false, false, 338), "categorie2" => twig_get_attribute($this->env, $this->source, $context["item"], "slug", [], "any", false, false, false, 338)]), "html", null, true);
echo "', '_self');\" title=\"En savoir plus\">En savoir plus</button>
</span>
";
}
// line 340
echo "
</span>
</div>
";
// line 343
$context["duree"] = ((isset($context["duree"]) || array_key_exists("duree", $context) ? $context["duree"] : (function () { throw new RuntimeError('Variable "duree" does not exist.', 343, $this->source); })()) + 0.2);
// line 344
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 345
echo " </section>
</div>
</div>
</div>
</div>
</div>
</section>
";
}
// line 354
echo "
</div>
";
// line 357
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["post"] ?? null), "typepost", [], "any", false, true, false, 357), "parametrepost", [], "any", false, true, false, 357), 0, [], "array", true, true, false, 357) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 357, $this->source); })()), "typepost", [], "any", false, false, false, 357), "parametrepost", [], "any", false, false, false, 357), 0, [], "array", false, false, false, 357), "actifpanier", [], "any", false, false, false, 357) == true))) {
// line 358
echo " <div id=\"ModalAjoutPanier\" class=\"modal modal_cart\">
<!-- Modal content -->
<div class=\"modal-content\">
<div class='top_prod'>Votre produit a été ajouté avec succès<span class=\"close\">×</span></div>
<div class=\"modal_content bg_bot\">
<div id=\"name_produit2\">Produit : <span></span> </div>
<div class=\"prix_vente2\">Prix : <span></span> €</div>
<button title=\"Continuer mes achats\" class=\"btn-continuer link_addSelection_detail2\" id=\"addthis_selection2\">Continuer mes achats</button>
";
// line 367
$context["espace_client"] = 1;
echo "
";
// line 369
if ((isset($context["espace_client"]) || array_key_exists("espace_client", $context) ? $context["espace_client"] : (function () { throw new RuntimeError('Variable "espace_client" does not exist.', 369, $this->source); })())) {
// line 370
echo " <button onclick=\"window.location.href = '/espace-client/login'\" title=\"Ajouter à ma commande\" class=\"btn-back-pulse link_addSelection_detail\" id=\"addthis_selection22\">Je termine ma commande</button>
";
} else {
// line 372
echo " <button onclick=\"window.location.href = '/contact'\" title=\"Ajouter à ma commande\" class=\"btn-back-pulse link_addSelection_detail\" id=\"addthis_selection22\">Je termine ma commande</button>
";
}
// line 374
echo "
</div>
</div>
</div>
";
}
// line 380
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 383
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 384
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 385
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["post"] ?? null), "typepost", [], "any", false, true, false, 385), "parametrepost", [], "any", false, true, false, 385), 0, [], "array", true, true, false, 385) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 385, $this->source); })()), "typepost", [], "any", false, false, false, 385), "parametrepost", [], "any", false, false, false, 385), 0, [], "array", false, false, false, 385), "actifpanier", [], "any", false, false, false, 385) == true))) {
// line 386
echo " <script>
\$(document).ready(function() {
var modal = document.getElementById('ModalAjoutPanier');
var closeBtn = modal.getElementsByClassName(\"close\");
var continuerBtn = modal.getElementsByClassName(\"link_addSelection_detail2\");
\$('.btn-add-panier').click(function() {
var productId = ";
// line 392
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 392, $this->source); })()), "id", [], "any", false, false, false, 392), "html", null, true);
echo ";
var qte = \$('.quantite').val();
\$.ajax({
url: '/panier/add/'+escape(productId)+'/'+escape(qte),
type: 'POST',
dataType: 'JSON',
success: function(response) {
var panier = response.panier;
updatePanier(panier);
if(response.success){
var titre_produit = \$('.page-title').text();
var prix_produit = \$('.price_product span').text();
\$('#name_produit2 span').text(titre_produit);
\$('.prix_vente2 span').text(prix_produit);
modal.style.display = \"block\";
}
},
error: function(xhr, status, error) {
console.log(error); // Affichez l'erreur pour le débogage
}
});
});
function closeModal() {
modal.style.display = \"none\";
}
\$(closeBtn).click(closeModal);
\$(continuerBtn).click(closeModal);
});
</script>
";
}
// line 426
echo "
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js\"></script>
";
// line 428
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie", $context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.', 428, $this->source); })()), 0, [], "array", false, false, false, 428), "type", [], "any", false, false, false, 428) == 4)) {
// line 429
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js"), "html", null, true);
echo "\" ></script>
<script>
if (\$(\".sx_flexslider\").length) {
\$('.flex-carousel').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
itemWidth: 150,
asNavFor: '.flex-slider'
});
\$('.flex-slider').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
sync: \".flex-carousel\"
});
}
</script>
";
}
// line 452
echo "
<script>
\$(document).ready(function(){
\$('ul.tabs li').click(function(){
var tab_id = \$(this).attr('data-tab');
\$('ul.tabs li').removeClass('current');
\$('.tab-content').removeClass('current');
\$(this).addClass('current');
\$(\"#\"+tab_id).addClass('current');
})
})
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/theme1/produits/page_produit.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1160 => 452, 1133 => 429, 1131 => 428, 1127 => 426, 1090 => 392, 1082 => 386, 1080 => 385, 1075 => 384, 1065 => 383, 1054 => 380, 1046 => 374, 1042 => 372, 1038 => 370, 1036 => 369, 1031 => 367, 1020 => 358, 1018 => 357, 1013 => 354, 1002 => 345, 996 => 344, 994 => 343, 989 => 340, 983 => 338, 980 => 337, 978 => 336, 975 => 335, 971 => 333, 965 => 331, 963 => 330, 960 => 329, 954 => 326, 951 => 325, 949 => 324, 946 => 323, 940 => 321, 938 => 320, 934 => 318, 924 => 317, 922 => 316, 917 => 314, 907 => 313, 904 => 312, 901 => 311, 898 => 310, 891 => 308, 889 => 307, 886 => 306, 882 => 305, 879 => 304, 877 => 303, 874 => 302, 871 => 301, 869 => 300, 866 => 299, 863 => 298, 860 => 297, 858 => 296, 855 => 295, 852 => 294, 849 => 293, 845 => 292, 838 => 287, 832 => 285, 830 => 284, 824 => 280, 822 => 279, 816 => 277, 810 => 276, 806 => 274, 804 => 273, 802 => 272, 800 => 271, 797 => 270, 793 => 268, 791 => 267, 789 => 266, 786 => 265, 781 => 264, 779 => 263, 774 => 260, 765 => 254, 760 => 253, 758 => 252, 753 => 249, 751 => 248, 748 => 247, 743 => 245, 740 => 244, 737 => 243, 734 => 242, 731 => 241, 729 => 240, 722 => 235, 718 => 233, 705 => 231, 701 => 230, 698 => 229, 696 => 228, 693 => 227, 690 => 226, 682 => 223, 679 => 222, 677 => 221, 670 => 219, 667 => 218, 665 => 217, 658 => 215, 655 => 214, 652 => 213, 649 => 212, 641 => 209, 638 => 208, 635 => 207, 633 => 206, 629 => 204, 623 => 200, 610 => 198, 606 => 197, 602 => 195, 589 => 193, 585 => 192, 580 => 189, 578 => 188, 573 => 185, 569 => 184, 559 => 182, 557 => 181, 554 => 180, 550 => 178, 548 => 177, 545 => 176, 543 => 175, 540 => 174, 537 => 173, 530 => 168, 527 => 167, 525 => 166, 520 => 163, 516 => 161, 507 => 158, 503 => 157, 500 => 156, 496 => 155, 493 => 154, 491 => 153, 488 => 152, 482 => 150, 480 => 149, 477 => 148, 471 => 146, 469 => 145, 465 => 143, 459 => 141, 457 => 140, 454 => 139, 448 => 137, 446 => 136, 442 => 134, 439 => 133, 435 => 131, 429 => 129, 427 => 128, 423 => 127, 420 => 126, 417 => 125, 414 => 124, 412 => 123, 409 => 122, 406 => 121, 402 => 119, 396 => 117, 394 => 116, 391 => 115, 381 => 112, 374 => 111, 372 => 110, 362 => 107, 355 => 106, 353 => 105, 343 => 102, 336 => 101, 334 => 100, 331 => 99, 329 => 98, 323 => 95, 320 => 94, 314 => 91, 309 => 90, 307 => 89, 302 => 87, 299 => 86, 291 => 80, 288 => 79, 282 => 77, 280 => 76, 275 => 75, 273 => 74, 266 => 69, 264 => 68, 260 => 66, 252 => 61, 246 => 57, 240 => 55, 238 => 54, 222 => 47, 219 => 46, 217 => 45, 214 => 44, 211 => 43, 208 => 42, 205 => 41, 202 => 40, 199 => 39, 196 => 38, 194 => 37, 191 => 36, 188 => 35, 185 => 34, 182 => 33, 179 => 32, 176 => 31, 173 => 30, 171 => 29, 168 => 28, 158 => 27, 144 => 23, 142 => 22, 137 => 21, 127 => 20, 116 => 17, 113 => 16, 107 => 15, 101 => 13, 98 => 12, 93 => 11, 91 => 10, 88 => 9, 85 => 8, 79 => 6, 76 => 5, 73 => 4, 63 => 3, 53 => 1, 51 => 2, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"front/\"~ app.request.server.get('APP_THEME') ~\"/base.html.twig\" %}
{% set parametre = ParametreSite() %}
{% block preload %}
{% if post.image is defined and post.image is not empty %}
{% if post.image %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image(post.image)}}\" />
{% endif %}
{% endif %}
{% if galleries is defined and galleries is not empty %}
{% for item in galleries %}
{% if item.path is defined %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image_gallery(item.path)}}\" />
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}
{% block stylesheets %}
{{parent()}}
{% if modele_galerie[0].type == 4 %}
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{asset('templates/front/theme1/assets/plugins/flexslider/flexslider.css')}}\" media=\"screen\" >
{% endif %}
{% endblock %}
{% block body %}
{% set position_image = post.positionimage %}
{% set class_position = \"\" %}
{% if post.positionimage == 2 %}
{% set class_position = \"float-md-left mb-2 mr-md-3\" %}
{% elseif post.positionimage == 3 %}
{% set class_position = \"float-md-right mb-2 ml-md-3\" %}
{% endif %}
{% if post.imageBandeau %}
{% set imagebandeau = post.imageBandeau %}
{% elseif parametre.imageBandeau %}
{% set imagebandeau = 'uploads/images/' ~ parametre.imageBandeau %}
{% else %}
{% set imagebandeau = '' %}
{% endif %}
{% if imagebandeau != '' %}
<section class=\"image-bandeau text-center\">
<img class=\"lazyload\" alt=\"{{post.title}}\" title=\"{{post.title}}\" data-srcset=\"{{imagebandeau}}\" src=\"{{asset(imagebandeau)}}\" />
<div class=\"cnt-bandeau text-center\">
\t\t\t\t<div class=\"container-fluid wrapper\">
<div class=\"breadcrumb-style-default\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
{% if breadcrumb is defined and breadcrumb is not empty %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig')}}
{% endif %}
</div>
</div>
</div>
</div>
<h1 class=\"page-title\">{{post.title|raw}}</h1>
</div>
</div>
</section>
{% endif %}
<div class=\"page_product pt-5\">
{% if imagebandeau == '' %}
<div class=\"breadcrumb-style-default\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
{% if breadcrumb is defined and breadcrumb is not empty %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig')}}
{% if post.image is empty %}
<h1 class=\"page-title\">{{breadcrumb|last.name}}</h1>
{% endif %}
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"container-fluid {{categories_tree is defined and categories_tree is not empty?'':'wrapper'}} mt-3\">
<div class=\"row gx-5 py-2\">
{% if categories_tree is defined and categories_tree is not empty %}
<div class=\"col-sm-12 col-md-3 {{show_filter_categorie is defined and show_filter_categorie == true ?'':'d-none'}}\">
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/product/_sidebar.html.twig')}}
</div>
{% endif %}
<div class=\"col-sm-12 col-md-{{show_filter_categorie is defined and show_filter_categorie == true?'9':'12'}} bloc-content-produit\">
<div class=\"row\">
<div class=\"col-sm-12 col-lg-6\">
{% if not (modele_galerie[0].type == 4 and galleries|length > 1) %}
<div class=\"image-product\">
{% if post.image and post.image is not empty %}
<a href=\"{{asset_image(post.image,'medium')}}\" data-fancybox=\"image\" tirle=\"{{post.titre}}\" >
<img class=\"img-fluid\" data-srcset=\"{{asset_image(post.image,'medium')}}\" src=\"{{asset_image(post.image,'medium')}}\" alt=\"{{post.titre}}\" />
</a>
{% elseif galleries is defined and galleries is not empty %}
<a href=\"{{asset_image_gallery(galleries[0].path)}}\" data-fancybox=\"image\" tirle=\"{{post.titre}}\" >
<img class=\"img-fluid\" data-srcset=\"{{asset_image_gallery(galleries[0].path)}}\" src=\"{{asset_image_gallery(galleries[0].path)}}\" alt=\"{{post.titre}}\" />
</a>
{% elseif parametre.imageVide is defined and parametre.imageVide is not empty %}
<a href=\"{{asset('/uploads/images/'~ parametre.imageVide)}}\" data-fancybox=\"image\" tirle=\"{{post.titre}}\" >
<img class=\"img-fluid\" data-srcset=\"{{asset('/uploads/images/'~ parametre.imageVide)}}\" src=\"{{asset('/uploads/images/'~ parametre.imageVide)}}\" alt=\"{{post.titre}}\" />
</a>
{% endif %}
{% if post.disponibiliteproduit %}
<span class=\"disponible\">{{'disponible'|upper}}</span>
{% endif %}
</div>
{% else %}
{% if galleries and galleries is not empty and template_model_gallerie is defined and template_model_gallerie is not empty %}
<div class=\"image-product\">
{% if (post.image is defined and post.image == null) %}
{% set galleries = galleries|slice(1) %}
{% endif %}
{{ include(template_from_string(template_model_gallerie)) }}
{% if post.disponibiliteproduit %}
<span class=\"disponible\">{{'disponible'|upper}}</span>
{% endif %}
</div>
{% endif %}
{% endif %}
</div>
<div class=\"col-sm-12 col-lg-6 mt-lg-0 mt-4\">
{% if post.image and post.image is not empty and imagebandeau == '' %}
<h1 class=\"page-title\">{{breadcrumb|last.name}}</h1>
{% endif %}
{% if post.content is not empty and post.content != \" \" %}
{{post.content|raw}}
{% endif %}
{% if post.prixproduit %}
<div class=\"price_product\"> Prix : <span>{{post.prixproduit}}</span> € </div>
{% endif %}
{% if post.referanceproduit %}
<div class=\"ref_product\"> Réf : <strong>{{post.referanceproduit}} </strong></div>
{% endif %}
{% if champsPersonnalisesPost is defined and champsPersonnalisesPost is not empty %}
<div class=\"autre_info\">
{% for item in champsPersonnalisesPost %}
<div class=\"item d-flex\">
<div class=\"label\"> {{item.label}} : </div>
<div class=\"value\"> {{item.value}}</div>
</div>
{% endfor %}
</div>
{% endif %}
{% if post.prixproduit is not empty %}
{% if post.typepost.parametrepost[0] is defined and post.typepost.parametrepost[0].actifpanier == true %}
<div class=\"input-quantite\">
<label>Quantité :</label>
<input type=\"number\" class=\"form-control quantite\" value=\"1\" min=\"1\" name=\"qte\" />
</div>
{% endif %}
{% endif %}
{% if post.typepost.parametrepost[0] is defined and (post.typepost.parametrepost[0].actifpanier == true or post.typepost.parametrepost[0].buttoninteresse != \"\") %}
<div class=\"d-flex mt-3 boutons-panier\">
{% if post.prixproduit is not empty and post.typepost.parametrepost[0].actifpanier == true %}
<button title=\"Ajouter au panier\" class=\"btn btn-add-panier\">Ajouter au panier</button>
{% endif %}
{% if post.typepost.parametrepost[0].buttoninteresse != \"\" and slug_page_contact('page-contact') != null %}
<a href=\"{{path('page',{slug:slug_page_contact('page-contact')})}}?product={{post.slug}}\" class=\"btn btn-interesse\">{{post.typepost.parametrepost[0].buttoninteresse}}</a>
{% endif %}
</div>
{% endif %}
</div>
{% if post.produitsinfo is defined and post.produitsinfo is not empty %}
<div class=\"col-md-12\">
<div class=\"product-tabs\">
<ul class=\"tabs\">
{% for key,item in post.produitsinfo %}
<li class=\"tab-link {{key == 0?'current':''}}\" data-tab=\"tab-{{key + 1}}\">{{item.titre|upper}}</li>
{% endfor %}
</ul>
<div class=\"\">
{% for key,item in post.produitsinfo %}
<div id=\"tab-{{key + 1}}\" class=\"tab-content {{key == 0?'current':''}}\">{{item.text|raw}}</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
<div class=\"col-sm-12\">
{% if post.typelien == null %}
{% if categorieTree is defined and categorieTree[0] is defined %}
<div class=\"text-center py-2\">
<a href=\"{{path('page',{slug:categorieTree[0].slug})}}\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">Retour à la liste {{categorieTree[0].titre}}</a>
</div>
{% endif %}
{% elseif post.typelien != 1 %}
{% if post.typelien == '4' %}
<div class=\"text-center py-2\">
<a href=\"javascript:void(0)\" onclick=\"window.location.href = 'tel:{{post.telephone}}';\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">{{post.titrelien}}</a>
</div>
{% elseif post.typelien == '2' %}
<div class=\"text-center py-2\">
<a href=\"{{slug_link_interne(post.lieninterne)}}\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">{{post.titrelien}}</a>
</div>
{% elseif post.typelien == '3' %}
<div class=\"text-center py-2\">
<a href=\"{{post.lienexterne}}\" target=\"_blank\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">{{post.titrelien}}</a>
</div>
{% endif %}
{% endif %}
{% if docs and docs is not empty %}
<div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
{% for doc in docs %}
<a class=\"btn-back-pulse m-2\" href=\"{{doc.location ~ doc.path ~ '/' ~ doc.fileName}}\" title=\"{{doc.titre}}\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>{{doc.titre}}</a>
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% if galleries and galleries is not empty and template_model_gallerie is defined and template_model_gallerie is not empty and modele_galerie[0].type != 4 %}
{% if (post.image is defined and post.image == null) %}
{% set galleries = galleries|slice(1) %}
{% endif %}
{{ include(template_from_string(template_model_gallerie)) }}
{% endif %}
{% if post.urlvideo is not empty %}
<div class=\"container-fluid wrapper mt-3\">
<div class=\"col-md-12 mt-1\">
<div class=\"video\">
{% set id_video_externe = post.urlvideo|split('?v=')[1] %}
<a class=\"video-thumbnail m-0\" href=\"{{post.urlvideo}}\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/{{id_video_externe}}/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
</a>
</div>
</div>
</div>
{% endif %}
{% if blocs is defined %}
{% for bloc in blocs.Bloc %}
{% if is_mobile() and bloc.mobile == true %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% if is_full_view() and is_mobile() == false and bloc.desktop == true %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% endfor %}
{% endif %}
{% if produit_related is defined and produit_related is not empty %}
<section class=\"\">
<div class=\"container-fluid mt-3\">
<div class=\"row gx-5 py-2\">
<div class=\"col-sm-12 text-center\">
{% if post.typepost.parametrepost[0] is defined %}
<h2 class=\"sub-title wow\">{{post.typepost.parametrepost[0].titreblocproduitrelated}}</h2>
{% endif %}
</div>
<div class=\"col-sm-12\">
<div class=\"list_blocs pos1\">
<div class=\"blocs\">
<section class=\"results dynam-affichage affichage1 type_affiche3 \">
{% for item in produit_related %}
{% set duree = 0.1 %}
{% set prix = \"\" %}
{% if item.prixproduit is defined %}
{% set prix = item.prixproduit %}
{% endif %}
{% set image_item = item.image != null? asset_image(item.image): null %}
{% if image_item == null %}
{% set filteredItems = resultats_first_images_produits|filter(p => p.id == item.id) %}
{% for first_gallerie_image in filteredItems %}
{% set image_item = first_gallerie_image.galleries_first_image != null? asset_image_gallery(first_gallerie_image.galleries_first_image): null %}
{% endfor %}
{% endif %}
{% set image_item = image_item != null? image_item :asset('uploads/images/' ~ parametre.imagevide) %}
<div class=\"article wow zoomIn animated\" {% if prix is not empty and (param_post is defined and param_post.actifprixliste is defined and param_post.actifprixliste == 1) %}data-prix=\"{{prix}}\"{% endif %} data-wow-delay=\"{{duree}}s\" style=\"visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;\">
<span class=\"article-image lazyloaded\" style=\"background-image: url({{image_item}}); background-size: cover; background-position: center center; background-repeat: no-repeat;\"> </span>
<span class=\"article-cnt\">
{% if GetCategory(item.defaultcategorie) %}
<a class=\"article-titre\" href=\"{{path('page_sous_categorie',{categorie1:GetCategory(item.defaultcategorie).slugurl,categorie2:item.slug})}}\" title=\"{{item.title|raw}}\">{{item.title|raw}}</a>
{% endif %}
{% if prix is not empty and (param_post is defined and param_post.actifprixliste is defined and param_post.actifprixliste == 1) %}
<span class=\"article-prix\">{{prix}} €</span>
{% endif %}
{% if item.summary is not empty %}
<span class=\"article-txt\">
{{item.summary|raw}}
</span>
{% else %}
<span class=\"article-txt\">
{% if item.content != \"\" %}
{{cutText(item.content)|raw}}
{% endif %}
</span>
{% endif %}
{% if GetCategory(item.defaultcategorie) %}
<span class=\"article-bts\">
<button class=\"article-plus btn-fade\" onclick=\"window.open('{{path('page_sous_categorie',{categorie1:GetCategory(item.defaultcategorie).slugurl,categorie2:item.slug})}}', '_self');\" title=\"En savoir plus\">En savoir plus</button>
</span>
{% endif %}
</span>
</div>
{% set duree = duree + 0.2 %}
{% endfor %}
</section>
</div>
</div>
</div>
</div>
</div>
</section>
{% endif %}
</div>
{% if post.typepost.parametrepost[0] is defined and post.typepost.parametrepost[0].actifpanier == true %}
<div id=\"ModalAjoutPanier\" class=\"modal modal_cart\">
<!-- Modal content -->
<div class=\"modal-content\">
<div class='top_prod'>Votre produit a été ajouté avec succès<span class=\"close\">×</span></div>
<div class=\"modal_content bg_bot\">
<div id=\"name_produit2\">Produit : <span></span> </div>
<div class=\"prix_vente2\">Prix : <span></span> €</div>
<button title=\"Continuer mes achats\" class=\"btn-continuer link_addSelection_detail2\" id=\"addthis_selection2\">Continuer mes achats</button>
{% set espace_client = 1 %}
{% if espace_client %}
<button onclick=\"window.location.href = '/espace-client/login'\" title=\"Ajouter à ma commande\" class=\"btn-back-pulse link_addSelection_detail\" id=\"addthis_selection22\">Je termine ma commande</button>
{% else %}
<button onclick=\"window.location.href = '/contact'\" title=\"Ajouter à ma commande\" class=\"btn-back-pulse link_addSelection_detail\" id=\"addthis_selection22\">Je termine ma commande</button>
{% endif %}
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% block javascripts %}
{{parent()}}
{% if post.typepost.parametrepost[0] is defined and post.typepost.parametrepost[0].actifpanier == true %}
<script>
\$(document).ready(function() {
var modal = document.getElementById('ModalAjoutPanier');
var closeBtn = modal.getElementsByClassName(\"close\");
var continuerBtn = modal.getElementsByClassName(\"link_addSelection_detail2\");
\$('.btn-add-panier').click(function() {
var productId = {{ post.id }};
var qte = \$('.quantite').val();
\$.ajax({
url: '/panier/add/'+escape(productId)+'/'+escape(qte),
type: 'POST',
dataType: 'JSON',
success: function(response) {
var panier = response.panier;
updatePanier(panier);
if(response.success){
var titre_produit = \$('.page-title').text();
var prix_produit = \$('.price_product span').text();
\$('#name_produit2 span').text(titre_produit);
\$('.prix_vente2 span').text(prix_produit);
modal.style.display = \"block\";
}
},
error: function(xhr, status, error) {
console.log(error); // Affichez l'erreur pour le débogage
}
});
});
function closeModal() {
modal.style.display = \"none\";
}
\$(closeBtn).click(closeModal);
\$(continuerBtn).click(closeModal);
});
</script>
{% endif %}
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js\"></script>
{% if modele_galerie[0].type == 4 %}
<script src=\"{{asset('templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js')}}\" ></script>
<script>
if (\$(\".sx_flexslider\").length) {
\$('.flex-carousel').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
itemWidth: 150,
asNavFor: '.flex-slider'
});
\$('.flex-slider').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
sync: \".flex-carousel\"
});
}
</script>
{% endif %}
<script>
\$(document).ready(function(){
\$('ul.tabs li').click(function(){
var tab_id = \$(this).attr('data-tab');
\$('ul.tabs li').removeClass('current');
\$('.tab-content').removeClass('current');
\$(this).addClass('current');
\$(\"#\"+tab_id).addClass('current');
})
})
</script>
{% endblock %}
", "front/theme1/produits/page_produit.html.twig", "/var/www/vhosts/hrz.fr/oscar-multilangue.hrz.fr/templates/front/theme1/produits/page_produit.html.twig");
}
}