<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* theme/default/page_categorie_custom.html.twig */
class __TwigTemplate_5d8389feadc5c9b1031ebf324dc70fad extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate((("theme/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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", ["APP_THEME"], "method", false, false, false, 1)) . "/partials/base.html.twig"), "theme/default/page_categorie_custom.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", "theme/default/page_categorie_custom.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "theme/default/page_categorie_custom.html.twig"));
yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
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 4
yield "\t";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
";
// line 5
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($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); })()), "customstyle", [], "any", false, false, false, 5))) {
// line 6
yield "\t <style>";
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 6, $this->source); })()), "customstyle", [], "any", false, false, false, 6);
yield "</style>
\t";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 11
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 12
yield " <div id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["id_page"]) || array_key_exists("id_page", $context) ? $context["id_page"] : (function () { throw new RuntimeError('Variable "id_page" does not exist.', 12, $this->source); })()), "html", null, true);
yield "\" class=\"page-categorie\">
";
// line 13
if ((array_key_exists("breadcrumb", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 13, $this->source); })())))) {
// line 14
yield " ";
yield Twig\Extension\CoreExtension::include($this->env, $context, (("theme/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "server", [], "any", false, false, false, 14), "get", ["APP_THEME"], "method", false, false, false, 14)) . "/partials/breadcrumb.html.twig"), ["breadcrumb" => // line 15
(isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 15, $this->source); })()), "titre_page" => (( // line 16
array_key_exists("titre_page", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["titre_page"]) || array_key_exists("titre_page", $context) ? $context["titre_page"] : (function () { throw new RuntimeError('Variable "titre_page" does not exist.', 16, $this->source); })()), "")) : ("")), "image_bandeau" => // line 17
(isset($context["image_bandeau"]) || array_key_exists("image_bandeau", $context) ? $context["image_bandeau"] : (function () { throw new RuntimeError('Variable "image_bandeau" does not exist.', 17, $this->source); })()), "image_bandeau_alt" => // line 18
(isset($context["image_bandeau_alt"]) || array_key_exists("image_bandeau_alt", $context) ? $context["image_bandeau_alt"] : (function () { throw new RuntimeError('Variable "image_bandeau_alt" does not exist.', 18, $this->source); })())], false);
// line 19
yield "
";
}
// line 20
yield "
";
// line 22
if ((((( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 22, $this->source); })()), "textecategorie", [], "any", false, false, false, 22)) || !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 22, $this->source); })()), "urlvideo", [], "any", false, false, false, 22))) || !Twig\Extension\CoreExtension::testEmpty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 22, $this->source); })()))) || !Twig\Extension\CoreExtension::testEmpty((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 22, $this->source); })()))) || !Twig\Extension\CoreExtension::testEmpty((isset($context["liste_sous_categorie"]) || array_key_exists("liste_sous_categorie", $context) ? $context["liste_sous_categorie"] : (function () { throw new RuntimeError('Variable "liste_sous_categorie" does not exist.', 22, $this->source); })())))) {
// line 23
yield " <div class=\"container-fluid content-wrapper\">
<div class=\"content-area\">
<div class=\"row content_page\">
<div class=\"col-sm-12 ";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ["1" => "text-center", "2" => "text-start", "3" => "text-end"], CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 27, $this->source); })()), "positiontext", [], "any", false, false, false, 27), [], "array", true, true, false, 27)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ["1" => "text-center", "2" => "text-start", "3" => "text-end"], CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 27, $this->source); })()), "positiontext", [], "any", false, false, false, 27), [], "array", false, false, false, 27), "1")) : ("1")), "html", null, true);
yield "\" >
";
// line 28
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 28, $this->source); })()), "image", [], "any", false, false, false, 28)) {
// line 29
yield " <div class=\"col-image-post text-center\">
<img class=\"img-fluid principal-img\" src=\"";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 30, $this->source); })()), "image", [], "any", false, false, false, 30), "medium", ["1024x/uploads", "800x/uploads", "800x/uploads"]), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 30, $this->source); })()), "altimage", [], "any", false, false, false, 30))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 30, $this->source); })()), "altimage", [], "any", false, false, false, 30)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 30, $this->source); })()), "titrecategorie", [], "any", false, false, false, 30))), "html", null, true);
yield "\" />
</div>
";
}
// line 33
yield "
";
// line 34
$context["lien_site"] = (((((("<a href=" . $this->extensions['App\Twig\CmsFunctionExtension']->websiteUrlFunction()) . " title=") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["site_parameters"]) || array_key_exists("site_parameters", $context) ? $context["site_parameters"] : (function () { throw new RuntimeError('Variable "site_parameters" does not exist.', 34, $this->source); })()), "getParameters", [], "method", false, false, false, 34), "titre", [], "any", false, false, false, 34)) . ">") . $this->extensions['App\Twig\CmsFunctionExtension']->websiteUrlFunction()) . "</a>");
yield "
";
// line 36
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 36, $this->source); })()), "textecategorie", [], "any", false, false, false, 36))) {
// line 37
yield " <div class=\"texte-content\">";
yield $this->extensions['App\Twig\MotClePostExtension']->ContentChangeByMotCleFunction(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 37, $this->source); })()), "id", [], "any", false, false, false, 37), Twig\Extension\CoreExtension::replace(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 37, $this->source); })()), "textecategorie", [], "any", false, false, false, 37), ["[NDD]" => (isset($context["lien_site"]) || array_key_exists("lien_site", $context) ? $context["lien_site"] : (function () { throw new RuntimeError('Variable "lien_site" does not exist.', 37, $this->source); })())]));
yield "</div>
";
}
// line 39
yield "
";
// line 40
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 40, $this->source); })()), "typelien", [], "any", false, false, false, 40) != 1)) {
// line 41
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 41, $this->source); })()), "typelien", [], "any", false, false, false, 41) == "4")) {
// line 42
yield " <div class=\"text-center py-2\">
<a href=\"tel:";
// line 43
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($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); })()), "telephone", [], "any", false, false, false, 43), "html", null, true);
yield "\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($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); })()), "titrelien", [], "any", false, false, false, 43), "html", null, true);
yield "</a>
</div>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 45
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 45, $this->source); })()), "typelien", [], "any", false, false, false, 45) == "2")) {
// line 46
yield " <div class=\"text-center py-2\">
<a href=\"";
// line 47
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\CmsFunctionExtension']->resolveInternalSlugLinkFunction(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 47, $this->source); })()), "lieninterne", [], "any", false, false, false, 47)), "html", null, true);
yield "\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 47, $this->source); })()), "titrelien", [], "any", false, false, false, 47), "html", null, true);
yield "</a>
</div>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 49
(isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 49, $this->source); })()), "typelien", [], "any", false, false, false, 49) == "3")) {
// line 50
yield " <div class=\"text-center py-2\">
<a href=\"";
// line 51
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 51, $this->source); })()), "lienexterne", [], "any", false, false, false, 51), "html", null, true);
yield "\" target=\"_blank\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 51, $this->source); })()), "titrelien", [], "any", false, false, false, 51), "html", null, true);
yield "</a>
</div>
";
}
// line 54
yield " ";
}
// line 55
yield " </div>
";
// line 57
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 57, $this->source); })()), "urlvideo", [], "any", false, false, false, 57))) {
// line 58
yield " <div class=\"col-sm-12\">
<div class=\"contenu-video\">
";
// line 60
$context["id_video_externe"] = $this->extensions['App\Twig\AppExtension']->extractYoutubeId(CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 60, $this->source); })()), "urlvideo", [], "any", false, false, false, 60));
// line 61
yield " <a class=\"video-thumbnail m-0\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($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); })()), "urlvideo", [], "any", false, false, false, 61), "html", null, true);
yield "\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/";
// line 62
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((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.', 62, $this->source); })()), "html", null, true);
yield "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"youtube vidéo\"/>
</a>
</div>
</div>
";
}
// line 67
yield "
";
// line 68
if (((((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 68, $this->source); })()) && !Twig\Extension\CoreExtension::testEmpty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 68, $this->source); })()))) && array_key_exists("twig_galerie", $context)) && !Twig\Extension\CoreExtension::testEmpty((isset($context["twig_galerie"]) || array_key_exists("twig_galerie", $context) ? $context["twig_galerie"] : (function () { throw new RuntimeError('Variable "twig_galerie" does not exist.', 68, $this->source); })())))) {
// line 69
yield " <div class=\"col-sm-12\">
";
// line 70
yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\StringLoaderExtension::templateFromString($this->env, (isset($context["twig_galerie"]) || array_key_exists("twig_galerie", $context) ? $context["twig_galerie"] : (function () { throw new RuntimeError('Variable "twig_galerie" does not exist.', 70, $this->source); })())));
yield "
</div>
";
}
// line 73
yield "
";
// line 75
if ((array_key_exists("liste_sous_categorie", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["liste_sous_categorie"]) || array_key_exists("liste_sous_categorie", $context) ? $context["liste_sous_categorie"] : (function () { throw new RuntimeError('Variable "liste_sous_categorie" does not exist.', 75, $this->source); })())))) {
// line 76
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["liste_sous_categorie"]) || array_key_exists("liste_sous_categorie", $context) ? $context["liste_sous_categorie"] : (function () { throw new RuntimeError('Variable "liste_sous_categorie" does not exist.', 76, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 77
yield " <div class=\"col-sm-12 col-md-2\">
";
// line 78
if (((isset($context["systemName"]) || array_key_exists("systemName", $context) ? $context["systemName"] : (function () { throw new RuntimeError('Variable "systemName" does not exist.', 78, $this->source); })()) == "actualites")) {
// line 79
yield " ";
$context["link"] = CoreExtension::getAttribute($this->env, $this->source, $context["item"], "slugurl", [], "any", false, false, false, 79);
// line 80
yield " ";
} else {
// line 81
yield " ";
$context["link"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 81, $this->source); })()), "request", [], "any", false, false, false, 81), "attributes", [], "any", false, false, false, 81), "get", ["slug"], "method", false, false, false, 81) . "/") . CoreExtension::getAttribute($this->env, $this->source, $context["item"], "slugurl", [], "any", false, false, false, 81));
// line 82
yield " ";
}
// line 83
yield "
<a href=\"";
// line 84
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 84, $this->source); })())]), "html", null, true);
yield "\">
<div class=\"cta-categorie\">
";
// line 86
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "titrecategorie", [], "any", false, false, false, 86), "html", null, true);
yield "
</div>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 91
yield " ";
}
// line 92
yield "
";
// line 94
$context["resultats"] = (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 94, $this->source); })()), "pagination", [], "any", false, false, false, 94) == true)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 94, $this->source); })()), "results", [], "any", false, false, false, 94)) : ((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 94, $this->source); })())));
// line 95
yield " ";
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 95, $this->source); })()))) {
// line 96
yield "
<div class=\"col-sm-12\">
<hr/>
";
// line 99
$context["data_columns"] = CoreExtension::getAttribute($this->env, $this->source, ["0" => "3", "1" => "3", "2" => "1", "4" => "1"], CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 99, $this->source); })()), "multiaffichage", [], "any", false, false, false, 99), [], "array", false, false, false, 99);
// line 100
yield " ";
$context["data_style"] = CoreExtension::getAttribute($this->env, $this->source, ["0" => "compact", "1" => "compact", "2" => "wide", "4" => "wide"], CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 100, $this->source); })()), "multiaffichage", [], "any", false, false, false, 100), [], "array", false, false, false, 100);
// line 101
yield "
";
// line 102
if ((array_key_exists("template", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["template"]) || array_key_exists("template", $context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.', 102, $this->source); })())))) {
// line 103
yield " ";
yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\StringLoaderExtension::templateFromString($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["template"]) || array_key_exists("template", $context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.', 103, $this->source); })()), "twig", [], "any", false, false, false, 103)));
yield "
";
}
// line 104
yield "
";
// line 107
if ((((CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 107, $this->source); })()), "pagination", [], "any", false, false, false, 107) == true) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 107, $this->source); })()), "pageSize", [], "any", false, false, false, 107)) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 107, $this->source); })()), "pagesize", [], "any", false, false, false, 107) < Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 107, $this->source); })()))))) {
// line 108
yield " <div class=\"pagination-items\">
";
// line 109
$context["paginator"] = (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 109, $this->source); })());
// line 110
yield " <div class=\"navigation text-center\">
<ul class=\"pagination d-felx justify-content-center align-items-center my-4\">
";
// line 112
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 112, $this->source); })()), "hasPreviousPage", [], "any", false, false, false, 112)) {
// line 113
yield " <li class=\"prev mx-1\"><a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 113, $this->source); })()), "slugurl", [], "any", false, false, false, 113)]), "html", null, true);
yield "?page=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 113, $this->source); })()), "previousPage", [], "any", false, false, false, 113), "html", null, true);
yield "\" rel=\"previous\"><i class=\"fa-solid fa-arrow-left-long\"></i> ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.previous", [], "variable"), "html", null, true);
yield "</a></li>
";
} else {
// line 115
yield " <li class=\"prev disabled mx-1\"><span><i class=\"fa-solid fa-arrow-left-long\"></i> ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.previous", [], "variable"), "html", null, true);
yield "</span></li>
";
}
// line 117
yield " ";
if (((isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 117, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 117, $this->source); })()), "pageSize", [], "any", false, false, false, 117))) {
// line 118
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(range(1, CoreExtension::getAttribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 118, $this->source); })()), "lastPage", [], "any", false, false, false, 118)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 119
yield " ";
if (($context["i"] == CoreExtension::getAttribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 119, $this->source); })()), "currentPage", [], "any", false, false, false, 119))) {
// line 120
yield " <li class=\"active number mx-1\"><span>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["i"], "html", null, true);
yield " </span></li>
";
} else {
// line 122
yield " <li class=\"number mx-1\"><a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => CoreExtension::getAttribute($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); })()), "slugurl", [], "any", false, false, false, 122)]), "html", null, true);
yield "?page=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["i"], "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["i"], "html", null, true);
yield "</a></li>
";
}
// line 124
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 125
yield " ";
}
// line 126
yield "
";
// line 127
if (((isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 127, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 127, $this->source); })()), "pageSize", [], "any", false, false, false, 127))) {
// line 128
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 128, $this->source); })()), "hasNextPage", [], "any", false, false, false, 128)) {
// line 129
yield " <li class=\"next mx-1\"><a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 129, $this->source); })()), "slugurl", [], "any", false, false, false, 129)]), "html", null, true);
yield "?page=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 129, $this->source); })()), "nextPage", [], "any", false, false, false, 129), "html", null, true);
yield "\" rel=\"next\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.next", [], "variable"), "html", null, true);
yield " <i class=\"fa-solid fa-arrow-right-long\"></i></a></li>
";
} else {
// line 131
yield " <li class=\"next disabled mx-1\"><span>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.next", [], "variable"), "html", null, true);
yield " <i class=\"fa-solid fa-arrow-right-long\"></i></span></li>
";
}
// line 133
yield " ";
}
// line 134
yield "
</ul>
</div>
</div>
";
}
// line 139
yield " </div>
";
}
// line 140
yield "
";
// line 143
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($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); })()), "textecategorie2", [], "any", false, false, false, 143))) {
// line 144
yield " <div class=\"col-sm-12 ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ["1" => "text-center", "2" => "text-start", "3" => "text-end"], CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 144, $this->source); })()), "positiontext", [], "any", false, false, false, 144), [], "array", true, true, false, 144)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ["1" => "text-center", "2" => "text-start", "3" => "text-end"], CoreExtension::getAttribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 144, $this->source); })()), "positiontext", [], "any", false, false, false, 144), [], "array", false, false, false, 144), "1")) : ("1")), "html", null, true);
yield "\">
<div class=\"texte-content\">";
// line 145
yield $this->extensions['App\Twig\MotClePostExtension']->ContentChangeByMotCleFunction(CoreExtension::getAttribute($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); })()), "id", [], "any", false, false, false, 145), Twig\Extension\CoreExtension::replace(CoreExtension::getAttribute($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); })()), "textecategorie2", [], "any", false, false, false, 145), ["[NDD]" => (isset($context["lien_site"]) || array_key_exists("lien_site", $context) ? $context["lien_site"] : (function () { throw new RuntimeError('Variable "lien_site" does not exist.', 145, $this->source); })())]));
yield "</div>
</div>
";
}
// line 148
yield " </div>
</div>
</div>
";
}
// line 151
yield "
";
// line 153
if (array_key_exists("blocs", $context)) {
// line 154
yield " ";
yield Twig\Extension\CoreExtension::include($this->env, $context, (("theme/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 154, $this->source); })()), "request", [], "any", false, false, false, 154), "server", [], "any", false, false, false, 154), "get", ["APP_THEME"], "method", false, false, false, 154)) . "/partials/bloc_render.html.twig"), ["blocs" => (isset($context["blocs"]) || array_key_exists("blocs", $context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.', 154, $this->source); })())], false);
yield "
";
}
// line 156
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "theme/default/page_categorie_custom.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 473 => 156, 467 => 154, 465 => 153, 461 => 151, 455 => 148, 449 => 145, 444 => 144, 442 => 143, 437 => 140, 433 => 139, 426 => 134, 423 => 133, 417 => 131, 407 => 129, 404 => 128, 402 => 127, 399 => 126, 396 => 125, 390 => 124, 380 => 122, 374 => 120, 371 => 119, 366 => 118, 363 => 117, 357 => 115, 347 => 113, 345 => 112, 341 => 110, 339 => 109, 336 => 108, 334 => 107, 329 => 104, 323 => 103, 321 => 102, 318 => 101, 315 => 100, 313 => 99, 308 => 96, 305 => 95, 303 => 94, 299 => 92, 296 => 91, 285 => 86, 280 => 84, 277 => 83, 274 => 82, 271 => 81, 268 => 80, 265 => 79, 263 => 78, 260 => 77, 255 => 76, 253 => 75, 249 => 73, 243 => 70, 240 => 69, 238 => 68, 235 => 67, 227 => 62, 222 => 61, 220 => 60, 216 => 58, 214 => 57, 210 => 55, 207 => 54, 199 => 51, 196 => 50, 194 => 49, 187 => 47, 184 => 46, 182 => 45, 175 => 43, 172 => 42, 169 => 41, 167 => 40, 164 => 39, 158 => 37, 156 => 36, 151 => 34, 148 => 33, 140 => 30, 137 => 29, 135 => 28, 131 => 27, 125 => 23, 123 => 22, 119 => 20, 115 => 19, 113 => 18, 112 => 17, 111 => 16, 110 => 15, 108 => 14, 106 => 13, 101 => 12, 91 => 11, 76 => 6, 74 => 5, 69 => 4, 59 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"theme/\"~ app.request.server.get('APP_THEME') ~\"/partials/base.html.twig\" %}
{% block stylesheets %}
\t{{parent()}}
{% if categorie.customstyle is not empty %}
\t <style>{{categorie.customstyle|raw}}</style>
\t{% endif %}
{% endblock %}
{% block body %}
<div id=\"{{id_page}}\" class=\"page-categorie\">
{% if breadcrumb is defined and breadcrumb is not empty %}
{{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig',{
breadcrumb: breadcrumb,
titre_page: titre_page|default(''),
image_bandeau: image_bandeau,
image_bandeau_alt:image_bandeau_alt
}, with_context = false)}}
{% endif %}
{% if categorie.textecategorie is not empty or categorie.urlvideo is not empty or galleries is not empty or articles is not empty or liste_sous_categorie is not empty %}
<div class=\"container-fluid content-wrapper\">
<div class=\"content-area\">
<div class=\"row content_page\">
<div class=\"col-sm-12 {{ { '1': 'text-center', '2': 'text-start', '3': 'text-end' }[categorie.positiontext] | default('1') }}\" >
{% if categorie.image %}
<div class=\"col-image-post text-center\">
<img class=\"img-fluid principal-img\" src=\"{{asset_image(categorie.image,'medium',['1024x/uploads','800x/uploads','800x/uploads'])}}\" alt=\"{{categorie.altimage is not empty ? categorie.altimage : categorie.titrecategorie}}\" />
</div>
{% endif %}
{% set lien_site = \"<a href=\"~websiteUrl()~\" title=\"~site_parameters.getParameters().titre~\">\"~websiteUrl()~\"</a>\" %}
{% if categorie.textecategorie is not empty %}
<div class=\"texte-content\">{{ContentChangeByMotCle(categorie.id,categorie.textecategorie|replace({'[NDD]':lien_site}))|raw}}</div>
{% endif %}
{% if categorie.typelien != 1 %}
{% if categorie.typelien == '4' %}
<div class=\"text-center py-2\">
<a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% elseif categorie.typelien == '2' %}
<div class=\"text-center py-2\">
<a href=\"{{resolveInternalSlugLink(categorie.lieninterne)}}\" class=\"btn btn-theme 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}}\" target=\"_blank\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
</div>
{% endif %}
{% endif %}
</div>
{% if categorie.urlvideo is not empty %}
<div class=\"col-sm-12\">
<div class=\"contenu-video\">
{% set id_video_externe = extract_youtube_id(categorie.urlvideo) %}
<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=\"youtube vidéo\"/>
</a>
</div>
</div>
{% endif %}
{% if galleries and galleries is not empty and twig_galerie is defined and twig_galerie is not empty %}
<div class=\"col-sm-12\">
{{ include(template_from_string(twig_galerie)) }}
</div>
{% endif %}
{% if liste_sous_categorie is defined and liste_sous_categorie is not empty %}
{% for item in liste_sous_categorie %}
<div class=\"col-sm-12 col-md-2\">
{% if systemName == \"actualites\" %}
{% set link = item.slugurl %}
{% else %}
{% set link = app.request.attributes.get('slug') ~'/'~ item.slugurl %}
{% endif %}
<a href=\"{{path('page',{slug: link})}}\">
<div class=\"cta-categorie\">
{{item.titrecategorie}}
</div>
</a>
</div>
{% endfor %}
{% endif %}
{% set resultats = categorie.pagination == true ?articles.results:articles %}
{% if resultats is not empty %}
<div class=\"col-sm-12\">
<hr/>
{% set data_columns = { '0':'3','1': '3', '2': '1', '4': '1' }[categorie.multiaffichage] %}
{% set data_style = { '0':'compact','1': 'compact', '2': 'wide', '4': 'wide' }[categorie.multiaffichage] %}
{% if template is defined and template is not empty %}
{{ include(template_from_string(template.twig)) }}
{% endif %}
{% if categorie.pagination == true and articles.pageSize and categorie.pagesize < resultats|length %}
<div class=\"pagination-items\">
{% set paginator = articles %}
<div class=\"navigation text-center\">
<ul class=\"pagination d-felx justify-content-center align-items-center my-4\">
{% if paginator.hasPreviousPage %}
<li class=\"prev mx-1\"><a href=\"{{ path('page', {slug:categorie.slugurl}) }}?page={{paginator.previousPage}}\" rel=\"previous\"><i class=\"fa-solid fa-arrow-left-long\"></i> {{ 'paginator.previous'|trans([],'variable') }}</a></li>
{% else %}
<li class=\"prev disabled mx-1\"><span><i class=\"fa-solid fa-arrow-left-long\"></i> {{ 'paginator.previous'|trans([],'variable') }}</span></li>
{% endif %}
{% if paginator and paginator.pageSize %}
{% for i in 1..paginator.lastPage %}
{% if i == paginator.currentPage %}
<li class=\"active number mx-1\"><span>{{ i }} </span></li>
{% else %}
<li class=\"number mx-1\"><a href=\"{{ path('page', {slug:categorie.slugurl}) }}?page={{i}}\">{{ i }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
{% if paginator and paginator.pageSize %}
{% if paginator.hasNextPage %}
<li class=\"next mx-1\"><a href=\"{{ path('page', {slug:categorie.slugurl}) }}?page={{paginator.nextPage}}\" rel=\"next\">{{ 'paginator.next'|trans([],'variable') }} <i class=\"fa-solid fa-arrow-right-long\"></i></a></li>
{% else %}
<li class=\"next disabled mx-1\"><span>{{ 'paginator.next'|trans([],'variable')}} <i class=\"fa-solid fa-arrow-right-long\"></i></span></li>
{% endif %}
{% endif %}
</ul>
</div>
</div>
{% endif %}
</div>
{% endif %}
{% if categorie.textecategorie2 is not empty %}
<div class=\"col-sm-12 {{ { '1': 'text-center', '2': 'text-start', '3': 'text-end' }[categorie.positiontext] | default('1') }}\">
<div class=\"texte-content\">{{ContentChangeByMotCle(categorie.id,categorie.textecategorie2|replace({'[NDD]':lien_site}))|raw}}</div>
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
{% if blocs is defined %}
{{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/partials/bloc_render.html.twig',{blocs: blocs}, with_context = false)}}
{% endif %}
</div>
{% endblock %}
", "theme/default/page_categorie_custom.html.twig", "/var/www/vhosts/klean.studiojna.fr/httpdocs/templates/theme/default/page_categorie_custom.html.twig");
}
}