<?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']->AssetImageGalleryFunction(twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", false, false, false, 19)), "html", null, true);
echo "\" />
";
}
// line 21
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 22
echo " ";
}
// line 23
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 27
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 28
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
// line 29
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie", $context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.', 29, $this->source); })()), 0, [], "array", false, false, false, 29), "type", [], "any", false, false, false, 29) == 4)) {
// line 30
echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/flexslider/flexslider.css"), "html", null, true);
echo "\" media=\"screen\" >
";
}
// line 32
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["template"] ?? null), "css", [], "any", true, true, false, 32)) {
// line 33
echo " <style>
";
// line 34
echo twig_get_attribute($this->env, $this->source, (isset($context["template"]) || array_key_exists("template", $context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.', 34, $this->source); })()), "css", [], "any", false, false, false, 34);
echo "
</style>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 40
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 41
echo "
";
// line 42
$context["titre_page"] = 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); })()), "titrecategorie", [], "any", false, false, false, 42);
// line 43
echo "
";
// line 44
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.', 44, $this->source); })()), "imageBandeau", [], "any", false, false, false, 44)) {
// line 45
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.', 45, $this->source); })()), "imageBandeau", [], "any", false, false, false, 45);
// line 46
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.', 46, $this->source); })()), "imageBandeau", [], "any", false, false, false, 46)) {
// line 47
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.', 47, $this->source); })()), "imageBandeau", [], "any", false, false, false, 47));
// line 48
echo " ";
} else {
// line 49
echo " ";
$context["imagebandeau"] = "";
// line 50
echo " ";
}
// line 51
echo "
";
// line 52
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 52, $this->source); })()) != "")) {
// line 53
echo " <section class=\"image-bandeau text-center\">
<img alt=\"";
// line 54
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.', 54, $this->source); })()), "titrecategorie", [], "any", false, false, false, 54), "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.', 54, $this->source); })()), "titrecategorie", [], "any", false, false, false, 54), "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.', 54, $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 58
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo (isset($context["title_home_ariane"]) || array_key_exists("title_home_ariane", $context) ? $context["title_home_ariane"] : (function () { throw new RuntimeError('Variable "title_home_ariane" does not exist.', 58, $this->source); })());
echo "</span></a><meta itemprop=\"position\" content=\"1\" /></li>
";
// line 59
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.', 59, $this->source); })()), "slugurl", [], "any", false, false, false, 59)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_replace_filter(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.', 59, $this->source); })()), "titrecategorie", [], "any", false, false, false, 59), ["<span>" => " ", "</span>" => " "]), "html", null, true);
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo 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.', 59, $this->source); })()), "titrecategorie", [], "any", false, false, false, 59);
echo "</span></a><meta itemprop=\"position\" content=\"2\" /></li>";
}
// line 60
echo " <li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">";
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.', 60, $this->source); })()), "titrecategorie", [], "any", false, false, false, 60);
echo "</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">";
// line 62
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.', 62, $this->source); })()), "titrecategorie", [], "any", false, false, false, 62);
echo "</h1>
</div>
</div>
</section>
";
}
// line 67
echo "
<div class=\"page_cms pt-5 ";
// line 68
if ((array_key_exists("categorie", $context) && ((isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 68, $this->source); })()) != ""))) {
echo "page-categorie";
}
echo "\">
";
// line 69
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 69, $this->source); })()) == "")) {
// line 70
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 76
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo (isset($context["title_home_ariane"]) || array_key_exists("title_home_ariane", $context) ? $context["title_home_ariane"] : (function () { throw new RuntimeError('Variable "title_home_ariane" does not exist.', 76, $this->source); })());
echo "</span></a><meta itemprop=\"position\" content=\"1\" /></li>
";
// line 78
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.', 78, $this->source); })()), "slugurl", [], "any", false, false, false, 78)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_replace_filter(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.', 78, $this->source); })()), "titrecategorie", [], "any", false, false, false, 78), ["<span>" => " ", "</span>" => " "]), "html", null, true);
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo 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.', 78, $this->source); })()), "titrecategorie", [], "any", false, false, false, 78);
echo "</span></a><meta itemprop=\"position\" content=\"2\" /></li>";
}
// line 79
echo "
<li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">";
// line 81
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.', 81, $this->source); })()), "titrecategorie", [], "any", false, false, false, 81);
echo "</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">";
// line 83
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.', 83, $this->source); })()), "titrecategorie", [], "any", false, false, false, 83);
echo "</h1>
</div>
</div>
</div>
</div>
</div>
";
}
// line 90
echo "
";
// line 91
$context["position_texte"] = "";
// line 92
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.', 92, $this->source); })()), "positiontext", [], "any", false, false, false, 92) == 3)) {
// line 93
echo " ";
$context["position_texte"] = "pos3";
// line 94
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 94, $this->source); })()), "positiontext", [], "any", false, false, false, 94) == 2)) {
// line 95
echo " ";
$context["position_texte"] = "pos2";
// line 96
echo " ";
} else {
// line 97
echo " ";
$context["position_texte"] = "pos1";
// line 98
echo " ";
}
// line 99
echo "
";
// line 100
$context["type_affiche"] = "";
// line 101
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.', 101, $this->source); })()), "nombrearticle", [], "any", false, false, false, 101) == 1)) {
// line 102
echo " ";
$context["type_affiche"] = "type_affiche1";
// line 103
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.', 103, $this->source); })()), "nombrearticle", [], "any", false, false, false, 103) == 2)) {
// line 104
echo " ";
$context["type_affiche"] = "type_affiche2";
// line 105
echo " ";
} else {
// line 106
echo " ";
$context["type_affiche"] = "type_affiche3";
// line 107
echo " ";
}
// line 108
echo "
";
// line 109
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.', 109, $this->source); })()), "actif_slider", [], "any", false, false, false, 109) == 1)) {
// line 110
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.', 110, $this->source); })()) . " owl-carousel");
// line 111
echo " ";
}
// line 112
echo "
";
// line 113
$context["multi_affichage"] = "affichage1";
// line 114
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 " ";
} 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.', 137, $this->source); })()), "multi_affichage", [], "any", false, false, false, 137) == 12)) {
// line 138
echo " ";
$context["multi_affichage"] = "affichage12";
// line 139
echo " ";
}
// line 140
echo "
";
// line 141
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.', 141, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 141) != "") || !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.', 141, $this->source); })()), "image", [], "any", false, false, false, 141))) || ( !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.', 141, $this->source); })()), "textecategorie", [], "any", false, false, false, 141)) && (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.', 141, $this->source); })()), "textecategorie", [], "any", false, false, false, 141) != " "))) || !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 141, $this->source); })()))) || !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 141, $this->source); })()))) || !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.', 141, $this->source); })()), "urlvideo", [], "any", false, false, false, 141))) || (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.', 141, $this->source); })()))))) {
// line 142
echo " <section class=\"content-page\">
";
// line 143
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.', 143, $this->source); })()), "actif_haut", [], "any", false, false, false, 143) == 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.', 143, $this->source); })()), "positiontext", [], "any", false, false, false, 143) != 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.', 143, $this->source); })()), "positiontext", [], "any", false, false, false, 143) != 3))) {
// line 144
echo " <div class=\"container-fluid wrapper\">
<div id=\"bloc-texte-principal\" class=\"row mb-3 mt-2\">
";
// line 146
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.', 146, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 146) != "")) {
// line 147
echo " <div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">";
// line 148
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.', 148, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 148), "html", null, true);
echo "</h2>
</div>
";
}
// line 151
echo "
";
// line 152
if ((twig_get_attribute($this->env, $this->source, ($context["categorie"] ?? null), "image", [], "any", true, true, false, 152) && !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.', 152, $this->source); })()), "image", [], "any", false, false, false, 152)))) {
// line 153
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 155
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.', 155, $this->source); })()), "image", [], "any", false, false, false, 155)), "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.', 155, $this->source); })()), "titrecategorie", [], "any", false, false, false, 155), "html", null, true);
echo "\" />
</div>
</div>
";
}
// line 159
echo "
";
// line 160
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.', 160, $this->source); })()), "textecategorie", [], "any", false, false, false, 160)) && (twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 160, $this->source); })()), "textecategorie", [], "any", false, false, false, 160) != " "))) {
// line 161
echo " <div class=\"col-lg-12 content_post\">
<div class=\"texte-content\">";
// line 162
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.', 162, $this->source); })()), "textecategorie", [], "any", false, false, false, 162);
echo "</div>
</div>
";
}
// line 165
echo "
";
// line 166
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) == null)) {
// line 167
echo " ";
if ((array_key_exists("categorieTree", $context) && twig_get_attribute($this->env, $this->source, ($context["categorieTree"] ?? null), 0, [], "array", true, true, false, 167))) {
// line 168
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"";
// line 169
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.', 169, $this->source); })()), 0, [], "array", false, false, false, 169), "slug", [], "any", false, false, false, 169)]), "html", null, true);
echo "\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">Retour à la liste ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 169, $this->source); })()), 0, [], "array", false, false, false, 169), "titre", [], "any", false, false, false, 169), "html", null, true);
echo "</a>
</div>
";
}
// line 171
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 172
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 172, $this->source); })()), "typelien", [], "any", false, false, false, 172) != 1)) {
// line 173
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.', 173, $this->source); })()), "typelien", [], "any", false, false, false, 173) == "4")) {
// line 174
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"tel:";
// line 175
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.', 175, $this->source); })()), "telephone", [], "any", false, false, false, 175), "html", null, true);
echo "\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 175, $this->source); })()), "titrelien", [], "any", false, false, false, 175), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 177
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 177, $this->source); })()), "typelien", [], "any", false, false, false, 177) == "2")) {
// line 178
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"";
// line 179
echo twig_escape_filter($this->env, $this->extensions['App\Twig\FunctionExtension']->slugLinkInterneFunction(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 179, $this->source); })()), "lieninterne", [], "any", false, false, false, 179)), "html", null, true);
echo "\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 179, $this->source); })()), "titrelien", [], "any", false, false, false, 179), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 181
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 181, $this->source); })()), "typelien", [], "any", false, false, false, 181) == "3")) {
// line 182
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"";
// line 183
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.', 183, $this->source); })()), "lienexterne", [], "any", false, false, false, 183), "html", null, true);
echo "\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 183, $this->source); })()), "titrelien", [], "any", false, false, false, 183), "html", null, true);
echo "</a>
</div>
";
}
// line 186
echo " ";
}
// line 187
echo "
";
// line 188
if (((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 188, $this->source); })()) && !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 188, $this->source); })())))) {
// line 189
echo " <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
";
// line 190
$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.', 190, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 191
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, 191) . twig_get_attribute($this->env, $this->source, $context["doc"], "path", [], "any", false, false, false, 191)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 191)), "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, 191), 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, 191), 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 193
echo " </div>
";
}
// line 195
echo "
</div>
</div>
";
}
// line 199
echo "
<div class=\"list_blocs ";
// line 200
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.', 200, $this->source); })()), "html", null, true);
echo "\">
";
// line 201
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.', 201, $this->source); })()), "positiontext", [], "any", false, false, false, 201) != 1)) {
// line 202
echo " <div class=\"cnt_blocs\">
";
// line 203
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.', 203, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 203) != "")) {
// line 204
echo " <div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">";
// line 205
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.', 205, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 205), "html", null, true);
echo "</h2>
</div>
";
}
// line 208
echo "
";
// line 209
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.', 209, $this->source); })()), "textecategorie", [], "any", false, false, false, 209)) && (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.', 209, $this->source); })()), "textecategorie", [], "any", false, false, false, 209) != ""))) {
// line 210
echo " <div class=\"col-lg-12 content_post\">
<div class=\"texte-content\">";
// line 211
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.', 211, $this->source); })()), "textecategorie", [], "any", false, false, false, 211);
echo "</div>
</div>
";
}
// line 214
echo "
";
// line 215
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.', 215, $this->source); })()), "typelien", [], "any", false, false, false, 215) == null)) {
// line 216
echo " ";
if ((array_key_exists("categorieTree", $context) && twig_get_attribute($this->env, $this->source, ($context["categorieTree"] ?? null), 0, [], "array", true, true, false, 216))) {
// line 217
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"";
// line 218
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.', 218, $this->source); })()), 0, [], "array", false, false, false, 218), "slug", [], "any", false, false, false, 218)]), "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.', 218, $this->source); })()), 0, [], "array", false, false, false, 218), "titre", [], "any", false, false, false, 218), "html", null, true);
echo "</a>
</div>
";
}
// line 220
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 221
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 221, $this->source); })()), "typelien", [], "any", false, false, false, 221) != 1)) {
// line 222
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.', 222, $this->source); })()), "typelien", [], "any", false, false, false, 222) == "4")) {
// line 223
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"tel:";
// 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); })()), "telephone", [], "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>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 226
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 226, $this->source); })()), "typelien", [], "any", false, false, false, 226) == "2")) {
// line 227
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"";
// line 228
echo twig_escape_filter($this->env, $this->extensions['App\Twig\FunctionExtension']->slugLinkInterneFunction(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 228, $this->source); })()), "lieninterne", [], "any", false, false, false, 228)), "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.', 228, $this->source); })()), "titrelien", [], "any", false, false, false, 228), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 230
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 230, $this->source); })()), "typelien", [], "any", false, false, false, 230) == "3")) {
// line 231
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"";
// line 232
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.', 232, $this->source); })()), "lienexterne", [], "any", false, false, false, 232), "html", null, true);
echo "\" class=\"btn btn-back-pulse\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 232, $this->source); })()), "titrelien", [], "any", false, false, false, 232), "html", null, true);
echo "</a>
</div>
";
}
// line 235
echo " ";
}
// line 236
echo "
";
// line 237
if (((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 237, $this->source); })()) && !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 237, $this->source); })())))) {
// line 238
echo " <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
";
// line 239
$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.', 239, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 240
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, 240) . twig_get_attribute($this->env, $this->source, $context["doc"], "path", [], "any", false, false, false, 240)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 240)), "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, 240), 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, 240), 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 242
echo " </div>
";
}
// line 244
echo "
</div>
";
}
// line 248
echo " <div class=\"blocs\">
";
// line 250
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.', 250, $this->source); })())))) {
// line 251
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.', 251, $this->source); })()), "twig", [], "any", false, false, false, 251)));
echo "
";
}
// line 253
echo "
";
// line 254
if (((((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 254, $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.', 254, $this->source); })()), "hasToPaginate", [], "any", false, false, false, 254)) && 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.', 254, $this->source); })()), "pageSize", [], "any", false, false, false, 254))) {
// line 255
echo " <div class=\"pagination-items\">
";
// line 256
$context["paginator"] = (isset($context["posts"]) || array_key_exists("posts", $context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.', 256, $this->source); })());
// line 257
echo " <div class=\"navigation text-center\">
<ul class=\"pagination d-felx justify-content-center my-4\">
";
// line 259
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.', 259, $this->source); })()), "hasPreviousPage", [], "any", false, false, false, 259)) {
// line 260
echo " <li class=\"prev mx-1\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 260, $this->source); })()), "slugurl", [], "any", false, false, false, 260)]), "html", null, true);
echo "?page=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 260, $this->source); })()), "previousPage", [], "any", false, false, false, 260), "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 262
echo " <li class=\"prev disabled mx-1\"><span><i class=\"fa fw fa-long-arrow-left\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.previous", [], "variable"), "html", null, true);
echo "</span></li>
";
}
// line 264
echo " ";
if (((isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 264, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 264, $this->source); })()), "pageSize", [], "any", false, false, false, 264))) {
// line 265
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 265, $this->source); })()), "lastPage", [], "any", false, false, false, 265)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 266
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.', 266, $this->source); })()), "currentPage", [], "any", false, false, false, 266))) {
// line 267
echo " <li class=\"active number mx-1\"><span>";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo " </span></li>
";
} else {
// line 269
echo " <li class=\"number mx-1\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 269, $this->source); })()), "slugurl", [], "any", false, false, false, 269)]), "html", null, true);
echo "?page=";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a></li>
";
}
// line 271
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 272
echo " ";
}
// line 273
echo "
";
// line 274
if (((isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 274, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 274, $this->source); })()), "pageSize", [], "any", false, false, false, 274))) {
// line 275
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 275, $this->source); })()), "hasNextPage", [], "any", false, false, false, 275)) {
// line 276
echo " <li class=\"next mx-1\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 276, $this->source); })()), "slugurl", [], "any", false, false, false, 276)]), "html", null, true);
echo "?page=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 276, $this->source); })()), "nextPage", [], "any", false, false, false, 276), "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 278
echo " <li class=\"next disabled mx-1\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.next", [], "variable"), "html", null, true);
echo " <i class=\"fa fw fa-long-arrow-right\"></i></span></li>
";
}
// line 280
echo " ";
}
// line 281
echo "
</ul>
</div>
</div>
";
}
// line 286
echo " </div>
</div>
";
// line 289
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.', 289, $this->source); })()), "actif_haut", [], "any", false, false, false, 289) != 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.', 289, $this->source); })()), "positiontext", [], "any", false, false, false, 289) == 1))) {
// line 290
echo " <div class=\"container-fluid wrapper\">
<div id=\"bloc-texte-principal\" class=\"row mb-3 mt-2\">
";
// line 292
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.', 292, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 292) != "")) {
// line 293
echo " <div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">";
// line 294
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.', 294, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 294), "html", null, true);
echo "</h2>
</div>
";
}
// line 297
echo "
";
// line 298
if ((twig_get_attribute($this->env, $this->source, ($context["categorie"] ?? null), "image", [], "any", true, true, false, 298) && !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.', 298, $this->source); })()), "image", [], "any", false, false, false, 298)))) {
// line 299
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 301
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.', 301, $this->source); })()), "image", [], "any", false, false, false, 301)), "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.', 301, $this->source); })()), "titrecategorie", [], "any", false, false, false, 301), "html", null, true);
echo "\" />
</div>
</div>
";
}
// line 305
echo "
";
// line 306
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.', 306, $this->source); })()), "textecategorie", [], "any", false, false, false, 306)) && (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); })()), "textecategorie", [], "any", false, false, false, 306) != " "))) {
// line 307
echo " <div class=\"col-lg-12 content_post\">
<div class=\"texte-content\">";
// line 308
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.', 308, $this->source); })()), "textecategorie", [], "any", false, false, false, 308);
echo "</div>
</div>
";
}
// line 311
echo "
";
// line 312
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.', 312, $this->source); })()), "typelien", [], "any", false, false, false, 312) == null)) {
// line 313
echo " ";
if ((array_key_exists("categorieTree", $context) && twig_get_attribute($this->env, $this->source, ($context["categorieTree"] ?? null), 0, [], "array", true, true, false, 313))) {
// line 314
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"";
// line 315
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.', 315, $this->source); })()), 0, [], "array", false, false, false, 315), "slug", [], "any", false, false, false, 315)]), "html", null, true);
echo "\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">Retour à la liste ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 315, $this->source); })()), 0, [], "array", false, false, false, 315), "titre", [], "any", false, false, false, 315), "html", null, true);
echo "</a>
</div>
";
}
// line 317
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 318
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 318, $this->source); })()), "typelien", [], "any", false, false, false, 318) != 1)) {
// line 319
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.', 319, $this->source); })()), "typelien", [], "any", false, false, false, 319) == "4")) {
// line 320
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"tel:";
// line 321
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.', 321, $this->source); })()), "telephone", [], "any", false, false, false, 321), "html", null, true);
echo "\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 321, $this->source); })()), "titrelien", [], "any", false, false, false, 321), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 323
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 323, $this->source); })()), "typelien", [], "any", false, false, false, 323) == "2")) {
// line 324
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"";
// line 325
echo twig_escape_filter($this->env, $this->extensions['App\Twig\FunctionExtension']->slugLinkInterneFunction(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 325, $this->source); })()), "lieninterne", [], "any", false, false, false, 325)), "html", null, true);
echo "\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 325, $this->source); })()), "titrelien", [], "any", false, false, false, 325), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 327
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 327, $this->source); })()), "typelien", [], "any", false, false, false, 327) == "3")) {
// line 328
echo " <div class=\"text-center py-2 bouton-categorie\">
<a href=\"";
// line 329
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.', 329, $this->source); })()), "lienexterne", [], "any", false, false, false, 329), "html", null, true);
echo "\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 329, $this->source); })()), "titrelien", [], "any", false, false, false, 329), "html", null, true);
echo "</a>
</div>
";
}
// line 332
echo " ";
}
// line 333
echo "
";
// line 334
if (((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 334, $this->source); })()) && !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 334, $this->source); })())))) {
// line 335
echo " <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
";
// line 336
$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.', 336, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 337
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, 337) . twig_get_attribute($this->env, $this->source, $context["doc"], "path", [], "any", false, false, false, 337)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 337)), "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, 337), 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, 337), 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 339
echo " </div>
";
}
// line 341
echo "
</div>
</div>
";
}
// line 345
echo "
";
// line 346
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.', 346, $this->source); })()), "positiontext", [], "any", false, false, false, 346) != 1)) {
// line 347
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["categorie"] ?? null), "image", [], "any", true, true, false, 347) && !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.', 347, $this->source); })()), "image", [], "any", false, false, false, 347)))) {
// line 348
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 350
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.', 350, $this->source); })()), "image", [], "any", false, false, false, 350)), "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.', 350, $this->source); })()), "titrecategorie", [], "any", false, false, false, 350), "html", null, true);
echo "\" />
</div>
</div>
";
}
// line 354
echo " ";
}
// line 355
echo "
";
// line 356
if (((((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 356, $this->source); })()) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 356, $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.', 356, $this->source); })())))) {
// line 357
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.', 357, $this->source); })())));
echo "
";
}
// line 359
echo "
";
// line 360
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.', 360, $this->source); })()), "urlvideo", [], "any", false, false, false, 360))) {
// line 361
echo " <div class=\"container-fluid wrapper mt-3\">
<div class=\"col-md-12 mt-1\">
<div class=\"video\">
";
// line 364
$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.', 364, $this->source); })()), "urlvideo", [], "any", false, false, false, 364), "?v="), 1, [], "array", true, true, false, 364)) ? (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.', 364, $this->source); })()), "urlvideo", [], "any", false, false, false, 364), "?v="), 1, [], "array", false, false, false, 364)) : (null));
// line 365
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.', 365, $this->source); })()), "urlvideo", [], "any", false, false, false, 365), "html", null, true);
echo "\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/";
// line 366
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.', 366, $this->source); })()), "html", null, true);
echo "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
</a>
</div>
</div>
</div>
";
}
// line 372
echo "
</section>
";
}
// line 375
echo "
";
// line 376
if (array_key_exists("blocs", $context)) {
// line 377
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.', 377, $this->source); })()), "Bloc", [], "any", false, false, false, 377));
foreach ($context['_seq'] as $context["_key"] => $context["bloc"]) {
// line 378
echo " ";
if (($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && (twig_get_attribute($this->env, $this->source, $context["bloc"], "mobile", [], "any", false, false, false, 378) == true))) {
// line 379
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.', 379, $this->source); })()), "request", [], "any", false, false, false, 379), "server", [], "any", false, false, false, 379), "get", [0 => "APP_THEME"], "method", false, false, false, 379)) . "/bloc/bloc.html.twig"), ["bloc" => // line 380
$context["bloc"]], false);
// line 381
echo "
";
}
// line 383
echo "
";
// line 384
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, 384) == true))) {
// line 385
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.', 385, $this->source); })()), "request", [], "any", false, false, false, 385), "server", [], "any", false, false, false, 385), "get", [0 => "APP_THEME"], "method", false, false, false, 385)) . "/bloc/bloc.html.twig"), ["bloc" => // line 386
$context["bloc"]], false);
// line 387
echo "
";
}
// line 389
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 390
echo " ";
}
echo "
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 395
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 396
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 397
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.', 397, $this->source); })()), 0, [], "array", false, false, false, 397), "type", [], "any", false, false, false, 397) == 4)) {
// line 398
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 422
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 ( 1204 => 422, 1176 => 398, 1174 => 397, 1169 => 396, 1159 => 395, 1144 => 390, 1138 => 389, 1134 => 387, 1132 => 386, 1130 => 385, 1128 => 384, 1125 => 383, 1121 => 381, 1119 => 380, 1117 => 379, 1114 => 378, 1109 => 377, 1107 => 376, 1104 => 375, 1099 => 372, 1090 => 366, 1085 => 365, 1083 => 364, 1078 => 361, 1076 => 360, 1073 => 359, 1067 => 357, 1065 => 356, 1062 => 355, 1059 => 354, 1050 => 350, 1046 => 348, 1043 => 347, 1041 => 346, 1038 => 345, 1032 => 341, 1028 => 339, 1015 => 337, 1011 => 336, 1008 => 335, 1006 => 334, 1003 => 333, 1000 => 332, 992 => 329, 989 => 328, 987 => 327, 980 => 325, 977 => 324, 975 => 323, 968 => 321, 965 => 320, 962 => 319, 960 => 318, 957 => 317, 949 => 315, 946 => 314, 943 => 313, 941 => 312, 938 => 311, 932 => 308, 929 => 307, 927 => 306, 924 => 305, 915 => 301, 911 => 299, 909 => 298, 906 => 297, 900 => 294, 897 => 293, 895 => 292, 891 => 290, 889 => 289, 884 => 286, 877 => 281, 874 => 280, 868 => 278, 858 => 276, 855 => 275, 853 => 274, 850 => 273, 847 => 272, 841 => 271, 831 => 269, 825 => 267, 822 => 266, 817 => 265, 814 => 264, 808 => 262, 798 => 260, 796 => 259, 792 => 257, 790 => 256, 787 => 255, 785 => 254, 782 => 253, 776 => 251, 774 => 250, 770 => 248, 764 => 244, 760 => 242, 747 => 240, 743 => 239, 740 => 238, 738 => 237, 735 => 236, 732 => 235, 724 => 232, 721 => 231, 719 => 230, 712 => 228, 709 => 227, 707 => 226, 700 => 224, 697 => 223, 694 => 222, 692 => 221, 689 => 220, 681 => 218, 678 => 217, 675 => 216, 673 => 215, 670 => 214, 664 => 211, 661 => 210, 659 => 209, 656 => 208, 650 => 205, 647 => 204, 645 => 203, 642 => 202, 640 => 201, 636 => 200, 633 => 199, 627 => 195, 623 => 193, 610 => 191, 606 => 190, 603 => 189, 601 => 188, 598 => 187, 595 => 186, 587 => 183, 584 => 182, 582 => 181, 575 => 179, 572 => 178, 570 => 177, 563 => 175, 560 => 174, 557 => 173, 555 => 172, 552 => 171, 544 => 169, 541 => 168, 538 => 167, 536 => 166, 533 => 165, 527 => 162, 524 => 161, 522 => 160, 519 => 159, 510 => 155, 506 => 153, 504 => 152, 501 => 151, 495 => 148, 492 => 147, 490 => 146, 486 => 144, 484 => 143, 481 => 142, 479 => 141, 476 => 140, 473 => 139, 470 => 138, 467 => 137, 464 => 136, 461 => 135, 458 => 134, 455 => 133, 452 => 132, 449 => 131, 446 => 130, 443 => 129, 440 => 128, 437 => 127, 434 => 126, 431 => 125, 428 => 124, 425 => 123, 422 => 122, 419 => 121, 416 => 120, 413 => 119, 410 => 118, 407 => 117, 404 => 116, 402 => 115, 399 => 114, 397 => 113, 394 => 112, 391 => 111, 388 => 110, 386 => 109, 383 => 108, 380 => 107, 377 => 106, 374 => 105, 371 => 104, 368 => 103, 365 => 102, 362 => 101, 360 => 100, 357 => 99, 354 => 98, 351 => 97, 348 => 96, 345 => 95, 342 => 94, 339 => 93, 336 => 92, 334 => 91, 331 => 90, 321 => 83, 316 => 81, 312 => 79, 302 => 78, 295 => 76, 287 => 70, 285 => 69, 279 => 68, 276 => 67, 268 => 62, 262 => 60, 252 => 59, 246 => 58, 235 => 54, 232 => 53, 230 => 52, 227 => 51, 224 => 50, 221 => 49, 218 => 48, 215 => 47, 212 => 46, 209 => 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_gallery(item.path)}}\" />
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}
{% block stylesheets %}
{{parent()}}
{% if modele_galerie[0].type == 4 %}
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{asset('templates/front/theme1/assets/plugins/flexslider/flexslider.css')}}\" media=\"screen\" >
{% endif %}
{% if template.css is defined %}
<style>
{{template.css|raw}}
</style>
{% endif %}
{% endblock %}
{% block body %}
{% set titre_page = categorie.titrecategorie %}
{% 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\">{{title_home_ariane|raw}}</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|replace({'<span>':' ','</span>':' '})}}\" itemprop=\"item\"><span itemprop=\"name\">{{categorieParent.titrecategorie|raw}}</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|raw}}</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">{{categorie.titrecategorie|raw}}</h1>
</div>
</div>
</section>
{% endif %}
<div class=\"page_cms pt-5 {% if categorie is defined and categorie != \"\" %}page-categorie{% endif %}\">
{% 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\">{{title_home_ariane|raw}}</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|replace({'<span>':' ','</span>':' '})}}\" itemprop=\"item\"><span itemprop=\"name\">{{categorieParent.titrecategorie|raw}}</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|raw}}</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">{{categorie.titrecategorie|raw}}</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 %}
{% set multi_affichage = \"affichage1\" %}
{% if categorie.multi_affichage == 1 %}
{% set multi_affichage = \"affichage1\" %}
{% elseif categorie.multi_affichage == 2 %}
{% set multi_affichage = \"affichage2\" %}
{% elseif categorie.multi_affichage == 3 %}
{% set multi_affichage = \"affichage3\" %}
{% elseif categorie.multi_affichage == 4 %}
{% set multi_affichage = \"affichage4\" %}
{% elseif categorie.multi_affichage == 5 %}
{% set multi_affichage = \"affichage5\" %}
{% elseif categorie.multi_affichage == 6 %}
{% set multi_affichage = \"affichage6\" %}
{% elseif categorie.multi_affichage == 7 %}
{% set multi_affichage = \"affichage7\" %}
{% elseif categorie.multi_affichage == 8 %}
{% set multi_affichage = \"affichage8\" %}
{% elseif categorie.multi_affichage == 9 %}
{% set multi_affichage = \"affichage9\" %}
{% elseif categorie.multi_affichage == 10 %}
{% set multi_affichage = \"affichage10\" %}
{% elseif categorie.multi_affichage == 11 %}
{% set multi_affichage = \"affichage11\" %}
{% elseif categorie.multi_affichage == 12 %}
{% set multi_affichage = \"affichage12\" %}
{% endif %}
{% if categorie.chapeaucategorie !='' or categorie.image is not empty or (categorie.textecategorie is not empty and categorie.textecategorie != \" \") or docs is not empty or galleries is not empty or categorie.urlvideo is not empty or (resultats is defined and resultats is not empty) %}
<section class=\"content-page\">
{% if categorie.actif_haut == 1 and categorie.positiontext != 2 and categorie.positiontext != 3 %}
<div class=\"container-fluid wrapper\">
<div id=\"bloc-texte-principal\" 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\">
<div class=\"texte-content\">{{categorie.textecategorie|raw}}</div>
</div>
{% endif %}
{% if categorie.typelien == null %}
{% if categorieTree is defined and categorieTree[0] is defined %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"{{path('page',{slug:categorieTree[0].slug})}}\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">Retour à la liste {{categorieTree[0].titre}}</a>
</div>
{% endif %}
{% elseif categorie.typelien != 1 %}
{% if categorie.typelien == '4' %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '2' %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"{{slug_link_interne(categorie.lieninterne)}}\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '3' %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"{{categorie.lienexterne}}\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\" target=\"_blank\">{{categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
{% if docs and docs is not empty %}
<div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
{% for doc in docs %}
<a class=\"btn-back-pulse m-2\" href=\"{{doc.location ~ doc.path ~ '/' ~ doc.fileName}}\" title=\"{{doc.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.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\">
<div class=\"texte-content\">{{categorie.textecategorie|raw}}</div>
</div>
{% endif %}
{% if categorie.typelien == null %}
{% if categorieTree is defined and categorieTree[0] is defined %}
<div class=\"text-center py-2 bouton-categorie\">
<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 bouton-categorie\">
<a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-back-pulse\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '2' %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"{{slug_link_interne(categorie.lieninterne)}}\" class=\"btn btn-back-pulse\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '3' %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"{{categorie.lienexterne}}\" class=\"btn btn-back-pulse\" target=\"_blank\">{{categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
{% 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 and posts.pageSize %}
<div class=\"pagination-items\">
{% set paginator = posts %}
<div class=\"navigation text-center\">
<ul class=\"pagination d-felx justify-content-center my-4\">
{% if paginator.hasPreviousPage %}
<li class=\"prev mx-1\"><a href=\"{{ path('page', {slug:categorie.slugurl}) }}?page={{paginator.previousPage}}\" rel=\"previous\"><i class=\"fa fw fa-long-arrow-left\"></i> {{ 'paginator.previous'|trans([],'variable') }}</a></li>
{% else %}
<li class=\"prev disabled mx-1\"><span><i class=\"fa fw fa-long-arrow-left\"></i> {{ 'paginator.previous'|trans([],'variable') }}</span></li>
{% endif %}
{% if paginator and paginator.pageSize %}
{% for i in 1..paginator.lastPage %}
{% if i == paginator.currentPage %}
<li class=\"active number mx-1\"><span>{{ i }} </span></li>
{% else %}
<li class=\"number mx-1\"><a href=\"{{ path('page', {slug:categorie.slugurl}) }}?page={{i}}\">{{ i }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
{% if paginator and paginator.pageSize %}
{% if paginator.hasNextPage %}
<li class=\"next mx-1\"><a href=\"{{ path('page', {slug:categorie.slugurl}) }}?page={{paginator.nextPage}}\" rel=\"next\">{{ 'paginator.next'|trans([],'variable') }} <i class=\"fa fw fa-long-arrow-right\"></i></a></li>
{% else %}
<li class=\"next disabled mx-1\"><span>{{ 'paginator.next'|trans([],'variable')}} <i class=\"fa fw fa-long-arrow-right\"></i></span></li>
{% endif %}
{% endif %}
</ul>
</div>
</div>
{% endif %}
</div>
</div>
{% if categorie.actif_haut != 1 and categorie.positiontext == 1 %}
<div class=\"container-fluid wrapper\">
<div id=\"bloc-texte-principal\" 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\">
<div class=\"texte-content\">{{categorie.textecategorie|raw}}</div>
</div>
{% endif %}
{% if categorie.typelien == null %}
{% if categorieTree is defined and categorieTree[0] is defined %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"{{path('page',{slug:categorieTree[0].slug})}}\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">Retour à la liste {{categorieTree[0].titre}}</a>
</div>
{% endif %}
{% elseif categorie.typelien != 1 %}
{% if categorie.typelien == '4' %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '2' %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"{{slug_link_interne(categorie.lieninterne)}}\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '3' %}
<div class=\"text-center py-2 bouton-categorie\">
<a href=\"{{categorie.lienexterne}}\" class=\"btn btn-cms py-3 px-5 mt-3 btn-plus\" target=\"_blank\">{{categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
{% if docs and docs is not empty %}
<div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
{% for doc in docs %}
<a class=\"btn-back-pulse m-2\" href=\"{{doc.location ~ doc.path ~ '/' ~ doc.fileName}}\" title=\"{{doc.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 %}
{% 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 %}
</section>
{% 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/oscar-multilangue.hrz.fr/templates/front/theme1/page_categorie.html.twig");
}
}