<?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_64b7d2acbf279b588ae5b1f1a7457570 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/page_categorie.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/page_categorie.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_preload($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preload"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preload"));
// line 4
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["categorie"] ?? null), "image", [], "any", true, true, false, 4) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 4, $this->source); })()), "image", [], "any", false, false, false, 4)))) {
// line 5
echo " <link rel=\"preload\" as=\"image\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 5, $this->source); })()), "image", [], "any", false, false, false, 5)), "html", null, true);
echo "\" />
";
}
// line 7
echo "
";
// line 8
if ((array_key_exists("resultats", $context) && !twig_test_empty((isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 8, $this->source); })())))) {
// line 9
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 9, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 10
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "image", [], "any", false, false, false, 10)) {
// line 11
echo " <link rel=\"preload\" as=\"image\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, $context["item"], "image", [], "any", false, false, false, 11)), "html", null, true);
echo "\" />
";
}
// line 13
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "
";
}
// line 15
echo "
";
// line 16
if ((array_key_exists("galleries", $context) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 16, $this->source); })())))) {
// line 17
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 17, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 18
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", true, true, false, 18)) {
// line 19
echo " <link rel=\"preload\" as=\"image\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", false, false, false, 19)), "html", null, true);
echo "\" />
";
}
// line 21
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 22
echo " ";
}
// line 23
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 27
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 40
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 41
echo "
";
// line 42
if (twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 42, $this->source); })()), "imageBandeau", [], "any", false, false, false, 42)) {
// line 43
echo " ";
$context["imagebandeau"] = twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 43, $this->source); })()), "imageBandeau", [], "any", false, false, false, 43);
// line 44
echo " ";
} elseif (twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 44, $this->source); })()), "imageBandeau", [], "any", false, false, false, 44)) {
// line 45
echo " ";
$context["imagebandeau"] = ("uploads/images/" . twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 45, $this->source); })()), "imageBandeau", [], "any", false, false, false, 45));
// line 46
echo " ";
} else {
// line 47
echo " ";
$context["imagebandeau"] = "";
// line 48
echo " ";
}
// line 49
echo "
";
// line 50
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 50, $this->source); })()) != "")) {
// line 51
echo " <section class=\"image-bandeau text-center\">
<img alt=\"";
// line 52
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 52, $this->source); })()), "titrecategorie", [], "any", false, false, false, 52), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 52, $this->source); })()), "titrecategorie", [], "any", false, false, false, 52), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 52, $this->source); })())), "html", null, true);
echo "\" />
<div class=\"cnt-bandeau text-center\">
\t\t\t\t<div class=\"container-fluid wrapper\">
<ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
// line 56
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, (isset($context["title_home_ariane"]) || array_key_exists("title_home_ariane", $context) ? $context["title_home_ariane"] : (function () { throw new RuntimeError('Variable "title_home_ariane" does not exist.', 56, $this->source); })()), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"1\" /></li>
";
// line 58
if (array_key_exists("categorieParent", $context)) {
echo "<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorieParent"]) || array_key_exists("categorieParent", $context) ? $context["categorieParent"] : (function () { throw new RuntimeError('Variable "categorieParent" does not exist.', 58, $this->source); })()), "slugurl", [], "any", false, false, false, 58)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorieParent"]) || array_key_exists("categorieParent", $context) ? $context["categorieParent"] : (function () { throw new RuntimeError('Variable "categorieParent" does not exist.', 58, $this->source); })()), "titrecategorie", [], "any", false, false, false, 58), "html", null, true);
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorieParent"]) || array_key_exists("categorieParent", $context) ? $context["categorieParent"] : (function () { throw new RuntimeError('Variable "categorieParent" does not exist.', 58, $this->source); })()), "titrecategorie", [], "any", false, false, false, 58), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"2\" /></li>";
}
// line 59
echo "
<li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 61, $this->source); })()), "titrecategorie", [], "any", false, false, false, 61), "html", null, true);
echo "</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">";
// line 63
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 63, $this->source); })()), "titrecategorie", [], "any", false, false, false, 63), "html", null, true);
echo "</h1>
</div>
</div>
</section>
";
}
// line 68
echo "
<div class=\"page_cms pt-5\">
";
// line 70
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 70, $this->source); })()) == "")) {
// line 71
echo " <div class=\"container-fluid wrapper\">
<div class=\"breadcrumb-style-default\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
<ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
// line 77
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, (isset($context["title_home_ariane"]) || array_key_exists("title_home_ariane", $context) ? $context["title_home_ariane"] : (function () { throw new RuntimeError('Variable "title_home_ariane" does not exist.', 77, $this->source); })()), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"1\" /></li>
";
// line 79
if (array_key_exists("categorieParent", $context)) {
echo "<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorieParent"]) || array_key_exists("categorieParent", $context) ? $context["categorieParent"] : (function () { throw new RuntimeError('Variable "categorieParent" does not exist.', 79, $this->source); })()), "slugurl", [], "any", false, false, false, 79)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorieParent"]) || array_key_exists("categorieParent", $context) ? $context["categorieParent"] : (function () { throw new RuntimeError('Variable "categorieParent" does not exist.', 79, $this->source); })()), "titrecategorie", [], "any", false, false, false, 79), "html", null, true);
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorieParent"]) || array_key_exists("categorieParent", $context) ? $context["categorieParent"] : (function () { throw new RuntimeError('Variable "categorieParent" does not exist.', 79, $this->source); })()), "titrecategorie", [], "any", false, false, false, 79), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"2\" /></li>";
}
// line 80
echo "
<li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">";
// line 82
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 82, $this->source); })()), "titrecategorie", [], "any", false, false, false, 82), "html", null, true);
echo "</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">";
// line 84
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 84, $this->source); })()), "titrecategorie", [], "any", false, false, false, 84), "html", null, true);
echo "</h1>
</div>
</div>
</div>
</div>
</div>
";
}
// line 91
echo "
";
// line 92
$context["position_texte"] = "";
// line 93
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 93, $this->source); })()), "positiontext", [], "any", false, false, false, 93) == 3)) {
// line 94
echo " ";
$context["position_texte"] = "pos3";
// line 95
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 95, $this->source); })()), "positiontext", [], "any", false, false, false, 95) == 2)) {
// line 96
echo " ";
$context["position_texte"] = "pos2";
// line 97
echo " ";
} else {
// line 98
echo " ";
$context["position_texte"] = "pos1";
// line 99
echo " ";
}
// line 100
echo "
";
// line 101
$context["type_affiche"] = "";
// line 102
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 102, $this->source); })()), "nombrearticle", [], "any", false, false, false, 102) == 1)) {
// line 103
echo " ";
$context["type_affiche"] = "type_affiche1";
// line 104
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 104, $this->source); })()), "nombrearticle", [], "any", false, false, false, 104) == 2)) {
// line 105
echo " ";
$context["type_affiche"] = "type_affiche2";
// line 106
echo " ";
} else {
// line 107
echo " ";
$context["type_affiche"] = "type_affiche3";
// line 108
echo " ";
}
// line 109
echo "
";
// line 110
if ((twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 110, $this->source); })()), "actif_slider", [], "any", false, false, false, 110) == 1)) {
// line 111
echo " ";
$context["type_affiche"] = ((isset($context["type_affiche"]) || array_key_exists("type_affiche", $context) ? $context["type_affiche"] : (function () { throw new RuntimeError('Variable "type_affiche" does not exist.', 111, $this->source); })()) . " owl-carousel");
// line 112
echo " ";
}
// line 113
echo "
";
// line 114
$context["multi_affichage"] = "affichage1";
// line 115
echo "
";
// line 116
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.', 116, $this->source); })()), "multi_affichage", [], "any", false, false, false, 116) == 1)) {
// line 117
echo " ";
$context["multi_affichage"] = "affichage1";
// line 118
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.', 118, $this->source); })()), "multi_affichage", [], "any", false, false, false, 118) == 2)) {
// line 119
echo " ";
$context["multi_affichage"] = "affichage2";
// line 120
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.', 120, $this->source); })()), "multi_affichage", [], "any", false, false, false, 120) == 3)) {
// line 121
echo " ";
$context["multi_affichage"] = "affichage3";
// line 122
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.', 122, $this->source); })()), "multi_affichage", [], "any", false, false, false, 122) == 4)) {
// line 123
echo " ";
$context["multi_affichage"] = "affichage4";
// line 124
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.', 124, $this->source); })()), "multi_affichage", [], "any", false, false, false, 124) == 5)) {
// line 125
echo " ";
$context["multi_affichage"] = "affichage5";
// line 126
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.', 126, $this->source); })()), "multi_affichage", [], "any", false, false, false, 126) == 6)) {
// line 127
echo " ";
$context["multi_affichage"] = "affichage6";
// line 128
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.', 128, $this->source); })()), "multi_affichage", [], "any", false, false, false, 128) == 7)) {
// line 129
echo " ";
$context["multi_affichage"] = "affichage7";
// line 130
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.', 130, $this->source); })()), "multi_affichage", [], "any", false, false, false, 130) == 8)) {
// line 131
echo " ";
$context["multi_affichage"] = "affichage8";
// line 132
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.', 132, $this->source); })()), "multi_affichage", [], "any", false, false, false, 132) == 9)) {
// line 133
echo " ";
$context["multi_affichage"] = "affichage9";
// line 134
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.', 134, $this->source); })()), "multi_affichage", [], "any", false, false, false, 134) == 10)) {
// line 135
echo " ";
$context["multi_affichage"] = "affichage10";
// line 136
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.', 136, $this->source); })()), "multi_affichage", [], "any", false, false, false, 136) == 11)) {
// line 137
echo " ";
$context["multi_affichage"] = "affichage11";
// line 138
echo " ";
}
// line 139
echo "
";
// line 140
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.', 140, $this->source); })()), "actif_haut", [], "any", false, false, false, 140) == 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.', 140, $this->source); })()), "positiontext", [], "any", false, false, false, 140) != 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.', 140, $this->source); })()), "positiontext", [], "any", false, false, false, 140) != 3))) {
// line 141
echo " <div class=\"container-fluid wrapper\">
<div class=\"row mb-3 mt-2\">
";
// 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); })()), "chapeaucategorie", [], "any", false, false, false, 143) != "")) {
// line 144
echo " <div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">";
// line 145
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.', 145, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 145), "html", null, true);
echo "</h2>
</div>
";
}
// line 148
echo "
";
// line 149
if ((twig_get_attribute($this->env, $this->source, ($context["categorie"] ?? null), "image", [], "any", true, true, false, 149) && !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.', 149, $this->source); })()), "image", [], "any", false, false, false, 149)))) {
// line 150
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 152
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.', 152, $this->source); })()), "image", [], "any", false, false, false, 152)), "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.', 152, $this->source); })()), "titrecategorie", [], "any", false, false, false, 152), "html", null, true);
echo "\" />
</div>
</div>
";
}
// line 156
echo "
";
// line 157
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.', 157, $this->source); })()), "textecategorie", [], "any", false, false, false, 157)) && (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.', 157, $this->source); })()), "textecategorie", [], "any", false, false, false, 157) != " "))) {
// line 158
echo " <div class=\"col-lg-12 content_post\">
";
// line 159
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.', 159, $this->source); })()), "textecategorie", [], "any", false, false, false, 159);
echo "
";
// line 160
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.', 160, $this->source); })()), "typelien", [], "any", false, false, false, 160) == null)) {
// line 161
echo " ";
if ((array_key_exists("categorieTree", $context) && twig_get_attribute($this->env, $this->source, ($context["categorieTree"] ?? null), 0, [], "array", true, true, false, 161))) {
// line 162
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 163
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.', 163, $this->source); })()), 0, [], "array", false, false, false, 163), "slug", [], "any", false, false, false, 163)]), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">Retour à la liste ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 163, $this->source); })()), 0, [], "array", false, false, false, 163), "titre", [], "any", false, false, false, 163), "html", null, true);
echo "</a>
</div>
";
}
// line 165
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 166
(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) != 1)) {
// line 167
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.', 167, $this->source); })()), "typelien", [], "any", false, false, false, 167) == "4")) {
// line 168
echo " <div class=\"text-center py-2\">
<a href=\"tel:";
// line 169
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.', 169, $this->source); })()), "telephone", [], "any", false, false, false, 169), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 169, $this->source); })()), "titrelien", [], "any", false, false, false, 169), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 171
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 171, $this->source); })()), "typelien", [], "any", false, false, false, 171) == "2")) {
// line 172
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 173
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.', 173, $this->source); })()), "lieninterne", [], "any", false, false, false, 173), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 173, $this->source); })()), "titrelien", [], "any", false, false, false, 173), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 175
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 175, $this->source); })()), "typelien", [], "any", false, false, false, 175) == "3")) {
// line 176
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 177
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.', 177, $this->source); })()), "lienexterne", [], "any", false, false, false, 177), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 177, $this->source); })()), "titrelien", [], "any", false, false, false, 177), "html", null, true);
echo "</a>
</div>
";
}
// line 180
echo " ";
}
// line 181
echo " </div>
";
}
// line 183
echo "
";
// line 184
if (((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 184, $this->source); })()) && !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 184, $this->source); })())))) {
// line 185
echo " <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
";
// line 186
$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.', 186, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 187
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, 187) . twig_get_attribute($this->env, $this->source, $context["doc"], "path", [], "any", false, false, false, 187)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 187)), "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, 187), 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, 187), 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 189
echo " </div>
";
}
// line 191
echo "
</div>
</div>
";
}
// line 195
echo "
<div class=\"list_blocs ";
// line 196
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.', 196, $this->source); })()), "html", null, true);
echo "\">
";
// line 197
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.', 197, $this->source); })()), "actif_haut", [], "any", false, false, false, 197) != 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.', 197, $this->source); })()), "positiontext", [], "any", false, false, false, 197) != 1))) {
// line 198
echo " <div class=\"cnt_blocs\">
";
// line 199
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.', 199, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 199) != "")) {
// line 200
echo " <div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">";
// line 201
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.', 201, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 201), "html", null, true);
echo "</h2>
</div>
";
}
// line 204
echo "
";
// line 205
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.', 205, $this->source); })()), "textecategorie", [], "any", false, false, false, 205)) && (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); })()), "textecategorie", [], "any", false, false, false, 205) != ""))) {
// line 206
echo " <div class=\"col-lg-12 content_post\">
";
// line 207
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.', 207, $this->source); })()), "textecategorie", [], "any", false, false, false, 207);
echo "
";
// line 208
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.', 208, $this->source); })()), "typelien", [], "any", false, false, false, 208) == null)) {
// line 209
echo " ";
if ((array_key_exists("categorieTree", $context) && twig_get_attribute($this->env, $this->source, ($context["categorieTree"] ?? null), 0, [], "array", true, true, false, 209))) {
// line 210
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 211
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.', 211, $this->source); })()), 0, [], "array", false, false, false, 211), "slug", [], "any", false, false, false, 211)]), "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.', 211, $this->source); })()), 0, [], "array", false, false, false, 211), "titre", [], "any", false, false, false, 211), "html", null, true);
echo "</a>
</div>
";
}
// line 213
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 214
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 214, $this->source); })()), "typelien", [], "any", false, false, false, 214) != 1)) {
// line 215
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.', 215, $this->source); })()), "typelien", [], "any", false, false, false, 215) == "4")) {
// line 216
echo " <div class=\"text-center py-2\">
<a href=\"tel:";
// line 217
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.', 217, $this->source); })()), "telephone", [], "any", false, false, false, 217), "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.', 217, $this->source); })()), "titrelien", [], "any", false, false, false, 217), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 219
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 219, $this->source); })()), "typelien", [], "any", false, false, false, 219) == "2")) {
// line 220
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 221
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.', 221, $this->source); })()), "lieninterne", [], "any", false, false, false, 221), "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.', 221, $this->source); })()), "titrelien", [], "any", false, false, false, 221), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 223
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 223, $this->source); })()), "typelien", [], "any", false, false, false, 223) == "3")) {
// line 224
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 225
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.', 225, $this->source); })()), "lienexterne", [], "any", false, false, false, 225), "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.', 225, $this->source); })()), "titrelien", [], "any", false, false, false, 225), "html", null, true);
echo "</a>
</div>
";
}
// line 228
echo " ";
}
// line 229
echo " </div>
";
}
// line 231
echo "
";
// line 232
if (((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 232, $this->source); })()) && !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 232, $this->source); })())))) {
// line 233
echo " <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
";
// line 234
$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.', 234, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 235
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, 235) . twig_get_attribute($this->env, $this->source, $context["doc"], "path", [], "any", false, false, false, 235)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 235)), "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, 235), 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, 235), 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 237
echo " </div>
";
}
// line 239
echo "
</div>
";
}
// line 243
echo " <div class=\"blocs\">
";
// line 244
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.', 244, $this->source); })())))) {
// line 245
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.', 245, $this->source); })()), "twig", [], "any", false, false, false, 245)));
echo "
";
}
// line 247
echo "
";
// line 248
if ((((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 248, $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.', 248, $this->source); })()), "hasToPaginate", [], "any", false, false, false, 248))) {
// line 249
echo " <div class=\"pagination-items\">
";
// line 250
$context["paginator"] = (isset($context["posts"]) || array_key_exists("posts", $context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.', 250, $this->source); })());
// line 251
echo " <div class=\"navigation text-center\">
<ul class=\"pagination\">
";
// line 253
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.', 253, $this->source); })()), "hasPreviousPage", [], "any", false, false, false, 253)) {
// line 254
echo " <li class=\"prev\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 254, $this->source); })()), "slugurl", [], "any", false, false, false, 254), "page" => twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 254, $this->source); })()), "previousPage", [], "any", false, false, false, 254)]), "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 256
echo " <li class=\"prev disabled\"><span><i class=\"fa fw fa-long-arrow-left\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.previous", [], "variable"), "html", null, true);
echo "</span></li>
";
}
// line 258
echo "
";
// line 259
$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.', 259, $this->source); })()), "lastPage", [], "any", false, false, false, 259)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 260
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.', 260, $this->source); })()), "currentPage", [], "any", false, false, false, 260))) {
// line 261
echo " <li class=\"active number\"><span>";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo " </span></li>
";
} else {
// line 263
echo " <li class=\"number\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 263, $this->source); })()), "slugurl", [], "any", false, false, false, 263), "page" => $context["i"]]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a></li>
";
}
// line 265
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 266
echo "
";
// line 267
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.', 267, $this->source); })()), "hasNextPage", [], "any", false, false, false, 267)) {
// line 268
echo " <li class=\"next\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 268, $this->source); })()), "slugurl", [], "any", false, false, false, 268), "page" => twig_get_attribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 268, $this->source); })()), "nextPage", [], "any", false, false, false, 268)]), "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 270
echo " <li class=\"next disabled\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.next", [], "variable"), "html", null, true);
echo " <i class=\"fa fw fa-long-arrow-right\"></i></span></li>
";
}
// line 272
echo " </ul>
</div>
</div>
";
}
// line 276
echo " </div>
</div>
";
// line 280
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.', 280, $this->source); })()), "actif_haut", [], "any", false, false, false, 280) != 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.', 280, $this->source); })()), "positiontext", [], "any", false, false, false, 280) == 1))) {
// line 281
echo " <div class=\"container-fluid wrapper\">
<div class=\"row mb-3 mt-2\">
";
// line 283
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.', 283, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 283) != "")) {
// line 284
echo " <div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">";
// line 285
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.', 285, $this->source); })()), "chapeaucategorie", [], "any", false, false, false, 285), "html", null, true);
echo "</h2>
</div>
";
}
// line 288
echo "
";
// line 289
if ((twig_get_attribute($this->env, $this->source, ($context["categorie"] ?? null), "image", [], "any", true, true, false, 289) && !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.', 289, $this->source); })()), "image", [], "any", false, false, false, 289)))) {
// line 290
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 292
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.', 292, $this->source); })()), "image", [], "any", false, false, false, 292)), "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.', 292, $this->source); })()), "titrecategorie", [], "any", false, false, false, 292), "html", null, true);
echo "\" />
</div>
</div>
";
}
// line 296
echo "
";
// line 297
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.', 297, $this->source); })()), "textecategorie", [], "any", false, false, false, 297)) && (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.', 297, $this->source); })()), "textecategorie", [], "any", false, false, false, 297) != " "))) {
// line 298
echo " <div class=\"col-lg-12 content_post\">
";
// line 299
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.', 299, $this->source); })()), "textecategorie", [], "any", false, false, false, 299);
echo "
";
// line 300
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.', 300, $this->source); })()), "typelien", [], "any", false, false, false, 300) == null)) {
// line 301
echo " ";
if ((array_key_exists("categorieTree", $context) && twig_get_attribute($this->env, $this->source, ($context["categorieTree"] ?? null), 0, [], "array", true, true, false, 301))) {
// line 302
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 303
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.', 303, $this->source); })()), 0, [], "array", false, false, false, 303), "slug", [], "any", false, false, false, 303)]), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">Retour à la liste ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 303, $this->source); })()), 0, [], "array", false, false, false, 303), "titre", [], "any", false, false, false, 303), "html", null, true);
echo "</a>
</div>
";
}
// line 305
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 306
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 306, $this->source); })()), "typelien", [], "any", false, false, false, 306) != 1)) {
// line 307
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.', 307, $this->source); })()), "typelien", [], "any", false, false, false, 307) == "4")) {
// line 308
echo " <div class=\"text-center py-2\">
<a href=\"tel:";
// line 309
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.', 309, $this->source); })()), "telephone", [], "any", false, false, false, 309), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 309, $this->source); })()), "titrelien", [], "any", false, false, false, 309), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 311
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 311, $this->source); })()), "typelien", [], "any", false, false, false, 311) == "2")) {
// line 312
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 313
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.', 313, $this->source); })()), "lieninterne", [], "any", false, false, false, 313), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 313, $this->source); })()), "titrelien", [], "any", false, false, false, 313), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 315
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 315, $this->source); })()), "typelien", [], "any", false, false, false, 315) == "3")) {
// line 316
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 317
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.', 317, $this->source); })()), "lienexterne", [], "any", false, false, false, 317), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 317, $this->source); })()), "titrelien", [], "any", false, false, false, 317), "html", null, true);
echo "</a>
</div>
";
}
// line 320
echo " ";
}
// line 321
echo " </div>
";
// line 323
if (((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 323, $this->source); })()) && !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 323, $this->source); })())))) {
// line 324
echo " <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
";
// line 325
$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.', 325, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 326
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, 326) . twig_get_attribute($this->env, $this->source, $context["doc"], "path", [], "any", false, false, false, 326)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 326)), "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, 326), 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, 326), 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 328
echo " </div>
";
}
// line 330
echo " ";
}
// line 331
echo "
</div>
</div>
";
}
// line 335
echo "
";
// line 336
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.', 336, $this->source); })()), "positiontext", [], "any", false, false, false, 336) != 1)) {
// line 337
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["categorie"] ?? null), "image", [], "any", true, true, false, 337) && !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.', 337, $this->source); })()), "image", [], "any", false, false, false, 337)))) {
// line 338
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 340
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.', 340, $this->source); })()), "image", [], "any", false, false, false, 340)), "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.', 340, $this->source); })()), "titrecategorie", [], "any", false, false, false, 340), "html", null, true);
echo "\" />
</div>
</div>
";
}
// line 344
echo " ";
}
// line 345
echo "
";
// line 346
if (((((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 346, $this->source); })()) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 346, $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.', 346, $this->source); })())))) {
// line 347
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.', 347, $this->source); })())));
echo "
";
}
// line 349
echo "
";
// line 350
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.', 350, $this->source); })()), "urlvideo", [], "any", false, false, false, 350))) {
// line 351
echo " <div class=\"container-fluid wrapper mt-3\">
<div class=\"col-md-12 mt-1\">
<div class=\"video\">
";
// line 354
$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.', 354, $this->source); })()), "urlvideo", [], "any", false, false, false, 354), "?v="), 1, [], "array", true, true, false, 354)) ? (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.', 354, $this->source); })()), "urlvideo", [], "any", false, false, false, 354), "?v="), 1, [], "array", false, false, false, 354)) : (null));
// line 355
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.', 355, $this->source); })()), "urlvideo", [], "any", false, false, false, 355), "html", null, true);
echo "\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/";
// line 356
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.', 356, $this->source); })()), "html", null, true);
echo "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
</a>
</div>
</div>
</div>
";
}
// line 362
echo "
";
// line 363
if (array_key_exists("blocs", $context)) {
// line 364
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.', 364, $this->source); })()), "Bloc", [], "any", false, false, false, 364));
foreach ($context['_seq'] as $context["_key"] => $context["bloc"]) {
// line 365
echo " ";
if (($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && (twig_get_attribute($this->env, $this->source, $context["bloc"], "mobile", [], "any", false, false, false, 365) == true))) {
// line 366
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.', 366, $this->source); })()), "request", [], "any", false, false, false, 366), "server", [], "any", false, false, false, 366), "get", [0 => "APP_THEME"], "method", false, false, false, 366)) . "/bloc/bloc.html.twig"), ["bloc" => // line 367
$context["bloc"]], false);
// line 368
echo "
";
}
// line 370
echo "
";
// line 371
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, 371) == true))) {
// line 372
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.', 372, $this->source); })()), "request", [], "any", false, false, false, 372), "server", [], "any", false, false, false, 372), "get", [0 => "APP_THEME"], "method", false, false, false, 372)) . "/bloc/bloc.html.twig"), ["bloc" => // line 373
$context["bloc"]], false);
// line 374
echo "
";
}
// line 376
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 377
echo " ";
}
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 382
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 383
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 384
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.', 384, $this->source); })()), 0, [], "array", false, false, false, 384), "type", [], "any", false, false, false, 384) == 4)) {
// line 385
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 409
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "front/theme1/page_categorie.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1162 => 409, 1134 => 385, 1132 => 384, 1127 => 383, 1117 => 382, 1102 => 377, 1096 => 376, 1092 => 374, 1090 => 373, 1088 => 372, 1086 => 371, 1083 => 370, 1079 => 368, 1077 => 367, 1075 => 366, 1072 => 365, 1067 => 364, 1065 => 363, 1062 => 362, 1053 => 356, 1048 => 355, 1046 => 354, 1041 => 351, 1039 => 350, 1036 => 349, 1030 => 347, 1028 => 346, 1025 => 345, 1022 => 344, 1013 => 340, 1009 => 338, 1006 => 337, 1004 => 336, 1001 => 335, 995 => 331, 992 => 330, 988 => 328, 975 => 326, 971 => 325, 968 => 324, 966 => 323, 962 => 321, 959 => 320, 951 => 317, 948 => 316, 946 => 315, 939 => 313, 936 => 312, 934 => 311, 927 => 309, 924 => 308, 921 => 307, 919 => 306, 916 => 305, 908 => 303, 905 => 302, 902 => 301, 900 => 300, 896 => 299, 893 => 298, 891 => 297, 888 => 296, 879 => 292, 875 => 290, 873 => 289, 870 => 288, 864 => 285, 861 => 284, 859 => 283, 855 => 281, 853 => 280, 847 => 276, 841 => 272, 835 => 270, 827 => 268, 825 => 267, 822 => 266, 816 => 265, 808 => 263, 802 => 261, 799 => 260, 795 => 259, 792 => 258, 786 => 256, 778 => 254, 776 => 253, 772 => 251, 770 => 250, 767 => 249, 765 => 248, 762 => 247, 756 => 245, 754 => 244, 751 => 243, 745 => 239, 741 => 237, 728 => 235, 724 => 234, 721 => 233, 719 => 232, 716 => 231, 712 => 229, 709 => 228, 701 => 225, 698 => 224, 696 => 223, 689 => 221, 686 => 220, 684 => 219, 677 => 217, 674 => 216, 671 => 215, 669 => 214, 666 => 213, 658 => 211, 655 => 210, 652 => 209, 650 => 208, 646 => 207, 643 => 206, 641 => 205, 638 => 204, 632 => 201, 629 => 200, 627 => 199, 624 => 198, 622 => 197, 618 => 196, 615 => 195, 609 => 191, 605 => 189, 592 => 187, 588 => 186, 585 => 185, 583 => 184, 580 => 183, 576 => 181, 573 => 180, 565 => 177, 562 => 176, 560 => 175, 553 => 173, 550 => 172, 548 => 171, 541 => 169, 538 => 168, 535 => 167, 533 => 166, 530 => 165, 522 => 163, 519 => 162, 516 => 161, 514 => 160, 510 => 159, 507 => 158, 505 => 157, 502 => 156, 493 => 152, 489 => 150, 487 => 149, 484 => 148, 478 => 145, 475 => 144, 473 => 143, 469 => 141, 467 => 140, 464 => 139, 461 => 138, 458 => 137, 455 => 136, 452 => 135, 449 => 134, 446 => 133, 443 => 132, 440 => 131, 437 => 130, 434 => 129, 431 => 128, 428 => 127, 425 => 126, 422 => 125, 419 => 124, 416 => 123, 413 => 122, 410 => 121, 407 => 120, 404 => 119, 401 => 118, 398 => 117, 396 => 116, 393 => 115, 391 => 114, 388 => 113, 385 => 112, 382 => 111, 380 => 110, 377 => 109, 374 => 108, 371 => 107, 368 => 106, 365 => 105, 362 => 104, 359 => 103, 356 => 102, 354 => 101, 351 => 100, 348 => 99, 345 => 98, 342 => 97, 339 => 96, 336 => 95, 333 => 94, 330 => 93, 328 => 92, 325 => 91, 315 => 84, 310 => 82, 306 => 80, 296 => 79, 289 => 77, 281 => 71, 279 => 70, 275 => 68, 267 => 63, 262 => 61, 258 => 59, 248 => 58, 241 => 56, 230 => 52, 227 => 51, 225 => 50, 222 => 49, 219 => 48, 216 => 47, 213 => 46, 210 => 45, 207 => 44, 204 => 43, 202 => 42, 199 => 41, 189 => 40, 175 => 34, 172 => 33, 169 => 32, 163 => 30, 161 => 29, 156 => 28, 146 => 27, 135 => 23, 132 => 22, 126 => 21, 120 => 19, 117 => 18, 112 => 17, 110 => 16, 107 => 15, 98 => 13, 92 => 11, 89 => 10, 84 => 9, 82 => 8, 79 => 7, 73 => 5, 70 => 4, 60 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"front/\"~ app.request.server.get('APP_THEME') ~\"/base.html.twig\" %}
{% block preload %}
{% if categorie.image is defined and categorie.image is not empty %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image(categorie.image)}}\" />
{% endif %}
{% if resultats is defined and resultats is not empty %}
{% for item in resultats %}
{% if item.image %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image(item.image)}}\" />
{% endif %}
{% endfor %}
{% endif %}
{% if galleries is defined and galleries is not empty %}
{% for item in galleries %}
{% if item.path is defined %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image(item.path)}}\" />
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}
{% block stylesheets %}
{{parent()}}
{% if modele_galerie[0].type == 4 %}
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{asset('templates/front/theme1/assets/plugins/flexslider/flexslider.css')}}\" media=\"screen\" >
{% endif %}
{% if template.css is defined %}
<style>
{{template.css|raw}}
</style>
{% endif %}
{% endblock %}
{% block body %}
{% if categorie.imageBandeau %}
{% set imagebandeau = categorie.imageBandeau %}
{% elseif parametre.imageBandeau %}
{% set imagebandeau = 'uploads/images/' ~ parametre.imageBandeau %}
{% else %}
{% set imagebandeau = '' %}
{% endif %}
{% if imagebandeau != '' %}
<section class=\"image-bandeau text-center\">
<img alt=\"{{categorie.titrecategorie}}\" title=\"{{categorie.titrecategorie}}\" src=\"{{asset(imagebandeau)}}\" />
<div class=\"cnt-bandeau text-center\">
\t\t\t\t<div class=\"container-fluid wrapper\">
<ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('index_page_home')}}\" itemprop=\"item\"><span itemprop=\"name\">{{title_home_ariane}}</span></a><meta itemprop=\"position\" content=\"1\" /></li>
{% if categorieParent is defined %}<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('page',{slug:categorieParent.slugurl})}}\" title=\"{{categorieParent.titrecategorie}}\" itemprop=\"item\"><span itemprop=\"name\">{{categorieParent.titrecategorie}}</span></a><meta itemprop=\"position\" content=\"2\" /></li>{% endif %}
<li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">{{categorie.titrecategorie}}</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">{{categorie.titrecategorie}}</h1>
</div>
</div>
</section>
{% endif %}
<div class=\"page_cms pt-5\">
{% if imagebandeau == '' %}
<div class=\"container-fluid wrapper\">
<div class=\"breadcrumb-style-default\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
<ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('index_page_home')}}\" itemprop=\"item\"><span itemprop=\"name\">{{title_home_ariane}}</span></a><meta itemprop=\"position\" content=\"1\" /></li>
{% if categorieParent is defined %}<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('page',{slug:categorieParent.slugurl})}}\" title=\"{{categorieParent.titrecategorie}}\" itemprop=\"item\"><span itemprop=\"name\">{{categorieParent.titrecategorie}}</span></a><meta itemprop=\"position\" content=\"2\" /></li>{% endif %}
<li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">{{categorie.titrecategorie}}</span><meta itemprop=\"position\" content=\"3\" /></li>
</ol>
<h1 class=\"page-title titre_page_mention\">{{categorie.titrecategorie}}</h1>
</div>
</div>
</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\" %}
{% endif %}
{% if categorie.actif_haut == 1 and categorie.positiontext != 2 and categorie.positiontext != 3 %}
<div class=\"container-fluid wrapper\">
<div class=\"row mb-3 mt-2\">
{% if categorie.chapeaucategorie !='' %}
<div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">{{categorie.chapeaucategorie}}</h2>
</div>
{% endif %}
{% if categorie.image is defined and categorie.image is not empty %}
<div class=\"col-lg-12 py-5 d-flex justify-content-center\">
<div class=\"col-sm-12 col-md-6\">
<img class=\"img-fluid\" src=\"{{asset_image(categorie.image)}}\" alt=\"{{categorie.titrecategorie}}\" />
</div>
</div>
{% endif %}
{% if categorie.textecategorie is not empty and categorie.textecategorie != \" \" %}
<div class=\"col-lg-12 content_post\">
{{categorie.textecategorie|raw}}
{% if categorie.typelien == null %}
{% if categorieTree is defined and categorieTree[0] is defined %}
<div class=\"text-center py-2\">
<a href=\"{{path('page',{slug:categorieTree[0].slug})}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">Retour à la liste {{categorieTree[0].titre}}</a>
</div>
{% endif %}
{% elseif categorie.typelien != 1 %}
{% if categorie.typelien == '4' %}
<div class=\"text-center py-2\">
<a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '2' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lieninterne}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '3' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lienexterne}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
</div>
{% endif %}
{% if docs and docs is not empty %}
<div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
{% for doc in docs %}
<a class=\"btn-back-pulse m-2\" href=\"{{doc.location ~ doc.path ~ '/' ~ doc.fileName}}\" title=\"{{doc.fileName|slice(0, -4)}}\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>{{doc.fileName|slice(0, -4)}}</a>
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% endif %}
<div class=\"list_blocs {{position_texte}}\">
{% if categorie.actif_haut != 1 and categorie.positiontext != 1 %}
<div class=\"cnt_blocs\">
{% if categorie.chapeaucategorie !='' %}
<div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">{{categorie.chapeaucategorie}}</h2>
</div>
{% endif %}
{% if categorie.textecategorie is not empty and categorie.textecategorie != \"\" %}
<div class=\"col-lg-12 content_post\">
{{categorie.textecategorie|raw}}
{% if categorie.typelien == null %}
{% if categorieTree is defined and categorieTree[0] is defined %}
<div class=\"text-center py-2\">
<a href=\"{{path('page',{slug:categorieTree[0].slug})}}\" class=\"btn btn-back-pulse\">Retour à la liste {{categorieTree[0].titre}}</a>
</div>
{% endif %}
{% elseif categorie.typelien != 1 %}
{% if categorie.typelien == '4' %}
<div class=\"text-center py-2\">
<a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-back-pulse\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '2' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lieninterne}}\" class=\"btn btn-back-pulse\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '3' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lienexterne}}\" class=\"btn btn-back-pulse\">{{categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
</div>
{% endif %}
{% if docs and docs is not empty %}
<div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
{% for doc in docs %}
<a class=\"btn-back-pulse m-2\" href=\"{{doc.location ~ doc.path ~ '/' ~ doc.fileName}}\" title=\"{{doc.fileName|slice(0, -4)}}\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>{{doc.fileName|slice(0, -4)}}</a>
{% endfor %}
</div>
{% endif %}
</div>
{% endif %}
<div class=\"blocs\">
{% if template is defined and template is not empty %}
{{ include(template_from_string(template.twig)) }}
{% endif %}
{% if pagination == true and posts.hasToPaginate %}
<div class=\"pagination-items\">
{% set paginator = posts %}
<div class=\"navigation text-center\">
<ul class=\"pagination\">
{% if paginator.hasPreviousPage %}
<li class=\"prev\"><a href=\"{{ path('page', {slug:categorie.slugurl,page: paginator.previousPage}) }}\" rel=\"previous\"><i class=\"fa fw fa-long-arrow-left\"></i> {{ 'paginator.previous'|trans([],'variable') }}</a></li>
{% else %}
<li class=\"prev disabled\"><span><i class=\"fa fw fa-long-arrow-left\"></i> {{ 'paginator.previous'|trans([],'variable') }}</span></li>
{% endif %}
{% for i in 1..paginator.lastPage %}
{% if i == paginator.currentPage %}
<li class=\"active number\"><span>{{ i }} </span></li>
{% else %}
<li class=\"number\"><a href=\"{{ path('page', {slug:categorie.slugurl,page: i }) }}\">{{ i }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.hasNextPage %}
<li class=\"next\"><a href=\"{{ path('page', {slug:categorie.slugurl,page: paginator.nextPage}) }}\" rel=\"next\">{{ 'paginator.next'|trans([],'variable') }} <i class=\"fa fw fa-long-arrow-right\"></i></a></li>
{% else %}
<li class=\"next disabled\"><span>{{ 'paginator.next'|trans([],'variable')}} <i class=\"fa fw fa-long-arrow-right\"></i></span></li>
{% endif %}
</ul>
</div>
</div>
{% endif %}
</div>
</div>
{% if categorie.actif_haut != 1 and categorie.positiontext == 1 %}
<div class=\"container-fluid wrapper\">
<div class=\"row mb-3 mt-2\">
{% if categorie.chapeaucategorie !='' %}
<div class=\"col-sm-12 text-center mb-1\">
<h2 class=\"sub-title\">{{categorie.chapeaucategorie}}</h2>
</div>
{% endif %}
{% if categorie.image is defined and categorie.image is not empty %}
<div class=\"col-lg-12 py-5 d-flex justify-content-center\">
<div class=\"col-sm-12 col-md-6\">
<img class=\"img-fluid\" src=\"{{asset_image(categorie.image)}}\" alt=\"{{categorie.titrecategorie}}\" />
</div>
</div>
{% endif %}
{% if categorie.textecategorie is not empty and categorie.textecategorie != \" \" %}
<div class=\"col-lg-12 content_post\">
{{categorie.textecategorie|raw}}
{% if categorie.typelien == null %}
{% if categorieTree is defined and categorieTree[0] is defined %}
<div class=\"text-center py-2\">
<a href=\"{{path('page',{slug:categorieTree[0].slug})}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">Retour à la liste {{categorieTree[0].titre}}</a>
</div>
{% endif %}
{% elseif categorie.typelien != 1 %}
{% if categorie.typelien == '4' %}
<div class=\"text-center py-2\">
<a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '2' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lieninterne}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '3' %}
<div class=\"text-center py-2\">
<a href=\"{{categorie.lienexterne}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
</div>
{% if docs and docs is not empty %}
<div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
{% for doc in docs %}
<a class=\"btn-back-pulse m-2\" href=\"{{doc.location ~ doc.path ~ '/' ~ doc.fileName}}\" title=\"{{doc.fileName|slice(0, -4)}}\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>{{doc.fileName|slice(0, -4)}}</a>
{% endfor %}
</div>
{% endif %}
{% endif %}
</div>
</div>
{% endif %}
{% if categorie.positiontext != 1 %}
{% if categorie.image is defined and categorie.image is not empty %}
<div class=\"col-lg-12 py-5 d-flex justify-content-center\">
<div class=\"col-sm-12 col-md-6\">
<img class=\"img-fluid\" src=\"{{asset_image(categorie.image)}}\" alt=\"{{categorie.titrecategorie}}\" />
</div>
</div>
{% endif %}
{% endif %}
{% if galleries and galleries is not empty and template_model_gallerie is defined and template_model_gallerie is not empty %}
{{ include(template_from_string(template_model_gallerie)) }}
{% endif %}
{% if categorie.urlvideo is not empty %}
<div class=\"container-fluid wrapper mt-3\">
<div class=\"col-md-12 mt-1\">
<div class=\"video\">
{% set id_video_externe = categorie.urlvideo|split('?v=')[1] is defined ? categorie.urlvideo|split('?v=')[1] : null %}
<a class=\"video-thumbnail m-0\" href=\"{{categorie.urlvideo}}\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/{{id_video_externe}}/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
</a>
</div>
</div>
</div>
{% endif %}
{% if blocs is defined %}
{% for bloc in blocs.Bloc %}
{% if is_mobile() and bloc.mobile == true %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% if is_full_view() and is_mobile() == false and bloc.desktop == true %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endblock %}
{% block javascripts %}
{{parent()}}
{% if modele_galerie[0].type == 4 %}
<script src=\"{{asset('templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js')}}\" ></script>
<script>
/*-------------------------------------------------*/
/* = Sx flexslider
/*-------------------------------------------------*/
if (\$(\".sx_flexslider\").length) {
\$('.flex-carousel').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
itemWidth: 150,
asNavFor: '.flex-slider'
});
\$('.flex-slider').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
sync: \".flex-carousel\"
});
}
</script>
{% endif %}
{% endblock %}
", "front/theme1/page_categorie.html.twig", "/var/www/vhosts/hrz.fr/new-site.hrz.fr/templates/front/theme1/page_categorie.html.twig");
}
}