<?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/page_categorie.html.twig */
class __TwigTemplate_17d3d2bfb63c48848a2cba7514629df22c1354a20559b086b6627d73e927fdd6 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/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/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/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']->AssetImageFunction(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 "
";
// line 42
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.', 42, $this->source); })()), "imageBandeau", [], "any", false, false, false, 42)) {
// line 43
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.', 43, $this->source); })()), "imageBandeau", [], "any", false, false, false, 43);
// line 44
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.', 44, $this->source); })()), "imageBandeau", [], "any", false, false, false, 44)) {
// line 45
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.', 45, $this->source); })()), "imageBandeau", [], "any", false, false, false, 45));
// line 46
echo " ";
} else {
// line 47
echo " ";
$context["imagebandeau"] = "";
// line 48
echo " ";
}
// line 49
echo "
";
// line 50
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 50, $this->source); })()) != "")) {
// line 51
echo " <section class=\"image-bandeau text-center\">
<img alt=\"";
// line 52
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.', 52, $this->source); })()), "titrecategorie", [], "any", false, false, false, 52), "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.', 52, $this->source); })()), "titrecategorie", [], "any", false, false, false, 52), "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.', 52, $this->source); })())), "html", null, true);
echo "\" />
<div class=\"cnt-bandeau text-center\">
\t\t\t\t<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 56
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
echo "\" itemprop=\"item\"><span itemprop=\"name\">Accueil</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\">";
// 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 "</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">";
// line 63
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.', 63, $this->source); })()), "titrecategorie", [], "any", false, false, false, 63), "html", null, true);
echo "</h1>
</div>
</div>
</section>
";
}
// line 68
echo "
<div class=\"page_cms pt-5\">
";
// line 70
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 70, $this->source); })()) == "")) {
// line 71
echo " <div class=\"container-fluid wrapper\">
<div class=\"breadcrumb-style-default\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
<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 77
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
echo "\" itemprop=\"item\"><span itemprop=\"name\">Accueil</span></a><meta itemprop=\"position\" content=\"1\" /></li>
";
// line 79
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.', 79, $this->source); })()), "slugurl", [], "any", false, false, false, 79)]), "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.', 79, $this->source); })()), "titrecategorie", [], "any", false, false, false, 79), "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.', 79, $this->source); })()), "titrecategorie", [], "any", false, false, false, 79), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"2\" /></li>";
}
// line 80
echo "
<li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">";
// line 82
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.', 82, $this->source); })()), "titrecategorie", [], "any", false, false, false, 82), "html", null, true);
echo "</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">";
// line 84
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.', 84, $this->source); })()), "titrecategorie", [], "any", false, false, false, 84), "html", null, true);
echo "</h1>
</div>
</div>
</div>
</div>
</div>
";
}
// line 91
echo "
";
// line 92
$context["position_texte"] = "";
// line 93
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.', 93, $this->source); })()), "positiontext", [], "any", false, false, false, 93) == 3)) {
// line 94
echo " ";
$context["position_texte"] = "pos3";
// line 95
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.', 95, $this->source); })()), "positiontext", [], "any", false, false, false, 95) == 2)) {
// line 96
echo " ";
$context["position_texte"] = "pos2";
// line 97
echo " ";
} else {
// line 98
echo " ";
$context["position_texte"] = "pos1";
// line 99
echo " ";
}
// line 100
echo "
";
// line 101
$context["type_affiche"] = "";
// line 102
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.', 102, $this->source); })()), "nombrearticle", [], "any", false, false, false, 102) == 1)) {
// line 103
echo " ";
$context["type_affiche"] = "type_affiche1";
// 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); })()), "nombrearticle", [], "any", false, false, false, 104) == 2)) {
// line 105
echo " ";
$context["type_affiche"] = "type_affiche2";
// line 106
echo " ";
} else {
// line 107
echo " ";
$context["type_affiche"] = "type_affiche3";
// line 108
echo " ";
}
// line 109
echo "
";
// line 110
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.', 110, $this->source); })()), "actif_slider", [], "any", false, false, false, 110) == 1)) {
// line 111
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.', 111, $this->source); })()) . " owl-carousel");
// line 112
echo " ";
}
// line 113
echo "
";
// line 115
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.', 115, $this->source); })()), "multi_affichage", [], "any", false, false, false, 115) == 1)) {
// line 116
echo " ";
$context["multi_affichage"] = "affichage1";
// line 117
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.', 117, $this->source); })()), "multi_affichage", [], "any", false, false, false, 117) == 2)) {
// line 118
echo " ";
$context["multi_affichage"] = "affichage2";
// line 119
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.', 119, $this->source); })()), "multi_affichage", [], "any", false, false, false, 119) == 3)) {
// line 120
echo " ";
$context["multi_affichage"] = "affichage3";
// line 121
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.', 121, $this->source); })()), "multi_affichage", [], "any", false, false, false, 121) == 4)) {
// line 122
echo " ";
$context["multi_affichage"] = "affichage4";
// line 123
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.', 123, $this->source); })()), "multi_affichage", [], "any", false, false, false, 123) == 5)) {
// line 124
echo " ";
$context["multi_affichage"] = "affichage5";
// line 125
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.', 125, $this->source); })()), "multi_affichage", [], "any", false, false, false, 125) == 6)) {
// line 126
echo " ";
$context["multi_affichage"] = "affichage6";
// line 127
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.', 127, $this->source); })()), "multi_affichage", [], "any", false, false, false, 127) == 7)) {
// line 128
echo " ";
$context["multi_affichage"] = "affichage7";
// line 129
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.', 129, $this->source); })()), "multi_affichage", [], "any", false, false, false, 129) == 8)) {
// line 130
echo " ";
$context["multi_affichage"] = "affichage8";
// line 131
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.', 131, $this->source); })()), "multi_affichage", [], "any", false, false, false, 131) == 9)) {
// line 132
echo " ";
$context["multi_affichage"] = "affichage9";
// line 133
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.', 133, $this->source); })()), "multi_affichage", [], "any", false, false, false, 133) == 10)) {
// line 134
echo " ";
$context["multi_affichage"] = "affichage10";
// line 135
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.', 135, $this->source); })()), "multi_affichage", [], "any", false, false, false, 135) == 11)) {
// line 136
echo " ";
$context["multi_affichage"] = "affichage11";
// line 137
echo " ";
}
// line 138
echo "
";
// line 139
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.', 139, $this->source); })()), "actif_haut", [], "any", false, false, false, 139) == 1) && (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.', 139, $this->source); })()), "positiontext", [], "any", false, false, false, 139) != 2)) && (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.', 139, $this->source); })()), "positiontext", [], "any", false, false, false, 139) != 3))) {
// line 140
echo " <div class=\"container-fluid wrapper\">
<div class=\"row mb-3 mt-2\">
";
// line 142
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.', 142, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 142) != "")) {
// line 143
echo " <div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">";
// line 144
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.', 144, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 144), "html", null, true);
echo "</h2>
</div>
";
}
// line 147
echo "
";
// line 148
if ((twig_get_attribute($this->env, $this->source, ($context["categorie"] ?? null), "image", [], "any", true, true, false, 148) && !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.', 148, $this->source); })()), "image", [], "any", false, false, false, 148)))) {
// line 149
echo " <div class=\"col-lg-12 py-5 d-flex justify-content-center\">
<div class=\"col-sm-12 col-md-6\">
<img class=\"img-fluid\" src=\"";
// line 151
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.', 151, $this->source); })()), "image", [], "any", false, false, false, 151)), "html", null, true);
echo "\" alt=\"";
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.', 151, $this->source); })()), "titrecategorie", [], "any", false, false, false, 151), "html", null, true);
echo "\" />
</div>
</div>
";
}
// line 155
echo "
";
// line 156
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.', 156, $this->source); })()), "textecategorie", [], "any", false, false, false, 156)) && (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); })()), "textecategorie", [], "any", false, false, false, 156) != " "))) {
// line 157
echo " <div class=\"col-lg-12 content_post\">
";
// line 158
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.', 158, $this->source); })()), "textecategorie", [], "any", false, false, false, 158);
echo "
";
// line 159
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.', 159, $this->source); })()), "typelien", [], "any", false, false, false, 159) == null)) {
// line 160
echo " ";
if ((array_key_exists("categorieTree", $context) && twig_get_attribute($this->env, $this->source, ($context["categorieTree"] ?? null), 0, [], "array", true, true, false, 160))) {
// line 161
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 162
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.', 162, $this->source); })()), 0, [], "array", false, false, false, 162), "slug", [], "any", false, false, false, 162)]), "html", null, true);
echo "\" class=\"btn btn-primary 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.', 162, $this->source); })()), 0, [], "array", false, false, false, 162), "titre", [], "any", false, false, false, 162), "html", null, true);
echo "</a>
</div>
";
}
// line 164
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 165
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 165, $this->source); })()), "typelien", [], "any", false, false, false, 165) != 1)) {
// line 166
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.', 166, $this->source); })()), "typelien", [], "any", false, false, false, 166) == "4")) {
// line 167
echo " <div class=\"text-center py-2\">
<a href=\"tel:";
// line 168
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.', 168, $this->source); })()), "telephone", [], "any", false, false, false, 168), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
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.', 168, $this->source); })()), "titrelien", [], "any", false, false, false, 168), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 170
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 170, $this->source); })()), "typelien", [], "any", false, false, false, 170) == "2")) {
// line 171
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 172
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.', 172, $this->source); })()), "lieninterne", [], "any", false, false, false, 172), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
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.', 172, $this->source); })()), "titrelien", [], "any", false, false, false, 172), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 174
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 174, $this->source); })()), "typelien", [], "any", false, false, false, 174) == "3")) {
// line 175
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 176
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.', 176, $this->source); })()), "lienexterne", [], "any", false, false, false, 176), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
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.', 176, $this->source); })()), "titrelien", [], "any", false, false, false, 176), "html", null, true);
echo "</a>
</div>
";
}
// line 179
echo " ";
}
// line 180
echo " </div>
";
}
// line 182
echo "
";
// line 183
if (((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 183, $this->source); })()) && !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 183, $this->source); })())))) {
// line 184
echo " <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
";
// line 185
$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.', 185, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 186
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, 186) . twig_get_attribute($this->env, $this->source, $context["doc"], "path", [], "any", false, false, false, 186)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 186)), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 186), 0, -4), "html", null, true);
echo "\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>";
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 186), 0, -4), "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 188
echo " </div>
";
}
// line 190
echo "
</div>
</div>
";
}
// line 194
echo "
<div class=\"list_blocs ";
// line 195
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.', 195, $this->source); })()), "html", null, true);
echo "\">
";
// line 196
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.', 196, $this->source); })()), "actif_haut", [], "any", false, false, false, 196) != 1) && (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.', 196, $this->source); })()), "positiontext", [], "any", false, false, false, 196) != 1))) {
// line 197
echo " <div class=\"cnt_blocs\">
";
// line 198
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.', 198, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 198) != "")) {
// line 199
echo " <div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">";
// line 200
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.', 200, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 200), "html", null, true);
echo "</h2>
</div>
";
}
// line 203
echo "
";
// line 204
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.', 204, $this->source); })()), "textecategorie", [], "any", false, false, false, 204)) && (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.', 204, $this->source); })()), "textecategorie", [], "any", false, false, false, 204) != ""))) {
// line 205
echo " <div class=\"col-lg-12 content_post\">
";
// line 206
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.', 206, $this->source); })()), "textecategorie", [], "any", false, false, false, 206);
echo "
";
// line 207
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.', 207, $this->source); })()), "typelien", [], "any", false, false, false, 207) == null)) {
// line 208
echo " ";
if ((array_key_exists("categorieTree", $context) && twig_get_attribute($this->env, $this->source, ($context["categorieTree"] ?? null), 0, [], "array", true, true, false, 208))) {
// line 209
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 210
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.', 210, $this->source); })()), 0, [], "array", false, false, false, 210), "slug", [], "any", false, false, false, 210)]), "html", null, true);
echo "\" class=\"btn btn-back-pulse\">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.', 210, $this->source); })()), 0, [], "array", false, false, false, 210), "titre", [], "any", false, false, false, 210), "html", null, true);
echo "</a>
</div>
";
}
// line 212
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 213
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 213, $this->source); })()), "typelien", [], "any", false, false, false, 213) != 1)) {
// line 214
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.', 214, $this->source); })()), "typelien", [], "any", false, false, false, 214) == "4")) {
// line 215
echo " <div class=\"text-center py-2\">
<a href=\"tel:";
// line 216
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.', 216, $this->source); })()), "telephone", [], "any", false, false, false, 216), "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.', 216, $this->source); })()), "titrelien", [], "any", false, false, false, 216), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 218
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 218, $this->source); })()), "typelien", [], "any", false, false, false, 218) == "2")) {
// line 219
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 220
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.', 220, $this->source); })()), "lieninterne", [], "any", false, false, false, 220), "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.', 220, $this->source); })()), "titrelien", [], "any", false, false, false, 220), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 222
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 222, $this->source); })()), "typelien", [], "any", false, false, false, 222) == "3")) {
// line 223
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 224
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.', 224, $this->source); })()), "lienexterne", [], "any", false, false, false, 224), "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.', 224, $this->source); })()), "titrelien", [], "any", false, false, false, 224), "html", null, true);
echo "</a>
</div>
";
}
// line 227
echo " ";
}
// line 228
echo " </div>
";
}
// line 230
echo "
";
// line 231
if (((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 231, $this->source); })()) && !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 231, $this->source); })())))) {
// line 232
echo " <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
";
// line 233
$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.', 233, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 234
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, 234) . twig_get_attribute($this->env, $this->source, $context["doc"], "path", [], "any", false, false, false, 234)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 234)), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 234), 0, -4), "html", null, true);
echo "\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>";
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 234), 0, -4), "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 236
echo " </div>
";
}
// line 238
echo "
</div>
";
}
// line 242
echo " <div class=\"blocs\">
";
// line 243
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.', 243, $this->source); })())))) {
// line 244
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.', 244, $this->source); })()), "twig", [], "any", false, false, false, 244)));
echo "
";
}
// line 246
echo "
";
// line 247
if ((((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 247, $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.', 247, $this->source); })()), "hasToPaginate", [], "any", false, false, false, 247))) {
// line 248
echo " <div class=\"pagination-items\">
";
// line 249
$context["paginator"] = (isset($context["posts"]) || array_key_exists("posts", $context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.', 249, $this->source); })());
// line 250
echo " <div class=\"navigation text-center\">
<ul class=\"pagination\">
";
// line 252
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.', 252, $this->source); })()), "hasPreviousPage", [], "any", false, false, false, 252)) {
// line 253
echo " <li class=\"prev\"><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.', 253, $this->source); })()), "slugurl", [], "any", false, false, false, 253), "page" => 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.', 253, $this->source); })()), "previousPage", [], "any", false, false, false, 253)]), "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 255
echo " <li class=\"prev disabled\"><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 257
echo "
";
// line 258
$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.', 258, $this->source); })()), "lastPage", [], "any", false, false, false, 258)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 259
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.', 259, $this->source); })()), "currentPage", [], "any", false, false, false, 259))) {
// line 260
echo " <li class=\"active number\"><span>";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo " </span></li>
";
} else {
// line 262
echo " <li class=\"number\"><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.', 262, $this->source); })()), "slugurl", [], "any", false, false, false, 262), "page" => $context["i"]]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a></li>
";
}
// line 264
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 265
echo "
";
// line 266
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.', 266, $this->source); })()), "hasNextPage", [], "any", false, false, false, 266)) {
// line 267
echo " <li class=\"next\"><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.', 267, $this->source); })()), "slugurl", [], "any", false, false, false, 267), "page" => 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.', 267, $this->source); })()), "nextPage", [], "any", false, false, false, 267)]), "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 269
echo " <li class=\"next disabled\"><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 271
echo " </ul>
</div>
</div>
";
}
// line 275
echo " </div>
</div>
";
// line 279
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.', 279, $this->source); })()), "actif_haut", [], "any", false, false, false, 279) != 1) && (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.', 279, $this->source); })()), "positiontext", [], "any", false, false, false, 279) == 1))) {
// line 280
echo " <div class=\"container-fluid wrapper\">
<div class=\"row mb-3 mt-2\">
";
// line 282
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.', 282, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 282) != "")) {
// line 283
echo " <div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">";
// line 284
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.', 284, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 284), "html", null, true);
echo "</h2>
</div>
";
}
// line 287
echo "
";
// line 288
if ((twig_get_attribute($this->env, $this->source, ($context["categorie"] ?? null), "image", [], "any", true, true, false, 288) && !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.', 288, $this->source); })()), "image", [], "any", false, false, false, 288)))) {
// line 289
echo " <div class=\"col-lg-12 py-5 d-flex justify-content-center\">
<div class=\"col-sm-12 col-md-6\">
<img class=\"img-fluid\" src=\"";
// line 291
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.', 291, $this->source); })()), "image", [], "any", false, false, false, 291)), "html", null, true);
echo "\" alt=\"";
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.', 291, $this->source); })()), "titrecategorie", [], "any", false, false, false, 291), "html", null, true);
echo "\" />
</div>
</div>
";
}
// line 295
echo "
";
// line 296
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.', 296, $this->source); })()), "textecategorie", [], "any", false, false, false, 296)) && (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.', 296, $this->source); })()), "textecategorie", [], "any", false, false, false, 296) != " "))) {
// line 297
echo " <div class=\"col-lg-12 content_post\">
";
// line 298
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.', 298, $this->source); })()), "textecategorie", [], "any", false, false, false, 298);
echo "
";
// line 299
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.', 299, $this->source); })()), "typelien", [], "any", false, false, false, 299) == null)) {
// line 300
echo " ";
if ((array_key_exists("categorieTree", $context) && twig_get_attribute($this->env, $this->source, ($context["categorieTree"] ?? null), 0, [], "array", true, true, false, 300))) {
// line 301
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 302
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.', 302, $this->source); })()), 0, [], "array", false, false, false, 302), "slug", [], "any", false, false, false, 302)]), "html", null, true);
echo "\" class=\"btn btn-primary 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.', 302, $this->source); })()), 0, [], "array", false, false, false, 302), "titre", [], "any", false, false, false, 302), "html", null, true);
echo "</a>
</div>
";
}
// line 304
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 305
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 305, $this->source); })()), "typelien", [], "any", false, false, false, 305) != 1)) {
// line 306
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.', 306, $this->source); })()), "typelien", [], "any", false, false, false, 306) == "4")) {
// line 307
echo " <div class=\"text-center py-2\">
<a href=\"tel:";
// line 308
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.', 308, $this->source); })()), "telephone", [], "any", false, false, false, 308), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
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.', 308, $this->source); })()), "titrelien", [], "any", false, false, false, 308), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 310
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 310, $this->source); })()), "typelien", [], "any", false, false, false, 310) == "2")) {
// line 311
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 312
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.', 312, $this->source); })()), "lieninterne", [], "any", false, false, false, 312), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
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.', 312, $this->source); })()), "titrelien", [], "any", false, false, false, 312), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 314
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 314, $this->source); })()), "typelien", [], "any", false, false, false, 314) == "3")) {
// line 315
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 316
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.', 316, $this->source); })()), "lienexterne", [], "any", false, false, false, 316), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
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.', 316, $this->source); })()), "titrelien", [], "any", false, false, false, 316), "html", null, true);
echo "</a>
</div>
";
}
// line 319
echo " ";
}
// line 320
echo " </div>
";
// line 322
if (((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 322, $this->source); })()) && !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 322, $this->source); })())))) {
// line 323
echo " <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
";
// line 324
$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.', 324, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 325
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, 325) . twig_get_attribute($this->env, $this->source, $context["doc"], "path", [], "any", false, false, false, 325)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 325)), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 325), 0, -4), "html", null, true);
echo "\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>";
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 325), 0, -4), "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 327
echo " </div>
";
}
// line 329
echo " ";
}
// line 330
echo "
</div>
</div>
";
}
// line 334
echo "
";
// line 335
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.', 335, $this->source); })()), "positiontext", [], "any", false, false, false, 335) != 1)) {
// line 336
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["categorie"] ?? null), "image", [], "any", true, true, false, 336) && !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.', 336, $this->source); })()), "image", [], "any", false, false, false, 336)))) {
// line 337
echo " <div class=\"col-lg-12 py-5 d-flex justify-content-center\">
<div class=\"col-sm-12 col-md-6\">
<img class=\"img-fluid\" src=\"";
// line 339
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.', 339, $this->source); })()), "image", [], "any", false, false, false, 339)), "html", null, true);
echo "\" alt=\"";
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.', 339, $this->source); })()), "titrecategorie", [], "any", false, false, false, 339), "html", null, true);
echo "\" />
</div>
</div>
";
}
// line 343
echo " ";
}
// line 344
echo "
";
// line 345
if (((((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 345, $this->source); })()) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 345, $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.', 345, $this->source); })())))) {
// line 346
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.', 346, $this->source); })())));
echo "
";
}
// line 348
echo "
";
// line 349
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.', 349, $this->source); })()), "urlvideo", [], "any", false, false, false, 349))) {
// line 350
echo " <div class=\"container-fluid wrapper mt-3\">
<div class=\"col-md-12 mt-1\">
<div class=\"video\">
";
// line 353
$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.', 353, $this->source); })()), "urlvideo", [], "any", false, false, false, 353), "?v="), 1, [], "array", true, true, false, 353)) ? (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.', 353, $this->source); })()), "urlvideo", [], "any", false, false, false, 353), "?v="), 1, [], "array", false, false, false, 353)) : (null));
// line 354
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.', 354, $this->source); })()), "urlvideo", [], "any", false, false, false, 354), "html", null, true);
echo "\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/";
// line 355
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.', 355, $this->source); })()), "html", null, true);
echo "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
</a>
</div>
</div>
</div>
";
}
// line 361
echo "
";
// line 362
if (array_key_exists("blocs", $context)) {
// line 363
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.', 363, $this->source); })()), "Bloc", [], "any", false, false, false, 363));
foreach ($context['_seq'] as $context["_key"] => $context["bloc"]) {
// line 364
echo " ";
if (($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && (twig_get_attribute($this->env, $this->source, $context["bloc"], "mobile", [], "any", false, false, false, 364) == true))) {
// line 365
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.', 365, $this->source); })()), "request", [], "any", false, false, false, 365), "server", [], "any", false, false, false, 365), "get", [0 => "APP_THEME"], "method", false, false, false, 365)) . "/bloc/bloc.html.twig"), ["bloc" => // line 366
$context["bloc"]], false);
// line 367
echo "
";
}
// line 369
echo "
";
// line 370
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, 370) == true))) {
// line 371
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.', 371, $this->source); })()), "request", [], "any", false, false, false, 371), "server", [], "any", false, false, false, 371), "get", [0 => "APP_THEME"], "method", false, false, false, 371)) . "/bloc/bloc.html.twig"), ["bloc" => // line 372
$context["bloc"]], false);
// line 373
echo "
";
}
// line 375
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 376
echo " ";
}
echo "
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 381
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 382
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 383
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.', 383, $this->source); })()), 0, [], "array", false, false, false, 383), "type", [], "any", false, false, false, 383) == 4)) {
// line 384
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 408
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/theme1/page_categorie.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1154 => 408, 1126 => 384, 1124 => 383, 1119 => 382, 1109 => 381, 1094 => 376, 1088 => 375, 1084 => 373, 1082 => 372, 1080 => 371, 1078 => 370, 1075 => 369, 1071 => 367, 1069 => 366, 1067 => 365, 1064 => 364, 1059 => 363, 1057 => 362, 1054 => 361, 1045 => 355, 1040 => 354, 1038 => 353, 1033 => 350, 1031 => 349, 1028 => 348, 1022 => 346, 1020 => 345, 1017 => 344, 1014 => 343, 1005 => 339, 1001 => 337, 998 => 336, 996 => 335, 993 => 334, 987 => 330, 984 => 329, 980 => 327, 967 => 325, 963 => 324, 960 => 323, 958 => 322, 954 => 320, 951 => 319, 943 => 316, 940 => 315, 938 => 314, 931 => 312, 928 => 311, 926 => 310, 919 => 308, 916 => 307, 913 => 306, 911 => 305, 908 => 304, 900 => 302, 897 => 301, 894 => 300, 892 => 299, 888 => 298, 885 => 297, 883 => 296, 880 => 295, 871 => 291, 867 => 289, 865 => 288, 862 => 287, 856 => 284, 853 => 283, 851 => 282, 847 => 280, 845 => 279, 839 => 275, 833 => 271, 827 => 269, 819 => 267, 817 => 266, 814 => 265, 808 => 264, 800 => 262, 794 => 260, 791 => 259, 787 => 258, 784 => 257, 778 => 255, 770 => 253, 768 => 252, 764 => 250, 762 => 249, 759 => 248, 757 => 247, 754 => 246, 748 => 244, 746 => 243, 743 => 242, 737 => 238, 733 => 236, 720 => 234, 716 => 233, 713 => 232, 711 => 231, 708 => 230, 704 => 228, 701 => 227, 693 => 224, 690 => 223, 688 => 222, 681 => 220, 678 => 219, 676 => 218, 669 => 216, 666 => 215, 663 => 214, 661 => 213, 658 => 212, 650 => 210, 647 => 209, 644 => 208, 642 => 207, 638 => 206, 635 => 205, 633 => 204, 630 => 203, 624 => 200, 621 => 199, 619 => 198, 616 => 197, 614 => 196, 610 => 195, 607 => 194, 601 => 190, 597 => 188, 584 => 186, 580 => 185, 577 => 184, 575 => 183, 572 => 182, 568 => 180, 565 => 179, 557 => 176, 554 => 175, 552 => 174, 545 => 172, 542 => 171, 540 => 170, 533 => 168, 530 => 167, 527 => 166, 525 => 165, 522 => 164, 514 => 162, 511 => 161, 508 => 160, 506 => 159, 502 => 158, 499 => 157, 497 => 156, 494 => 155, 485 => 151, 481 => 149, 479 => 148, 476 => 147, 470 => 144, 467 => 143, 465 => 142, 461 => 140, 459 => 139, 456 => 138, 453 => 137, 450 => 136, 447 => 135, 444 => 134, 441 => 133, 438 => 132, 435 => 131, 432 => 130, 429 => 129, 426 => 128, 423 => 127, 420 => 126, 417 => 125, 414 => 124, 411 => 123, 408 => 122, 405 => 121, 402 => 120, 399 => 119, 396 => 118, 393 => 117, 390 => 116, 388 => 115, 384 => 113, 381 => 112, 378 => 111, 376 => 110, 373 => 109, 370 => 108, 367 => 107, 364 => 106, 361 => 105, 358 => 104, 355 => 103, 352 => 102, 350 => 101, 347 => 100, 344 => 99, 341 => 98, 338 => 97, 335 => 96, 332 => 95, 329 => 94, 326 => 93, 324 => 92, 321 => 91, 311 => 84, 306 => 82, 302 => 80, 292 => 79, 287 => 77, 279 => 71, 277 => 70, 273 => 68, 265 => 63, 260 => 61, 256 => 59, 246 => 58, 241 => 56, 230 => 52, 227 => 51, 225 => 50, 222 => 49, 219 => 48, 216 => 47, 213 => 46, 210 => 45, 207 => 44, 204 => 43, 202 => 42, 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(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 %}
{% 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\">
\t\t\t\t<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\">Accueil</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 %}
<div class=\"page_cms pt-5\">
{% if imagebandeau == '' %}
<div class=\"container-fluid wrapper\">
<div class=\"breadcrumb-style-default\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
<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\">Accueil</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>
</div>
</div>
</div>
{% endif %}
{% set position_texte = \"\" %}
{% if categorie.positiontext == 3 %}
{% set position_texte = \"pos3\" %}
{% elseif categorie.positiontext == 2 %}
{% set position_texte = \"pos2\" %}
{% else %}
{% set position_texte = \"pos1\" %}
{% 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 %}
{% 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\" %}
{% endif %}
{% if categorie.actif_haut == 1 and categorie.positiontext != 2 and categorie.positiontext != 3 %}
<div class=\"container-fluid wrapper\">
<div class=\"row mb-3 mt-2\">
{% if categorie.chapeaucategorie !='' %}
<div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">{{categorie.chapeaucategorie}}</h2>
</div>
{% endif %}
{% if categorie.image is defined and categorie.image is not empty %}
<div class=\"col-lg-12 py-5 d-flex justify-content-center\">
<div class=\"col-sm-12 col-md-6\">
<img class=\"img-fluid\" src=\"{{asset_image(categorie.image)}}\" alt=\"{{categorie.titrecategorie}}\" />
</div>
</div>
{% endif %}
{% if categorie.textecategorie is not empty and categorie.textecategorie != \" \" %}
<div class=\"col-lg-12 content_post\">
{{categorie.textecategorie|raw}}
{% if categorie.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-primary py-3 px-5 mt-3 btn-plus\">Retour à la liste {{categorieTree[0].titre}}</a>
</div>
{% endif %}
{% elseif categorie.typelien != 1 %}
{% if categorie.typelien == '4' %}
<div class=\"text-center py-2\">
<a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '2' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lieninterne}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '3' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lienexterne}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
</div>
{% 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.fileName|slice(0, -4)}}\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>{{doc.fileName|slice(0, -4)}}</a>
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% endif %}
<div class=\"list_blocs {{position_texte}}\">
{% if categorie.actif_haut != 1 and categorie.positiontext != 1 %}
<div class=\"cnt_blocs\">
{% if categorie.chapeaucategorie !='' %}
<div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">{{categorie.chapeaucategorie}}</h2>
</div>
{% endif %}
{% if categorie.textecategorie is not empty and categorie.textecategorie != \"\" %}
<div class=\"col-lg-12 content_post\">
{{categorie.textecategorie|raw}}
{% if categorie.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-back-pulse\">Retour à la liste {{categorieTree[0].titre}}</a>
</div>
{% endif %}
{% elseif categorie.typelien != 1 %}
{% if categorie.typelien == '4' %}
<div class=\"text-center py-2\">
<a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-back-pulse\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '2' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lieninterne}}\" class=\"btn btn-back-pulse\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '3' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lienexterne}}\" class=\"btn btn-back-pulse\">{{categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
</div>
{% 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.fileName|slice(0, -4)}}\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>{{doc.fileName|slice(0, -4)}}</a>
{% endfor %}
</div>
{% endif %}
</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 %}
<div class=\"pagination-items\">
{% set paginator = posts %}
<div class=\"navigation text-center\">
<ul class=\"pagination\">
{% if paginator.hasPreviousPage %}
<li class=\"prev\"><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\"><span><i class=\"fa fw fa-long-arrow-left\"></i> {{ 'paginator.previous'|trans([],'variable') }}</span></li>
{% endif %}
{% for i in 1..paginator.lastPage %}
{% if i == paginator.currentPage %}
<li class=\"active number\"><span>{{ i }} </span></li>
{% else %}
<li class=\"number\"><a href=\"{{ path('page', {slug:categorie.slugurl,page: i }) }}\">{{ i }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.hasNextPage %}
<li class=\"next\"><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\"><span>{{ 'paginator.next'|trans([],'variable')}} <i class=\"fa fw fa-long-arrow-right\"></i></span></li>
{% endif %}
</ul>
</div>
</div>
{% endif %}
</div>
</div>
{% if categorie.actif_haut != 1 and categorie.positiontext == 1 %}
<div class=\"container-fluid wrapper\">
<div class=\"row mb-3 mt-2\">
{% if categorie.chapeaucategorie !='' %}
<div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">{{categorie.chapeaucategorie}}</h2>
</div>
{% endif %}
{% if categorie.image is defined and categorie.image is not empty %}
<div class=\"col-lg-12 py-5 d-flex justify-content-center\">
<div class=\"col-sm-12 col-md-6\">
<img class=\"img-fluid\" src=\"{{asset_image(categorie.image)}}\" alt=\"{{categorie.titrecategorie}}\" />
</div>
</div>
{% endif %}
{% if categorie.textecategorie is not empty and categorie.textecategorie != \" \" %}
<div class=\"col-lg-12 content_post\">
{{categorie.textecategorie|raw}}
{% if categorie.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-primary py-3 px-5 mt-3 btn-plus\">Retour à la liste {{categorieTree[0].titre}}</a>
</div>
{% endif %}
{% elseif categorie.typelien != 1 %}
{% if categorie.typelien == '4' %}
<div class=\"text-center py-2\">
<a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '2' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lieninterne}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '3' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lienexterne}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
</div>
{% 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.fileName|slice(0, -4)}}\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>{{doc.fileName|slice(0, -4)}}</a>
{% endfor %}
</div>
{% endif %}
{% endif %}
</div>
</div>
{% endif %}
{% if categorie.positiontext != 1 %}
{% if categorie.image is defined and categorie.image is not empty %}
<div class=\"col-lg-12 py-5 d-flex justify-content-center\">
<div class=\"col-sm-12 col-md-6\">
<img class=\"img-fluid\" src=\"{{asset_image(categorie.image)}}\" alt=\"{{categorie.titrecategorie}}\" />
</div>
</div>
{% endif %}
{% endif %}
{% 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>
{% 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/page_categorie.html.twig", "/var/www/vhosts/hrz.fr/abs-33-oscar.hrz.fr/templates/front/theme1/page_categorie.html.twig");
}
}