var/cache/dev/twig/22/22273cb1780f80ada0d996d3fa8a894a.php line 70

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* theme/default/page_categorie_custom.html.twig */
  15. class __TwigTemplate_5d8389feadc5c9b1031ebf324dc70fad extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->blocks = [
  24. 'stylesheets' => [$this, 'block_stylesheets'],
  25. 'body' => [$this, 'block_body'],
  26. ];
  27. }
  28. protected function doGetParent(array $context)
  29. {
  30. // line 1
  31. 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);
  32. }
  33. protected function doDisplay(array $context, array $blocks = [])
  34. {
  35. $macros = $this->macros;
  36. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "theme/default/page_categorie_custom.html.twig"));
  38. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "theme/default/page_categorie_custom.html.twig"));
  40. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  43. }
  44. // line 3
  45. public function block_stylesheets($context, array $blocks = [])
  46. {
  47. $macros = $this->macros;
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  52. // line 4
  53. yield "\t";
  54. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  55. yield "
  56. ";
  57. // line 5
  58. 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))) {
  59. // line 6
  60. yield "\t <style>";
  61. 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);
  62. yield "</style>
  63. \t";
  64. }
  65. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67. return; yield '';
  68. }
  69. // line 11
  70. public function block_body($context, array $blocks = [])
  71. {
  72. $macros = $this->macros;
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  77. // line 12
  78. yield " <div id=\"";
  79. 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);
  80. yield "\" class=\"page-categorie\">
  81. ";
  82. // line 13
  83. 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); })())))) {
  84. // line 14
  85. yield " ";
  86. 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
  87. (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
  88. 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
  89. (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
  90. (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);
  91. // line 19
  92. yield "
  93. ";
  94. }
  95. // line 20
  96. yield "
  97. ";
  98. // line 22
  99. 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); })())))) {
  100. // line 23
  101. yield " <div class=\"container-fluid content-wrapper\">
  102. <div class=\"content-area\">
  103. <div class=\"row content_page\">
  104. <div class=\"col-sm-12 ";
  105. // line 27
  106. 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);
  107. yield "\" >
  108. ";
  109. // line 28
  110. 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)) {
  111. // line 29
  112. yield " <div class=\"col-image-post text-center\">
  113. <img class=\"img-fluid principal-img\" src=\"";
  114. // line 30
  115. 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);
  116. yield "\" alt=\"";
  117. 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);
  118. yield "\" />
  119. </div>
  120. ";
  121. }
  122. // line 33
  123. yield "
  124. ";
  125. // line 34
  126. $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>");
  127. yield "
  128. ";
  129. // line 36
  130. 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))) {
  131. // line 37
  132. yield " <div class=\"texte-content\">";
  133. 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); })())]));
  134. yield "</div>
  135. ";
  136. }
  137. // line 39
  138. yield "
  139. ";
  140. // line 40
  141. 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)) {
  142. // line 41
  143. yield " ";
  144. 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")) {
  145. // line 42
  146. yield " <div class=\"text-center py-2\">
  147. <a href=\"tel:";
  148. // line 43
  149. 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);
  150. yield "\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">";
  151. 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);
  152. yield "</a>
  153. </div>
  154. ";
  155. } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 45
  156. (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")) {
  157. // line 46
  158. yield " <div class=\"text-center py-2\">
  159. <a href=\"";
  160. // line 47
  161. 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);
  162. yield "\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">";
  163. 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);
  164. yield "</a>
  165. </div>
  166. ";
  167. } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 49
  168. (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")) {
  169. // line 50
  170. yield " <div class=\"text-center py-2\">
  171. <a href=\"";
  172. // line 51
  173. 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);
  174. yield "\" target=\"_blank\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">";
  175. 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);
  176. yield "</a>
  177. </div>
  178. ";
  179. }
  180. // line 54
  181. yield " ";
  182. }
  183. // line 55
  184. yield " </div>
  185. ";
  186. // line 57
  187. 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))) {
  188. // line 58
  189. yield " <div class=\"col-sm-12\">
  190. <div class=\"contenu-video\">
  191. ";
  192. // line 60
  193. $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));
  194. // line 61
  195. yield " <a class=\"video-thumbnail m-0\" href=\"";
  196. 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);
  197. yield "\" data-fancybox=\"video\">
  198. <img src=\"https://img.youtube.com/vi/";
  199. // line 62
  200. 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);
  201. yield "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"youtube vidéo\"/>
  202. </a>
  203. </div>
  204. </div>
  205. ";
  206. }
  207. // line 67
  208. yield "
  209. ";
  210. // line 68
  211. 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); })())))) {
  212. // line 69
  213. yield " <div class=\"col-sm-12\">
  214. ";
  215. // line 70
  216. 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); })())));
  217. yield "
  218. </div>
  219. ";
  220. }
  221. // line 73
  222. yield "
  223. ";
  224. // line 75
  225. 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); })())))) {
  226. // line 76
  227. yield " ";
  228. $context['_parent'] = $context;
  229. $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); })()));
  230. foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  231. // line 77
  232. yield " <div class=\"col-sm-12 col-md-2\">
  233. ";
  234. // line 78
  235. if (((isset($context["systemName"]) || array_key_exists("systemName", $context) ? $context["systemName"] : (function () { throw new RuntimeError('Variable "systemName" does not exist.', 78, $this->source); })()) == "actualites")) {
  236. // line 79
  237. yield " ";
  238. $context["link"] = CoreExtension::getAttribute($this->env, $this->source, $context["item"], "slugurl", [], "any", false, false, false, 79);
  239. // line 80
  240. yield " ";
  241. } else {
  242. // line 81
  243. yield " ";
  244. $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));
  245. // line 82
  246. yield " ";
  247. }
  248. // line 83
  249. yield "
  250. <a href=\"";
  251. // line 84
  252. 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);
  253. yield "\">
  254. <div class=\"cta-categorie\">
  255. ";
  256. // line 86
  257. 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);
  258. yield "
  259. </div>
  260. </a>
  261. </div>
  262. ";
  263. }
  264. $_parent = $context['_parent'];
  265. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  266. $context = array_intersect_key($context, $_parent) + $_parent;
  267. // line 91
  268. yield " ";
  269. }
  270. // line 92
  271. yield "
  272. ";
  273. // line 94
  274. $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); })())));
  275. // line 95
  276. yield " ";
  277. 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); })()))) {
  278. // line 96
  279. yield "
  280. <div class=\"col-sm-12\">
  281. <hr/>
  282. ";
  283. // line 99
  284. $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);
  285. // line 100
  286. yield " ";
  287. $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);
  288. // line 101
  289. yield "
  290. ";
  291. // line 102
  292. 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); })())))) {
  293. // line 103
  294. yield " ";
  295. 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)));
  296. yield "
  297. ";
  298. }
  299. // line 104
  300. yield "
  301. ";
  302. // line 107
  303. 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); })()))))) {
  304. // line 108
  305. yield " <div class=\"pagination-items\">
  306. ";
  307. // line 109
  308. $context["paginator"] = (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 109, $this->source); })());
  309. // line 110
  310. yield " <div class=\"navigation text-center\">
  311. <ul class=\"pagination d-felx justify-content-center align-items-center my-4\">
  312. ";
  313. // line 112
  314. 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)) {
  315. // line 113
  316. yield " <li class=\"prev mx-1\"><a href=\"";
  317. 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);
  318. yield "?page=";
  319. 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);
  320. yield "\" rel=\"previous\"><i class=\"fa-solid fa-arrow-left-long\"></i> ";
  321. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.previous", [], "variable"), "html", null, true);
  322. yield "</a></li>
  323. ";
  324. } else {
  325. // line 115
  326. yield " <li class=\"prev disabled mx-1\"><span><i class=\"fa-solid fa-arrow-left-long\"></i> ";
  327. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.previous", [], "variable"), "html", null, true);
  328. yield "</span></li>
  329. ";
  330. }
  331. // line 117
  332. yield " ";
  333. 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))) {
  334. // line 118
  335. yield " ";
  336. $context['_parent'] = $context;
  337. $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)));
  338. foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  339. // line 119
  340. yield " ";
  341. 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))) {
  342. // line 120
  343. yield " <li class=\"active number mx-1\"><span>";
  344. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["i"], "html", null, true);
  345. yield " </span></li>
  346. ";
  347. } else {
  348. // line 122
  349. yield " <li class=\"number mx-1\"><a href=\"";
  350. 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);
  351. yield "?page=";
  352. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["i"], "html", null, true);
  353. yield "\">";
  354. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["i"], "html", null, true);
  355. yield "</a></li>
  356. ";
  357. }
  358. // line 124
  359. yield " ";
  360. }
  361. $_parent = $context['_parent'];
  362. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  363. $context = array_intersect_key($context, $_parent) + $_parent;
  364. // line 125
  365. yield " ";
  366. }
  367. // line 126
  368. yield "
  369. ";
  370. // line 127
  371. 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))) {
  372. // line 128
  373. yield " ";
  374. 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)) {
  375. // line 129
  376. yield " <li class=\"next mx-1\"><a href=\"";
  377. 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);
  378. yield "?page=";
  379. 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);
  380. yield "\" rel=\"next\">";
  381. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.next", [], "variable"), "html", null, true);
  382. yield " <i class=\"fa-solid fa-arrow-right-long\"></i></a></li>
  383. ";
  384. } else {
  385. // line 131
  386. yield " <li class=\"next disabled mx-1\"><span>";
  387. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("paginator.next", [], "variable"), "html", null, true);
  388. yield " <i class=\"fa-solid fa-arrow-right-long\"></i></span></li>
  389. ";
  390. }
  391. // line 133
  392. yield " ";
  393. }
  394. // line 134
  395. yield "
  396. </ul>
  397. </div>
  398. </div>
  399. ";
  400. }
  401. // line 139
  402. yield " </div>
  403. ";
  404. }
  405. // line 140
  406. yield "
  407. ";
  408. // line 143
  409. 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))) {
  410. // line 144
  411. yield " <div class=\"col-sm-12 ";
  412. 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);
  413. yield "\">
  414. <div class=\"texte-content\">";
  415. // line 145
  416. 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); })())]));
  417. yield "</div>
  418. </div>
  419. ";
  420. }
  421. // line 148
  422. yield " </div>
  423. </div>
  424. </div>
  425. ";
  426. }
  427. // line 151
  428. yield "
  429. ";
  430. // line 153
  431. if (array_key_exists("blocs", $context)) {
  432. // line 154
  433. yield " ";
  434. 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);
  435. yield "
  436. ";
  437. }
  438. // line 156
  439. yield " </div>
  440. ";
  441. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  442. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  443. return; yield '';
  444. }
  445. /**
  446. * @codeCoverageIgnore
  447. */
  448. public function getTemplateName()
  449. {
  450. return "theme/default/page_categorie_custom.html.twig";
  451. }
  452. /**
  453. * @codeCoverageIgnore
  454. */
  455. public function isTraitable()
  456. {
  457. return false;
  458. }
  459. /**
  460. * @codeCoverageIgnore
  461. */
  462. public function getDebugInfo()
  463. {
  464. 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,);
  465. }
  466. public function getSourceContext()
  467. {
  468. return new Source("{% extends \"theme/\"~ app.request.server.get('APP_THEME') ~\"/partials/base.html.twig\" %}
  469. {% block stylesheets %}
  470. \t{{parent()}}
  471. {% if categorie.customstyle is not empty %}
  472. \t <style>{{categorie.customstyle|raw}}</style>
  473. \t{% endif %}
  474. {% endblock %}
  475. {% block body %}
  476. <div id=\"{{id_page}}\" class=\"page-categorie\">
  477. {% if breadcrumb is defined and breadcrumb is not empty %}
  478. {{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig',{
  479. breadcrumb: breadcrumb,
  480. titre_page: titre_page|default(''),
  481. image_bandeau: image_bandeau,
  482. image_bandeau_alt:image_bandeau_alt
  483. }, with_context = false)}}
  484. {% endif %}
  485. {% 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 %}
  486. <div class=\"container-fluid content-wrapper\">
  487. <div class=\"content-area\">
  488. <div class=\"row content_page\">
  489. <div class=\"col-sm-12 {{ { '1': 'text-center', '2': 'text-start', '3': 'text-end' }[categorie.positiontext] | default('1') }}\" >
  490. {% if categorie.image %}
  491. <div class=\"col-image-post text-center\">
  492. <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}}\" />
  493. </div>
  494. {% endif %}
  495. {% set lien_site = \"<a href=\"~websiteUrl()~\" title=\"~site_parameters.getParameters().titre~\">\"~websiteUrl()~\"</a>\" %}
  496. {% if categorie.textecategorie is not empty %}
  497. <div class=\"texte-content\">{{ContentChangeByMotCle(categorie.id,categorie.textecategorie|replace({'[NDD]':lien_site}))|raw}}</div>
  498. {% endif %}
  499. {% if categorie.typelien != 1 %}
  500. {% if categorie.typelien == '4' %}
  501. <div class=\"text-center py-2\">
  502. <a href=\"tel:{{categorie.telephone}}\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
  503. </div>
  504. {% elseif categorie.typelien == '2' %}
  505. <div class=\"text-center py-2\">
  506. <a href=\"{{resolveInternalSlugLink(categorie.lieninterne)}}\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
  507. </div>
  508. {% elseif categorie.typelien == '3' %}
  509. <div class=\"text-center py-2\">
  510. <a href=\"{{categorie.lienexterne}}\" target=\"_blank\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">{{categorie.titrelien}}</a>
  511. </div>
  512. {% endif %}
  513. {% endif %}
  514. </div>
  515. {% if categorie.urlvideo is not empty %}
  516. <div class=\"col-sm-12\">
  517. <div class=\"contenu-video\">
  518. {% set id_video_externe = extract_youtube_id(categorie.urlvideo) %}
  519. <a class=\"video-thumbnail m-0\" href=\"{{categorie.urlvideo}}\" data-fancybox=\"video\">
  520. <img src=\"https://img.youtube.com/vi/{{id_video_externe}}/maxresdefault.jpg\" class=\"img-fluid\" alt=\"youtube vidéo\"/>
  521. </a>
  522. </div>
  523. </div>
  524. {% endif %}
  525. {% if galleries and galleries is not empty and twig_galerie is defined and twig_galerie is not empty %}
  526. <div class=\"col-sm-12\">
  527. {{ include(template_from_string(twig_galerie)) }}
  528. </div>
  529. {% endif %}
  530. {% if liste_sous_categorie is defined and liste_sous_categorie is not empty %}
  531. {% for item in liste_sous_categorie %}
  532. <div class=\"col-sm-12 col-md-2\">
  533. {% if systemName == \"actualites\" %}
  534. {% set link = item.slugurl %}
  535. {% else %}
  536. {% set link = app.request.attributes.get('slug') ~'/'~ item.slugurl %}
  537. {% endif %}
  538. <a href=\"{{path('page',{slug: link})}}\">
  539. <div class=\"cta-categorie\">
  540. {{item.titrecategorie}}
  541. </div>
  542. </a>
  543. </div>
  544. {% endfor %}
  545. {% endif %}
  546. {% set resultats = categorie.pagination == true ?articles.results:articles %}
  547. {% if resultats is not empty %}
  548. <div class=\"col-sm-12\">
  549. <hr/>
  550. {% set data_columns = { '0':'3','1': '3', '2': '1', '4': '1' }[categorie.multiaffichage] %}
  551. {% set data_style = { '0':'compact','1': 'compact', '2': 'wide', '4': 'wide' }[categorie.multiaffichage] %}
  552. {% if template is defined and template is not empty %}
  553. {{ include(template_from_string(template.twig)) }}
  554. {% endif %}
  555. {% if categorie.pagination == true and articles.pageSize and categorie.pagesize < resultats|length %}
  556. <div class=\"pagination-items\">
  557. {% set paginator = articles %}
  558. <div class=\"navigation text-center\">
  559. <ul class=\"pagination d-felx justify-content-center align-items-center my-4\">
  560. {% if paginator.hasPreviousPage %}
  561. <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>
  562. {% else %}
  563. <li class=\"prev disabled mx-1\"><span><i class=\"fa-solid fa-arrow-left-long\"></i> {{ 'paginator.previous'|trans([],'variable') }}</span></li>
  564. {% endif %}
  565. {% if paginator and paginator.pageSize %}
  566. {% for i in 1..paginator.lastPage %}
  567. {% if i == paginator.currentPage %}
  568. <li class=\"active number mx-1\"><span>{{ i }} </span></li>
  569. {% else %}
  570. <li class=\"number mx-1\"><a href=\"{{ path('page', {slug:categorie.slugurl}) }}?page={{i}}\">{{ i }}</a></li>
  571. {% endif %}
  572. {% endfor %}
  573. {% endif %}
  574. {% if paginator and paginator.pageSize %}
  575. {% if paginator.hasNextPage %}
  576. <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>
  577. {% else %}
  578. <li class=\"next disabled mx-1\"><span>{{ 'paginator.next'|trans([],'variable')}} <i class=\"fa-solid fa-arrow-right-long\"></i></span></li>
  579. {% endif %}
  580. {% endif %}
  581. </ul>
  582. </div>
  583. </div>
  584. {% endif %}
  585. </div>
  586. {% endif %}
  587. {% if categorie.textecategorie2 is not empty %}
  588. <div class=\"col-sm-12 {{ { '1': 'text-center', '2': 'text-start', '3': 'text-end' }[categorie.positiontext] | default('1') }}\">
  589. <div class=\"texte-content\">{{ContentChangeByMotCle(categorie.id,categorie.textecategorie2|replace({'[NDD]':lien_site}))|raw}}</div>
  590. </div>
  591. {% endif %}
  592. </div>
  593. </div>
  594. </div>
  595. {% endif %}
  596. {% if blocs is defined %}
  597. {{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/partials/bloc_render.html.twig',{blocs: blocs}, with_context = false)}}
  598. {% endif %}
  599. </div>
  600. {% endblock %}
  601. ", "theme/default/page_categorie_custom.html.twig", "/var/www/vhosts/klean.studiojna.fr/httpdocs/templates/theme/default/page_categorie_custom.html.twig");
  602. }
  603. }