<?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_categorie.html.twig */
class __TwigTemplate_7bbff78f4268a458d92e0e347af4e2eeb90d1d3fb88d9ab7637133218085e83a 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_categorie.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_categorie.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_categorie.html.twig"));
$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["categorie"] ?? null), "image", [], "any", true, true, false, 4) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 4, $this->source); })()), "image", [], "any", false, false, false, 4)))) {
// line 5
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["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 5, $this->source); })()), "image", [], "any", false, false, false, 5)), "html", null, true);
echo "\" />
";
}
// line 7
echo "
";
// line 8
if ((array_key_exists("resultats", $context) && !twig_test_empty((isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 8, $this->source); })())))) {
// line 9
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 9, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 10
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "image", [], "any", false, false, false, 10)) {
// line 11
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, $context["item"], "image", [], "any", false, false, false, 11)), "html", null, true);
echo "\" />
";
}
// line 13
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "
";
}
// line 15
echo "
";
// line 16
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.', 16, $this->source); })())))) {
// line 17
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.', 17, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 18
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", true, true, false, 18)) {
// line 19
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, 19)), "html", null, true);
echo "\" />
";
}
// line 21
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 22
echo " ";
}
// line 23
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 27
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 28
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
// line 29
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.', 29, $this->source); })()), 0, [], "array", false, false, false, 29), "type", [], "any", false, false, false, 29) == 4)) {
// line 30
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\" >
";
}
// line 32
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["template"] ?? null), "css", [], "any", true, true, false, 32)) {
// line 33
echo " <style>
";
// line 34
echo twig_get_attribute($this->env, $this->source, (isset($context["template"]) || array_key_exists("template", $context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.', 34, $this->source); })()), "css", [], "any", false, false, false, 34);
echo "
</style>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 40
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 41
echo "
<div class=\"page_product\">
";
// line 43
if (twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 43, $this->source); })()), "imageBandeau", [], "any", false, false, false, 43)) {
// line 44
echo " ";
$context["imagebandeau"] = twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 44, $this->source); })()), "imageBandeau", [], "any", false, false, false, 44);
// line 45
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.', 45, $this->source); })()), "imageBandeau", [], "any", false, false, false, 45)) {
// line 46
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.', 46, $this->source); })()), "imageBandeau", [], "any", false, false, false, 46));
// line 47
echo " ";
} else {
// line 48
echo " ";
$context["imagebandeau"] = "";
// line 49
echo " ";
}
// line 50
echo "
";
// line 51
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 51, $this->source); })()) != "")) {
// line 52
echo " <section class=\"image-bandeau text-center\">
<img alt=\"";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 53, $this->source); })()), "titrecategorie", [], "any", false, false, false, 53), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 53, $this->source); })()), "titrecategorie", [], "any", false, false, false, 53), "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.', 53, $this->source); })())), "html", null, true);
echo "\" />
<div class=\"cnt-bandeau text-center\">
<div class=\"container-fluid wrapper\">
<ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
// line 57
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, (isset($context["title_home_ariane"]) || array_key_exists("title_home_ariane", $context) ? $context["title_home_ariane"] : (function () { throw new RuntimeError('Variable "title_home_ariane" does not exist.', 57, $this->source); })()), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"1\" /></li>
";
// line 58
if (array_key_exists("categorieParent", $context)) {
echo "<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorieParent"]) || array_key_exists("categorieParent", $context) ? $context["categorieParent"] : (function () { throw new RuntimeError('Variable "categorieParent" does not exist.', 58, $this->source); })()), "slugurl", [], "any", false, false, false, 58)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorieParent"]) || array_key_exists("categorieParent", $context) ? $context["categorieParent"] : (function () { throw new RuntimeError('Variable "categorieParent" does not exist.', 58, $this->source); })()), "titrecategorie", [], "any", false, false, false, 58), "html", null, true);
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorieParent"]) || array_key_exists("categorieParent", $context) ? $context["categorieParent"] : (function () { throw new RuntimeError('Variable "categorieParent" does not exist.', 58, $this->source); })()), "titrecategorie", [], "any", false, false, false, 58), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"2\" /></li>";
}
// line 59
echo " <li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 59, $this->source); })()), "titrecategorie", [], "any", false, false, false, 59), "html", null, true);
echo "</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 61, $this->source); })()), "titrecategorie", [], "any", false, false, false, 61), "html", null, true);
echo "</h1>
</div>
</div>
</section>
";
}
// line 66
echo "
";
// line 67
if ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 67, $this->source); })()), "positiontext", [], "any", false, false, false, 67) == 3)) {
// line 68
echo " ";
$context["position_texte"] = "text-left";
// line 69
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 69, $this->source); })()), "positiontext", [], "any", false, false, false, 69) == 2)) {
// line 70
echo " ";
$context["position_texte"] = "text-right";
// line 71
echo " ";
} else {
// line 72
echo " ";
$context["position_texte"] = "text-center";
// line 73
echo " ";
}
// line 74
echo "
";
// line 75
$context["type_affiche"] = "";
// line 76
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 76, $this->source); })()), "nombrearticle", [], "any", false, false, false, 76) == 1)) {
// line 77
echo " ";
$context["type_affiche"] = "type_affiche1";
// line 78
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 78, $this->source); })()), "nombrearticle", [], "any", false, false, false, 78) == 2)) {
// line 79
echo " ";
$context["type_affiche"] = "type_affiche2";
// line 80
echo " ";
} else {
// line 81
echo " ";
$context["type_affiche"] = "type_affiche3";
// line 82
echo " ";
}
// line 83
echo "
";
// line 84
if ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 84, $this->source); })()), "actif_slider", [], "any", false, false, false, 84) == 1)) {
// line 85
echo " ";
$context["type_affiche"] = ((isset($context["type_affiche"]) || array_key_exists("type_affiche", $context) ? $context["type_affiche"] : (function () { throw new RuntimeError('Variable "type_affiche" does not exist.', 85, $this->source); })()) . " owl-carousel");
// line 86
echo " ";
}
// line 87
echo "
";
// line 88
$context["multi_affichage"] = "affichage1";
// line 89
echo "
";
// line 90
if ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 90, $this->source); })()), "multi_affichage", [], "any", false, false, false, 90) == 1)) {
// line 91
echo " ";
$context["multi_affichage"] = "affichage1";
// line 92
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 92, $this->source); })()), "multi_affichage", [], "any", false, false, false, 92) == 2)) {
// line 93
echo " ";
$context["multi_affichage"] = "affichage2";
// line 94
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 94, $this->source); })()), "multi_affichage", [], "any", false, false, false, 94) == 3)) {
// line 95
echo " ";
$context["multi_affichage"] = "affichage3";
// line 96
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 96, $this->source); })()), "multi_affichage", [], "any", false, false, false, 96) == 4)) {
// line 97
echo " ";
$context["multi_affichage"] = "affichage4";
// line 98
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 98, $this->source); })()), "multi_affichage", [], "any", false, false, false, 98) == 5)) {
// line 99
echo " ";
$context["multi_affichage"] = "affichage5";
// line 100
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 100, $this->source); })()), "multi_affichage", [], "any", false, false, false, 100) == 6)) {
// line 101
echo " ";
$context["multi_affichage"] = "affichage6";
// line 102
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 102, $this->source); })()), "multi_affichage", [], "any", false, false, false, 102) == 7)) {
// line 103
echo " ";
$context["multi_affichage"] = "affichage7";
// line 104
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 104, $this->source); })()), "multi_affichage", [], "any", false, false, false, 104) == 8)) {
// line 105
echo " ";
$context["multi_affichage"] = "affichage8";
// line 106
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 106, $this->source); })()), "multi_affichage", [], "any", false, false, false, 106) == 9)) {
// line 107
echo " ";
$context["multi_affichage"] = "affichage9";
// line 108
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 108, $this->source); })()), "multi_affichage", [], "any", false, false, false, 108) == 10)) {
// line 109
echo " ";
$context["multi_affichage"] = "affichage10";
// line 110
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 110, $this->source); })()), "multi_affichage", [], "any", false, false, false, 110) == 11)) {
// line 111
echo " ";
$context["multi_affichage"] = "affichage11";
// line 112
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 112, $this->source); })()), "multi_affichage", [], "any", false, false, false, 112) == 12)) {
// line 113
echo " ";
$context["multi_affichage"] = "affichage12";
// line 114
echo " ";
}
// line 115
echo "
<div class=\"page_cms pt-5\">
";
// line 117
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 117, $this->source); })()) == "")) {
// line 118
echo " <div class=\"breadcrumb-style-default\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
";
// line 123
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.', 123, $this->source); })())))) {
// line 124
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.', 124, $this->source); })()), "request", [], "any", false, false, false, 124), "server", [], "any", false, false, false, 124), "get", [0 => "APP_THEME"], "method", false, false, false, 124)) . "/partials/breadcrumb.html.twig"));
echo "
<h1 class=\"page-title\">";
// line 125
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.', 125, $this->source); })())), "name", [], "any", false, false, false, 125), "html", null, true);
echo "</h1>
";
}
// line 127
echo " </div>
</div>
</div>
</div>
</div>
";
}
// line 133
echo "
<div class=\"container-fluid mt-3\">
<div class=\"row gx-5 py-2\">
";
// line 137
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.', 137, $this->source); })())))) {
// line 138
echo " <div class=\"col-lg-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.', 138, $this->source); })()) == true))) ? ("") : ("d-none"));
echo "\" >
";
// line 139
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.', 139, $this->source); })()), "request", [], "any", false, false, false, 139), "server", [], "any", false, false, false, 139), "get", [0 => "APP_THEME"], "method", false, false, false, 139)) . "/partials/product/_sidebar.html.twig"));
echo "
</div>
";
}
// line 142
echo "
<div class=\"col-lg-";
// line 143
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.', 143, $this->source); })()) == true))) ? ("9") : ("12"));
echo " bloc-content-categorie ";
echo ((((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 143, $this->source); })()), "actif_haut", [], "any", false, false, false, 143) == false) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 143, $this->source); })()), "textecategorie", [], "any", false, false, false, 143)))) ? ("d-flex flex-column-reverse") : (""));
echo "\">
";
// line 144
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 144, $this->source); })()), "textecategorie", [], "any", false, false, false, 144)) && (twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 144, $this->source); })()), "textecategorie", [], "any", false, false, false, 144) != ""))) {
// line 145
echo " <div class=\"list_blocs ";
echo twig_escape_filter($this->env, (isset($context["position_texte"]) || array_key_exists("position_texte", $context) ? $context["position_texte"] : (function () { throw new RuntimeError('Variable "position_texte" does not exist.', 145, $this->source); })()), "html", null, true);
echo "\">
<div class=\"col-lg-12 content_post\">
<div class=\"texte-content\">";
// line 147
echo twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 147, $this->source); })()), "textecategorie", [], "any", false, false, false, 147);
echo "</div>
";
// line 149
if ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 149, $this->source); })()), "typelien", [], "any", false, false, false, 149) != 1)) {
// line 150
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 150, $this->source); })()), "typelien", [], "any", false, false, false, 150) == "4")) {
// line 151
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"tel:";
// line 152
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 152, $this->source); })()), "telephone", [], "any", false, false, false, 152), "html", null, true);
echo "\" class=\"btn btn-back-pulse\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 152, $this->source); })()), "titrelien", [], "any", false, false, false, 152), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 154
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 154, $this->source); })()), "typelien", [], "any", false, false, false, 154) == "2")) {
// line 155
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"";
// line 156
echo twig_escape_filter($this->env, $this->extensions['App\Twig\FunctionExtension']->slugLinkInterneFunction(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 156, $this->source); })()), "lieninterne", [], "any", false, false, false, 156)), "html", null, true);
echo "\" class=\"btn btn-back-pulse\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 156, $this->source); })()), "titrelien", [], "any", false, false, false, 156), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 158
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 158, $this->source); })()), "typelien", [], "any", false, false, false, 158) == "3")) {
// line 159
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"";
// line 160
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 160, $this->source); })()), "lienexterne", [], "any", false, false, false, 160), "html", null, true);
echo "\" class=\"btn btn-back-pulse\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 160, $this->source); })()), "titrelien", [], "any", false, false, false, 160), "html", null, true);
echo "</a>
</div>
";
}
// line 163
echo " ";
}
// line 164
echo " </div>
</div>
";
}
// line 167
echo "
<div class=\"blocs\">
";
// line 171
if ((array_key_exists("template", $context) && !twig_test_empty((isset($context["template"]) || array_key_exists("template", $context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.', 171, $this->source); })())))) {
// line 172
echo " ";
echo twig_include($this->env, $context, twig_template_from_string($this->env, twig_get_attribute($this->env, $this->source, (isset($context["template"]) || array_key_exists("template", $context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.', 172, $this->source); })()), "twig", [], "any", false, false, false, 172)));
echo "
";
}
// line 174
echo "
";
// line 175
if (((((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 175, $this->source); })()) == true) && twig_get_attribute($this->env, $this->source, (isset($context["posts"]) || array_key_exists("posts", $context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.', 175, $this->source); })()), "hasToPaginate", [], "any", false, false, false, 175)) && twig_get_attribute($this->env, $this->source, (isset($context["posts"]) || array_key_exists("posts", $context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.', 175, $this->source); })()), "pageSize", [], "any", false, false, false, 175))) {
// line 176
echo " <div class=\"pagination-items\">
";
// line 177
$context["paginator"] = (isset($context["posts"]) || array_key_exists("posts", $context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.', 177, $this->source); })());
// line 178
echo " <div class=\"navigation text-center\">
<ul class=\"pagination d-felx justify-content-center my-4\">
";
// line 180
if (twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 180, $this->source); })()), "hasPreviousPage", [], "any", false, false, false, 180)) {
// line 181
echo " <li class=\"prev mx-1\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 181, $this->source); })()), "slugurl", [], "any", false, false, false, 181)]), "html", null, true);
echo "?page=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 181, $this->source); })()), "previousPage", [], "any", false, false, false, 181), "html", null, true);
echo "\" rel=\"previous\"><i class=\"fa fw fa-long-arrow-left\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.previous", [], "variable"), "html", null, true);
echo "</a></li>
";
} else {
// line 183
echo " <li class=\"prev disabled mx-1\"><span><i class=\"fa fw fa-long-arrow-left\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.previous", [], "variable"), "html", null, true);
echo "</span></li>
";
}
// line 185
echo "
";
// line 186
if (((isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 186, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 186, $this->source); })()), "pageSize", [], "any", false, false, false, 186))) {
// line 187
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 187, $this->source); })()), "lastPage", [], "any", false, false, false, 187)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 188
echo " ";
if (($context["i"] == twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 188, $this->source); })()), "currentPage", [], "any", false, false, false, 188))) {
// line 189
echo " <li class=\"active number mx-1\"><span>";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo " </span></li>
";
} else {
// line 191
echo " <li class=\"number mx-1\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 191, $this->source); })()), "slugurl", [], "any", false, false, false, 191)]), "html", null, true);
echo "?page=";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a></li>
";
}
// line 193
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 194
echo " ";
}
// line 195
echo "
";
// line 196
if (((isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 196, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 196, $this->source); })()), "pageSize", [], "any", false, false, false, 196))) {
// line 197
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 197, $this->source); })()), "hasNextPage", [], "any", false, false, false, 197)) {
// line 198
echo " <li class=\"next mx-1\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 198, $this->source); })()), "slugurl", [], "any", false, false, false, 198)]), "html", null, true);
echo "?page=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 198, $this->source); })()), "nextPage", [], "any", false, false, false, 198), "html", null, true);
echo "\" rel=\"next\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.next", [], "variable"), "html", null, true);
echo " <i class=\"fa fw fa-long-arrow-right\"></i></a></li>
";
} else {
// line 200
echo " <li class=\"next disabled mx-1\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.next", [], "variable"), "html", null, true);
echo " <i class=\"fa fw fa-long-arrow-right\"></i></span></li>
";
}
// line 202
echo " ";
}
// line 203
echo "
</ul>
</div>
</div>
";
}
// line 208
echo " </div>
</div>
</div>
</div>
";
// line 214
if (((((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 214, $this->source); })()) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 214, $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.', 214, $this->source); })())))) {
// line 215
echo " ";
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.', 215, $this->source); })())));
echo "
";
}
// line 217
echo "
";
// line 218
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 218, $this->source); })()), "urlvideo", [], "any", false, false, false, 218))) {
// line 219
echo " <div class=\"container-fluid wrapper mt-3\">
<div class=\"col-md-12 mt-1\">
<div class=\"video\">
";
// line 222
$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["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 222, $this->source); })()), "urlvideo", [], "any", false, false, false, 222), "?v="), 1, [], "array", true, true, false, 222)) ? (twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 222, $this->source); })()), "urlvideo", [], "any", false, false, false, 222), "?v="), 1, [], "array", false, false, false, 222)) : (null));
// line 223
echo " <a class=\"video-thumbnail m-0\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 223, $this->source); })()), "urlvideo", [], "any", false, false, false, 223), "html", null, true);
echo "\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/";
// line 224
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.', 224, $this->source); })()), "html", null, true);
echo "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
</a>
</div>
</div>
</div>
";
}
// line 230
echo "
";
// line 231
if (array_key_exists("blocs", $context)) {
// line 232
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.', 232, $this->source); })()), "Bloc", [], "any", false, false, false, 232));
foreach ($context['_seq'] as $context["_key"] => $context["bloc"]) {
// line 233
echo " ";
if (($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && (twig_get_attribute($this->env, $this->source, $context["bloc"], "mobile", [], "any", false, false, false, 233) == true))) {
// line 234
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.', 234, $this->source); })()), "request", [], "any", false, false, false, 234), "server", [], "any", false, false, false, 234), "get", [0 => "APP_THEME"], "method", false, false, false, 234)) . "/bloc/bloc.html.twig"), ["bloc" => // line 235
$context["bloc"]], false);
// line 236
echo "
";
}
// line 238
echo "
";
// line 239
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, 239) == true))) {
// line 240
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.', 240, $this->source); })()), "request", [], "any", false, false, false, 240), "server", [], "any", false, false, false, 240), "get", [0 => "APP_THEME"], "method", false, false, false, 240)) . "/bloc/bloc.html.twig"), ["bloc" => // line 241
$context["bloc"]], false);
// line 242
echo "
";
}
// line 244
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 245
echo " ";
}
echo "
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 251
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 252
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 253
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.', 253, $this->source); })()), 0, [], "array", false, false, false, 253), "type", [], "any", false, false, false, 253) == 4)) {
// line 254
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>
/*-------------------------------------------------*/
/* = Sx flexslider
/*-------------------------------------------------*/
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 278
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/theme1/produits/page_categorie.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 797 => 278, 769 => 254, 767 => 253, 762 => 252, 752 => 251, 736 => 245, 730 => 244, 726 => 242, 724 => 241, 722 => 240, 720 => 239, 717 => 238, 713 => 236, 711 => 235, 709 => 234, 706 => 233, 701 => 232, 699 => 231, 696 => 230, 687 => 224, 682 => 223, 680 => 222, 675 => 219, 673 => 218, 670 => 217, 664 => 215, 662 => 214, 654 => 208, 647 => 203, 644 => 202, 638 => 200, 628 => 198, 625 => 197, 623 => 196, 620 => 195, 617 => 194, 611 => 193, 601 => 191, 595 => 189, 592 => 188, 587 => 187, 585 => 186, 582 => 185, 576 => 183, 566 => 181, 564 => 180, 560 => 178, 558 => 177, 555 => 176, 553 => 175, 550 => 174, 544 => 172, 542 => 171, 536 => 167, 531 => 164, 528 => 163, 520 => 160, 517 => 159, 515 => 158, 508 => 156, 505 => 155, 503 => 154, 496 => 152, 493 => 151, 490 => 150, 488 => 149, 483 => 147, 477 => 145, 475 => 144, 469 => 143, 466 => 142, 460 => 139, 455 => 138, 453 => 137, 447 => 133, 439 => 127, 434 => 125, 429 => 124, 427 => 123, 420 => 118, 418 => 117, 414 => 115, 411 => 114, 408 => 113, 405 => 112, 402 => 111, 399 => 110, 396 => 109, 393 => 108, 390 => 107, 387 => 106, 384 => 105, 381 => 104, 378 => 103, 375 => 102, 372 => 101, 369 => 100, 366 => 99, 363 => 98, 360 => 97, 357 => 96, 354 => 95, 351 => 94, 348 => 93, 345 => 92, 342 => 91, 340 => 90, 337 => 89, 335 => 88, 332 => 87, 329 => 86, 326 => 85, 324 => 84, 321 => 83, 318 => 82, 315 => 81, 312 => 80, 309 => 79, 306 => 78, 303 => 77, 300 => 76, 298 => 75, 295 => 74, 292 => 73, 289 => 72, 286 => 71, 283 => 70, 280 => 69, 277 => 68, 275 => 67, 272 => 66, 264 => 61, 258 => 59, 248 => 58, 242 => 57, 231 => 53, 228 => 52, 226 => 51, 223 => 50, 220 => 49, 217 => 48, 214 => 47, 211 => 46, 208 => 45, 205 => 44, 203 => 43, 199 => 41, 189 => 40, 175 => 34, 172 => 33, 169 => 32, 163 => 30, 161 => 29, 156 => 28, 146 => 27, 135 => 23, 132 => 22, 126 => 21, 120 => 19, 117 => 18, 112 => 17, 110 => 16, 107 => 15, 98 => 13, 92 => 11, 89 => 10, 84 => 9, 82 => 8, 79 => 7, 73 => 5, 70 => 4, 60 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"front/\"~ app.request.server.get('APP_THEME') ~\"/base.html.twig\" %}
{% block preload %}
{% if categorie.image is defined and categorie.image is not empty %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image(categorie.image)}}\" />
{% endif %}
{% if resultats is defined and resultats is not empty %}
{% for item in resultats %}
{% if item.image %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image(item.image)}}\" />
{% endif %}
{% endfor %}
{% 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 %}
{% if template.css is defined %}
<style>
{{template.css|raw}}
</style>
{% endif %}
{% endblock %}
{% block body %}
<div class=\"page_product\">
{% if categorie.imageBandeau %}
{% set imagebandeau = categorie.imageBandeau %}
{% elseif parametre.imageBandeau %}
{% set imagebandeau = 'uploads/images/' ~ parametre.imageBandeau %}
{% else %}
{% set imagebandeau = '' %}
{% endif %}
{% if imagebandeau != '' %}
<section class=\"image-bandeau text-center\">
<img alt=\"{{categorie.titrecategorie}}\" title=\"{{categorie.titrecategorie}}\" src=\"{{asset(imagebandeau)}}\" />
<div class=\"cnt-bandeau text-center\">
<div class=\"container-fluid wrapper\">
<ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('index_page_home')}}\" itemprop=\"item\"><span itemprop=\"name\">{{title_home_ariane}}</span></a><meta itemprop=\"position\" content=\"1\" /></li>
{% if categorieParent is defined %}<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('page',{slug:categorieParent.slugurl})}}\" title=\"{{categorieParent.titrecategorie}}\" itemprop=\"item\"><span itemprop=\"name\">{{categorieParent.titrecategorie}}</span></a><meta itemprop=\"position\" content=\"2\" /></li>{% endif %}
<li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">{{categorie.titrecategorie}}</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">{{categorie.titrecategorie}}</h1>
</div>
</div>
</section>
{% endif %}
{% if categorie.positiontext == 3 %}
{% set position_texte = \"text-left\" %}
{% elseif categorie.positiontext == 2 %}
{% set position_texte = \"text-right\" %}
{% else %}
{% set position_texte = \"text-center\" %}
{% endif %}
{% set type_affiche = \"\" %}
{% if categorie.nombrearticle == 1 %}
{% set type_affiche = \"type_affiche1\" %}
{% elseif categorie.nombrearticle == 2 %}
{% set type_affiche = \"type_affiche2\" %}
{% else %}
{% set type_affiche = \"type_affiche3\" %}
{% endif %}
{% if categorie.actif_slider == 1 %}
{% set type_affiche = type_affiche ~ \" owl-carousel\" %}
{% endif %}
{% set multi_affichage = \"affichage1\" %}
{% if categorie.multi_affichage == 1 %}
{% set multi_affichage = \"affichage1\" %}
{% elseif categorie.multi_affichage == 2 %}
{% set multi_affichage = \"affichage2\" %}
{% elseif categorie.multi_affichage == 3 %}
{% set multi_affichage = \"affichage3\" %}
{% elseif categorie.multi_affichage == 4 %}
{% set multi_affichage = \"affichage4\" %}
{% elseif categorie.multi_affichage == 5 %}
{% set multi_affichage = \"affichage5\" %}
{% elseif categorie.multi_affichage == 6 %}
{% set multi_affichage = \"affichage6\" %}
{% elseif categorie.multi_affichage == 7 %}
{% set multi_affichage = \"affichage7\" %}
{% elseif categorie.multi_affichage == 8 %}
{% set multi_affichage = \"affichage8\" %}
{% elseif categorie.multi_affichage == 9 %}
{% set multi_affichage = \"affichage9\" %}
{% elseif categorie.multi_affichage == 10 %}
{% set multi_affichage = \"affichage10\" %}
{% elseif categorie.multi_affichage == 11 %}
{% set multi_affichage = \"affichage11\" %}
{% elseif categorie.multi_affichage == 12 %}
{% set multi_affichage = \"affichage12\" %}
{% endif %}
<div class=\"page_cms 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')}}
<h1 class=\"page-title\">{{breadcrumb|last.name}}</h1>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"container-fluid mt-3\">
<div class=\"row gx-5 py-2\">
{% if categories_tree is defined and categories_tree is not empty %}
<div class=\"col-lg-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-lg-{{show_filter_categorie is defined and show_filter_categorie == true?'9':'12'}} bloc-content-categorie {{categorie.actif_haut == false and categorie.textecategorie is not empty ? \"d-flex flex-column-reverse\"}}\">
{% if categorie.textecategorie is not empty and categorie.textecategorie != \"\" %}
<div class=\"list_blocs {{position_texte}}\">
<div class=\"col-lg-12 content_post\">
<div class=\"texte-content\">{{categorie.textecategorie|raw}}</div>
{% if categorie.typelien != 1 %}
{% if categorie.typelien == '4' %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-back-pulse\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '2' %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"{{slug_link_interne(categorie.lieninterne)}}\" class=\"btn btn-back-pulse\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '3' %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"{{categorie.lienexterne}}\" class=\"btn btn-back-pulse\" target=\"_blank\">{{categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
</div>
</div>
{% endif %}
<div class=\"blocs\">
{% if template is defined and template is not empty %}
{{ include(template_from_string(template.twig)) }}
{% endif %}
{% if pagination == true and posts.hasToPaginate and posts.pageSize %}
<div class=\"pagination-items\">
{% set paginator = posts %}
<div class=\"navigation text-center\">
<ul class=\"pagination d-felx justify-content-center my-4\">
{% if paginator.hasPreviousPage %}
<li class=\"prev mx-1\"><a href=\"{{ path('page', {slug:categorie.slugurl}) }}?page={{paginator.previousPage}}\" rel=\"previous\"><i class=\"fa fw fa-long-arrow-left\"></i> {{ 'paginator.previous'|trans([],'variable') }}</a></li>
{% else %}
<li class=\"prev disabled mx-1\"><span><i class=\"fa fw fa-long-arrow-left\"></i> {{ 'paginator.previous'|trans([],'variable') }}</span></li>
{% endif %}
{% if paginator and paginator.pageSize %}
{% for i in 1..paginator.lastPage %}
{% if i == paginator.currentPage %}
<li class=\"active number mx-1\"><span>{{ i }} </span></li>
{% else %}
<li class=\"number mx-1\"><a href=\"{{ path('page', {slug:categorie.slugurl }) }}?page={{i}}\">{{ i }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
{% if paginator and paginator.pageSize %}
{% if paginator.hasNextPage %}
<li class=\"next mx-1\"><a href=\"{{ path('page', {slug:categorie.slugurl}) }}?page={{paginator.nextPage}}\" rel=\"next\">{{ 'paginator.next'|trans([],'variable') }} <i class=\"fa fw fa-long-arrow-right\"></i></a></li>
{% else %}
<li class=\"next disabled mx-1\"><span>{{ 'paginator.next'|trans([],'variable')}} <i class=\"fa fw fa-long-arrow-right\"></i></span></li>
{% endif %}
{% endif %}
</ul>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% if galleries and galleries is not empty and template_model_gallerie is defined and template_model_gallerie is not empty %}
{{ include(template_from_string(template_model_gallerie)) }}
{% endif %}
{% if categorie.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 = categorie.urlvideo|split('?v=')[1] is defined ? categorie.urlvideo|split('?v=')[1] : null %}
<a class=\"video-thumbnail m-0\" href=\"{{categorie.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 %}
</div>
</div>
{% endblock %}
{% block javascripts %}
{{parent()}}
{% if modele_galerie[0].type == 4 %}
<script src=\"{{asset('templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js')}}\" ></script>
<script>
/*-------------------------------------------------*/
/* = Sx flexslider
/*-------------------------------------------------*/
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 %}
{% endblock %}
", "front/theme1/produits/page_categorie.html.twig", "/var/www/vhosts/hrz.fr/oscar-multilangue.hrz.fr/templates/front/theme1/produits/page_categorie.html.twig");
}
}