var/cache/dev/twig/c3/c38c2853217ccc6188c00b0b4eba72a3.php line 41

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front/theme1/page_cms.html.twig */
  14. class __TwigTemplate_45456ff6d08d383431eb6e409253acd5 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'preload' => [$this'block_preload'],
  24.             'stylesheets' => [$this'block_stylesheets'],
  25.             'body' => [$this'block_body'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return $this->loadTemplate((("front/" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1$this->source); })()), "request", [], "any"falsefalsefalse1), "server", [], "any"falsefalsefalse1), "get", [=> "APP_THEME"], "method"falsefalsefalse1)) . "/base.html.twig"), "front/theme1/page_cms.html.twig"1);
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/theme1/page_cms.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/theme1/page_cms.html.twig"));
  41.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_preload($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""preload"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""preload"));
  55.         // line 4
  56.         echo "    ";
  57.         if ((twig_get_attribute($this->env$this->source, ($context["post"] ?? null), "image", [], "any"truetruefalse4) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'4$this->source); })()), "image", [], "any"falsefalsefalse4)))) {
  58.             // line 5
  59.             echo "        ";
  60.             if (twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'5$this->source); })()), "image", [], "any"falsefalsefalse5)) {
  61.                 // line 6
  62.                 echo "            <link rel=\"preload\" as=\"image\" href=\"";
  63.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'6$this->source); })()), "image", [], "any"falsefalsefalse6)), "html"nulltrue);
  64.                 echo "\" />
  65.         ";
  66.             }
  67.             // line 8
  68.             echo "    ";
  69.         }
  70.         // line 9
  71.         echo "
  72.      ";
  73.         // line 10
  74.         if ((array_key_exists("galleries"$context) &&  !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries"$context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.'10$this->source); })())))) {
  75.             // line 11
  76.             echo "           ";
  77.             $context['_parent'] = $context;
  78.             $context['_seq'] = twig_ensure_traversable((isset($context["galleries"]) || array_key_exists("galleries"$context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.'11$this->source); })()));
  79.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  80.                 // line 12
  81.                 echo "                ";
  82.                 if (twig_get_attribute($this->env$this->source$context["item"], "path", [], "any"truetruefalse12)) {
  83.                     // line 13
  84.                     echo "                    <link rel=\"preload\" as=\"image\" href=\"";
  85.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\ImagesExtenstion']->AssetImageGalleryFunction(twig_get_attribute($this->env$this->source$context["item"], "path", [], "any"falsefalsefalse13)), "html"nulltrue);
  86.                     echo "\" />
  87.                 ";
  88.                 }
  89.                 // line 15
  90.                 echo "           ";
  91.             }
  92.             $_parent $context['_parent'];
  93.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  94.             $context array_intersect_key($context$_parent) + $_parent;
  95.             // line 16
  96.             echo "    ";
  97.         }
  98.         // line 17
  99.         echo "
  100. ";
  101.         
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  103.         
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  105.     }
  106.     // line 20
  107.     public function block_stylesheets($context, array $blocks = [])
  108.     {
  109.         $macros $this->macros;
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  114.         // line 21
  115.         echo "    ";
  116.         $this->displayParentBlock("stylesheets"$context$blocks);
  117.         echo "
  118.     ";
  119.         // line 22
  120.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie"$context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.'22$this->source); })()), 0, [], "array"falsefalsefalse22), "type", [], "any"falsefalsefalse22) == 4)) {
  121.             // line 23
  122.             echo "        <link rel=\"stylesheet\" type=\"text/css\" href=\"";
  123.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/flexslider/flexslider.css"), "html"nulltrue);
  124.             echo "\" media=\"screen\" >
  125.     ";
  126.         }
  127.         
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  129.         
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  131.     }
  132.     // line 27
  133.     public function block_body($context, array $blocks = [])
  134.     {
  135.         $macros $this->macros;
  136.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  138.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  140.         // line 28
  141.         echo "
  142.     ";
  143.         // line 29
  144.         if (twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'29$this->source); })()), "imageBandeau", [], "any"falsefalsefalse29)) {
  145.             // line 30
  146.             echo "        ";
  147.             $context["imagebandeau"] = twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'30$this->source); })()), "imageBandeau", [], "any"falsefalsefalse30);
  148.             // line 31
  149.             echo "    ";
  150.         } elseif (twig_get_attribute($this->env$this->source, (isset($context["parametre"]) || array_key_exists("parametre"$context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.'31$this->source); })()), "imageBandeau", [], "any"falsefalsefalse31)) {
  151.             // line 32
  152.             echo "        ";
  153.             $context["imagebandeau"] = ("uploads/images/" twig_get_attribute($this->env$this->source, (isset($context["parametre"]) || array_key_exists("parametre"$context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.'32$this->source); })()), "imageBandeau", [], "any"falsefalsefalse32));
  154.             // line 33
  155.             echo "    ";
  156.         } else {
  157.             // line 34
  158.             echo "        ";
  159.             $context["imagebandeau"] = "";
  160.             // line 35
  161.             echo "    ";
  162.         }
  163.         // line 36
  164.         echo "    
  165.     ";
  166.         // line 37
  167.         if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau"$context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.'37$this->source); })()) != "")) {
  168.             // line 38
  169.             echo "        <section class=\"image-bandeau text-center\">
  170.             <img class=\"lazyload\" alt=\"";
  171.             // line 39
  172.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'39$this->source); })()), "title", [], "any"falsefalsefalse39), "html"nulltrue);
  173.             echo "\" title=\"";
  174.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'39$this->source); })()), "title", [], "any"falsefalsefalse39), "html"nulltrue);
  175.             echo "\" data-srcset=\"";
  176.             echo twig_escape_filter($this->env, (isset($context["imagebandeau"]) || array_key_exists("imagebandeau"$context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.'39$this->source); })()), "html"nulltrue);
  177.             echo "\" src=\"";
  178.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imagebandeau"]) || array_key_exists("imagebandeau"$context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.'39$this->source); })())), "html"nulltrue);
  179.             echo "\" />
  180.             <div class=\"cnt-bandeau text-center\">
  181. \t\t\t\t<div class=\"container-fluid wrapper\">
  182.                     <ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
  183.                                 <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
  184.             // line 43
  185.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
  186.             echo "\" itemprop=\"item\"><span itemprop=\"name\">";
  187.             echo twig_escape_filter($this->env, (isset($context["title_home_ariane"]) || array_key_exists("title_home_ariane"$context) ? $context["title_home_ariane"] : (function () { throw new RuntimeError('Variable "title_home_ariane" does not exist.'43$this->source); })()), "html"nulltrue);
  188.             echo "</span></a><meta itemprop=\"position\" content=\"1\" /></li>
  189.                                 ";
  190.             // line 44
  191.             $context["niveau"] = 2;
  192.             // line 45
  193.             echo "                                ";
  194.             if ((isset($context["categorieTree"]) || array_key_exists("categorieTree"$context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.'45$this->source); })())) {
  195.                 // line 46
  196.                 echo "                                        ";
  197.                 $context['_parent'] = $context;
  198.                 $context['_seq'] = twig_ensure_traversable((isset($context["categorieTree"]) || array_key_exists("categorieTree"$context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.'46$this->source); })()));
  199.                 foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  200.                     // line 47
  201.                     echo "                                            <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
  202.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env$this->source$context["item"], "slug", [], "any"falsefalsefalse47)]), "html"nulltrue);
  203.                     echo "\" title=\"";
  204.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "titre", [], "any"falsefalsefalse47), "html"nulltrue);
  205.                     echo "\" itemprop=\"item\"><span itemprop=\"name\">";
  206.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "titre", [], "any"falsefalsefalse47), "html"nulltrue);
  207.                     echo "</span></a><meta itemprop=\"position\" content=\"2\" /></li> 
  208.                                             ";
  209.                     // line 48
  210.                     $context["niveau"] = 3;
  211.                     // line 49
  212.                     echo "                                            ";
  213.                     if (twig_get_attribute($this->env$this->source$context["item"], "child", [], "any"truetruefalse49)) {
  214.                         // line 50
  215.                         echo "                                                ";
  216.                         $context['_parent'] = $context;
  217.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["item"], "child", [], "any"falsefalsefalse50));
  218.                         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  219.                             // line 51
  220.                             echo "                                                    <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
  221.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env$this->source$context["item"], "slug", [], "any"falsefalsefalse51)]), "html"nulltrue);
  222.                             echo "\" title=\"";
  223.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "titre", [], "any"falsefalsefalse51), "html"nulltrue);
  224.                             echo "\" itemprop=\"item\"><span itemprop=\"name\">";
  225.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "titre", [], "any"falsefalsefalse51), "html"nulltrue);
  226.                             echo "</span></a><meta itemprop=\"position\" content=\"3\" /></li> 
  227.                                                     ";
  228.                             // line 52
  229.                             $context["niveau"] = 4;
  230.                             // line 53
  231.                             echo "                                                ";
  232.                         }
  233.                         $_parent $context['_parent'];
  234.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  235.                         $context array_intersect_key($context$_parent) + $_parent;
  236.                         // line 54
  237.                         echo "                                            ";
  238.                     }
  239.                     // line 55
  240.                     echo "                                        ";
  241.                 }
  242.                 $_parent $context['_parent'];
  243.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  244.                 $context array_intersect_key($context$_parent) + $_parent;
  245.                 // line 56
  246.                 echo "                                ";
  247.             }
  248.             // line 57
  249.             echo "                                <li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">";
  250.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'57$this->source); })()), "breadcrumb", [], "any"falsefalsefalse57))) {
  251.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'57$this->source); })()), "breadcrumb", [], "any"falsefalsefalse57), "html"nulltrue);
  252.             } else {
  253.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'57$this->source); })()), "title", [], "any"falsefalsefalse57), "html"nulltrue);
  254.             }
  255.             echo "</span><meta itemprop=\"position\" content=\"";
  256.             echo twig_escape_filter($this->env, (isset($context["niveau"]) || array_key_exists("niveau"$context) ? $context["niveau"] : (function () { throw new RuntimeError('Variable "niveau" does not exist.'57$this->source); })()), "html"nulltrue);
  257.             echo "\" /></li>
  258.                             </ol>
  259.                             ";
  260.             // line 59
  261.             if ((isset($context["categorieTree"]) || array_key_exists("categorieTree"$context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.'59$this->source); })())) {
  262.                 // line 60
  263.                 echo "                                ";
  264.                 // line 61
  265.                 echo "                                    <a class=\"article-retour text-center\" href=\"";
  266.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree"$context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.'61$this->source); })()), 0, [], "array"falsefalsefalse61), "slug", [], "any"falsefalsefalse61)]), "html"nulltrue);
  267.                 echo "\" title=\"Retour\">Retour</a>
  268.                                 ";
  269.                 // line 63
  270.                 echo "                            ";
  271.             }
  272.             // line 64
  273.             echo "                            <h1 class=\"page-title\">";
  274.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'64$this->source); })()), "title", [], "any"falsefalsefalse64), "html"nulltrue);
  275.             echo "</h1>
  276.                 </div>
  277.             </div>
  278.         </section>
  279.     ";
  280.         }
  281.         // line 69
  282.         echo "    <div class=\"page_cms pt-5\">
  283.         ";
  284.         // line 70
  285.         if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau"$context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.'70$this->source); })()) == "")) {
  286.             // line 71
  287.             echo "        <div class=\"breadcrumb-style-default\">
  288.             <div class=\"container-fluid wrapper\">
  289.                 <div class=\"row\">
  290.                     <div class=\"col-lg-12\">
  291.                         <div class=\"inner text-center\">
  292.                             <ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
  293.                                 <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
  294.             // line 77
  295.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
  296.             echo "\" itemprop=\"item\"><span itemprop=\"name\">";
  297.             echo twig_escape_filter($this->env, (isset($context["title_home_ariane"]) || array_key_exists("title_home_ariane"$context) ? $context["title_home_ariane"] : (function () { throw new RuntimeError('Variable "title_home_ariane" does not exist.'77$this->source); })()), "html"nulltrue);
  298.             echo "</span></a><meta itemprop=\"position\" content=\"1\" /></li>
  299.                                 ";
  300.             // line 78
  301.             $context["niveau"] = 2;
  302.             // line 79
  303.             echo "                                ";
  304.             if ((isset($context["categorieTree"]) || array_key_exists("categorieTree"$context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.'79$this->source); })())) {
  305.                 // line 80
  306.                 echo "                                        ";
  307.                 $context['_parent'] = $context;
  308.                 $context['_seq'] = twig_ensure_traversable((isset($context["categorieTree"]) || array_key_exists("categorieTree"$context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.'80$this->source); })()));
  309.                 foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  310.                     // line 81
  311.                     echo "                                            <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
  312.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env$this->source$context["item"], "slug", [], "any"falsefalsefalse81)]), "html"nulltrue);
  313.                     echo "\" title=\"";
  314.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "titre", [], "any"falsefalsefalse81), "html"nulltrue);
  315.                     echo "\" itemprop=\"item\"><span itemprop=\"name\">";
  316.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "titre", [], "any"falsefalsefalse81), "html"nulltrue);
  317.                     echo "</span></a><meta itemprop=\"position\" content=\"2\" /></li> 
  318.                                             ";
  319.                     // line 82
  320.                     $context["niveau"] = 3;
  321.                     // line 83
  322.                     echo "                                            ";
  323.                     if (twig_get_attribute($this->env$this->source$context["item"], "child", [], "any"truetruefalse83)) {
  324.                         // line 84
  325.                         echo "                                                ";
  326.                         $context['_parent'] = $context;
  327.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["item"], "child", [], "any"falsefalsefalse84));
  328.                         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  329.                             // line 85
  330.                             echo "                                                    <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
  331.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env$this->source$context["item"], "slug", [], "any"falsefalsefalse85)]), "html"nulltrue);
  332.                             echo "\" title=\"";
  333.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "titre", [], "any"falsefalsefalse85), "html"nulltrue);
  334.                             echo "\" itemprop=\"item\"><span itemprop=\"name\">";
  335.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "titre", [], "any"falsefalsefalse85), "html"nulltrue);
  336.                             echo "</span></a><meta itemprop=\"position\" content=\"3\" /></li> 
  337.                                                     ";
  338.                             // line 86
  339.                             $context["niveau"] = 4;
  340.                             // line 87
  341.                             echo "                                                ";
  342.                         }
  343.                         $_parent $context['_parent'];
  344.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  345.                         $context array_intersect_key($context$_parent) + $_parent;
  346.                         // line 88
  347.                         echo "                                            ";
  348.                     }
  349.                     // line 89
  350.                     echo "                                        ";
  351.                 }
  352.                 $_parent $context['_parent'];
  353.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  354.                 $context array_intersect_key($context$_parent) + $_parent;
  355.                 // line 90
  356.                 echo "                                ";
  357.             }
  358.             // line 91
  359.             echo "                                <li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">";
  360.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'91$this->source); })()), "breadcrumb", [], "any"falsefalsefalse91))) {
  361.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'91$this->source); })()), "breadcrumb", [], "any"falsefalsefalse91), "html"nulltrue);
  362.             } else {
  363.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'91$this->source); })()), "title", [], "any"falsefalsefalse91), "html"nulltrue);
  364.             }
  365.             echo "</span><meta itemprop=\"position\" content=\"";
  366.             echo twig_escape_filter($this->env, (isset($context["niveau"]) || array_key_exists("niveau"$context) ? $context["niveau"] : (function () { throw new RuntimeError('Variable "niveau" does not exist.'91$this->source); })()), "html"nulltrue);
  367.             echo "\" /></li>
  368.                             </ol>
  369.                             ";
  370.             // line 94
  371.             if ((isset($context["categorieTree"]) || array_key_exists("categorieTree"$context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.'94$this->source); })())) {
  372.                 // line 95
  373.                 echo "                                ";
  374.                 // line 96
  375.                 echo "                                    <a class=\"article-retour text-center\" href=\"";
  376.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree"$context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.'96$this->source); })()), 0, [], "array"falsefalsefalse96), "slug", [], "any"falsefalsefalse96)]), "html"nulltrue);
  377.                 echo "\" title=\"Retour\">Retour</a>
  378.                                 ";
  379.                 // line 98
  380.                 echo "                            ";
  381.             }
  382.             // line 99
  383.             echo "
  384.                             <h1 class=\"page-title\">";
  385.             // line 100
  386.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'100$this->source); })()), "title", [], "any"falsefalsefalse100), "html"nulltrue);
  387.             echo "</h1>
  388.                         </div>
  389.                     </div>
  390.                 </div>
  391.             </div>
  392.         </div>
  393.         ";
  394.         }
  395.         // line 107
  396.         echo "
  397.         <div class=\"container-fluid wrapper mt-3\">
  398.             <div class=\"row gx-5 py-2\">
  399.                 ";
  400.         // line 110
  401.         if (( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'110$this->source); })()), "summary", [], "any"falsefalsefalse110)) && (twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'110$this->source); })()), "summary", [], "any"falsefalsefalse110) != ""))) {
  402.             // line 111
  403.             echo "                    <div class=\"col-sm-12 text-center\">
  404.                         <h2 class=\"sub-title wow\">";
  405.             // line 112
  406.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'112$this->source); })()), "summary", [], "any"falsefalsefalse112), "html"nulltrue);
  407.             echo "</h2>
  408.                     </div>
  409.                 ";
  410.         }
  411.         // line 115
  412.         echo "                
  413.                 ";
  414.         // line 116
  415.         if (((twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'116$this->source); })()), "image", [], "any"falsefalsefalse116) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'116$this->source); })()), "image", [], "any"falsefalsefalse116))) && twig_test_empty((isset($context["categorieTree"]) || array_key_exists("categorieTree"$context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.'116$this->source); })())))) {
  416.             // line 117
  417.             echo "                    <div class=\"col-sm-12 text-center my-4\">
  418.                         <img class=\"lazyload img-fluid principal-img\" data-srcset=\"";
  419.             // line 118
  420.             echo twig_escape_filter($this->env$this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'118$this->source); })()), "image", [], "any"falsefalsefalse118)), "html"nulltrue);
  421.             echo "\" src=\"";
  422.             echo twig_escape_filter($this->env$this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'118$this->source); })()), "image", [], "any"falsefalsefalse118)), "html"nulltrue);
  423.             echo "\" alt=\"";
  424.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'118$this->source); })()), "title", [], "any"falsefalsefalse118), "html"nulltrue);
  425.             echo "\" />
  426.                     </div>
  427.                 ";
  428.         }
  429.         // line 121
  430.         echo "
  431.                 ";
  432.         // line 122
  433.         if (( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'122$this->source); })()), "content", [], "any"falsefalsefalse122)) && (twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'122$this->source); })()), "content", [], "any"falsefalsefalse122) != ""))) {
  434.             // line 123
  435.             echo "                    <div class=\"col-lg-12 content_post\">
  436.                         ";
  437.             // line 124
  438.             echo twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'124$this->source); })()), "content", [], "any"falsefalsefalse124);
  439.             echo "
  440.                         ";
  441.             // line 126
  442.             if ((twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'126$this->source); })()), "typelien", [], "any"falsefalsefalse126) == null)) {
  443.                 // line 127
  444.                 echo "                            ";
  445.                 if ((array_key_exists("categorieTree"$context) && twig_get_attribute($this->env$this->source, ($context["categorieTree"] ?? null), 0, [], "array"truetruefalse127))) {
  446.                     // line 128
  447.                     echo "                                <div class=\"text-center py-2\">
  448.                                     <a href=\"";
  449.                     // line 129
  450.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree"$context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.'129$this->source); })()), 0, [], "array"falsefalsefalse129), "slug", [], "any"falsefalsefalse129)]), "html"nulltrue);
  451.                     echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">Retour Ã  la liste ";
  452.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree"$context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.'129$this->source); })()), 0, [], "array"falsefalsefalse129), "titre", [], "any"falsefalsefalse129), "html"nulltrue);
  453.                     echo "</a>
  454.                                 </div>
  455.                             ";
  456.                 }
  457.                 // line 132
  458.                 echo "                        ";
  459.             } elseif ((twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'132$this->source); })()), "typelien", [], "any"falsefalsefalse132) != 1)) {
  460.                 // line 133
  461.                 echo "                                ";
  462.                 if ((twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'133$this->source); })()), "typelien", [], "any"falsefalsefalse133) == "4")) {
  463.                     // line 134
  464.                     echo "                                    <div class=\"text-center py-2\">
  465.                                         <a href=\"javascript:void(0)\" onclick=\"window.location.href = 'tel:";
  466.                     // line 135
  467.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'135$this->source); })()), "telephone", [], "any"falsefalsefalse135), "html"nulltrue);
  468.                     echo "';\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
  469.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'135$this->source); })()), "titrelien", [], "any"falsefalsefalse135), "html"nulltrue);
  470.                     echo "</a>
  471.                                     </div>
  472.                                 ";
  473.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 137
  474. (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'137$this->source); })()), "typelien", [], "any"falsefalsefalse137) == "2")) {
  475.                     // line 138
  476.                     echo "                                    <div class=\"text-center py-2\">
  477.                                         <a href=\"";
  478.                     // line 139
  479.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'139$this->source); })()), "lieninterne", [], "any"falsefalsefalse139), "html"nulltrue);
  480.                     echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
  481.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'139$this->source); })()), "titrelien", [], "any"falsefalsefalse139), "html"nulltrue);
  482.                     echo "</a>
  483.                                     </div>
  484.                                 ";
  485.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 141
  486. (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'141$this->source); })()), "typelien", [], "any"falsefalsefalse141) == "3")) {
  487.                     // line 142
  488.                     echo "                                    <div class=\"text-center py-2\">
  489.                                         <a href=\"";
  490.                     // line 143
  491.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'143$this->source); })()), "lienexterne", [], "any"falsefalsefalse143), "html"nulltrue);
  492.                     echo "\" target=\"_blank\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
  493.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'143$this->source); })()), "titrelien", [], "any"falsefalsefalse143), "html"nulltrue);
  494.                     echo "</a>
  495.                                     </div>
  496.                                 ";
  497.                 }
  498.                 // line 146
  499.                 echo "                        ";
  500.             }
  501.             // line 147
  502.             echo "
  503.                         ";
  504.             // line 148
  505.             if (((isset($context["docs"]) || array_key_exists("docs"$context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.'148$this->source); })()) &&  !twig_test_empty((isset($context["docs"]) || array_key_exists("docs"$context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.'148$this->source); })())))) {
  506.                 // line 149
  507.                 echo "                            <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
  508.                                 ";
  509.                 // line 150
  510.                 $context['_parent'] = $context;
  511.                 $context['_seq'] = twig_ensure_traversable((isset($context["docs"]) || array_key_exists("docs"$context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.'150$this->source); })()));
  512.                 foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
  513.                     // line 151
  514.                     echo "                                    <a class=\"btn-back-pulse m-2\" href=\"";
  515.                     echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->source$context["doc"], "location", [], "any"falsefalsefalse151) . twig_get_attribute($this->env$this->source$context["doc"], "path", [], "any"falsefalsefalse151)) . "/") . twig_get_attribute($this->env$this->source$context["doc"], "fileName", [], "any"falsefalsefalse151)), "html"nulltrue);
  516.                     echo "\" title=\"";
  517.                     echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source$context["doc"], "fileName", [], "any"falsefalsefalse151), 0,  -4), "html"nulltrue);
  518.                     echo "\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>";
  519.                     echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source$context["doc"], "fileName", [], "any"falsefalsefalse151), 0,  -4), "html"nulltrue);
  520.                     echo "</a>   
  521.                                 ";
  522.                 }
  523.                 $_parent $context['_parent'];
  524.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['doc'], $context['_parent'], $context['loop']);
  525.                 $context array_intersect_key($context$_parent) + $_parent;
  526.                 // line 153
  527.                 echo "                            </div>
  528.                         ";
  529.             }
  530.             // line 155
  531.             echo "
  532.                         ";
  533.             // line 156
  534.             if ((isset($context["champsPersonnalises"]) || array_key_exists("champsPersonnalises"$context) ? $context["champsPersonnalises"] : (function () { throw new RuntimeError('Variable "champsPersonnalises" does not exist.'156$this->source); })())) {
  535.                 // line 157
  536.                 echo "                            ";
  537.                 $context['_parent'] = $context;
  538.                 $context['_seq'] = twig_ensure_traversable((isset($context["champsPersonnalises"]) || array_key_exists("champsPersonnalises"$context) ? $context["champsPersonnalises"] : (function () { throw new RuntimeError('Variable "champsPersonnalises" does not exist.'157$this->source); })()));
  539.                 foreach ($context['_seq'] as $context["key1"] => $context["champ"]) {
  540.                     // line 158
  541.                     echo "                                ";
  542.                     if ($context["champ"]) {
  543.                         // line 159
  544.                         echo "                                    <div class=\"my-4\">
  545.                                     ";
  546.                         // line 160
  547.                         $context['_parent'] = $context;
  548.                         $context['_seq'] = twig_ensure_traversable((isset($context["lblchampsPersonnalises"]) || array_key_exists("lblchampsPersonnalises"$context) ? $context["lblchampsPersonnalises"] : (function () { throw new RuntimeError('Variable "lblchampsPersonnalises" does not exist.'160$this->source); })()));
  549.                         foreach ($context['_seq'] as $context["key2"] => $context["lbl"]) {
  550.                             // line 161
  551.                             echo "                                        ";
  552.                             if (($context["key2"] == $context["key1"])) {
  553.                                 // line 162
  554.                                 echo "                                            ";
  555.                                 echo twig_escape_filter($this->env$context["lbl"], "html"nulltrue);
  556.                                 echo " :
  557.                                         ";
  558.                             }
  559.                             // line 164
  560.                             echo "                                    ";
  561.                         }
  562.                         $_parent $context['_parent'];
  563.                         unset($context['_seq'], $context['_iterated'], $context['key2'], $context['lbl'], $context['_parent'], $context['loop']);
  564.                         $context array_intersect_key($context$_parent) + $_parent;
  565.                         // line 165
  566.                         echo "
  567.                                     <a href=\"";
  568.                         // line 166
  569.                         echo twig_escape_filter($this->env$context["champ"], "html"nulltrue);
  570.                         echo "\" title=\"";
  571.                         echo twig_escape_filter($this->env$context["champ"], "html"nulltrue);
  572.                         echo "\" target=\"_blank\">";
  573.                         echo twig_escape_filter($this->env$context["champ"], "html"nulltrue);
  574.                         echo "</a></div>
  575.                                 ";
  576.                     }
  577.                     // line 169
  578.                     echo "                            ";
  579.                 }
  580.                 $_parent $context['_parent'];
  581.                 unset($context['_seq'], $context['_iterated'], $context['key1'], $context['champ'], $context['_parent'], $context['loop']);
  582.                 $context array_intersect_key($context$_parent) + $_parent;
  583.                 // line 170
  584.                 echo "                        ";
  585.             }
  586.             // line 171
  587.             echo "                    </div>
  588.                 ";
  589.         }
  590.         // line 173
  591.         echo "            </div>
  592.             ";
  593.         // line 175
  594.         if (((array_key_exists("next_article"$context) &&  !twig_test_empty((isset($context["next_article"]) || array_key_exists("next_article"$context) ? $context["next_article"] : (function () { throw new RuntimeError('Variable "next_article" does not exist.'175$this->source); })()))) || (array_key_exists("prev_article"$context) &&  !twig_test_empty((isset($context["prev_article"]) || array_key_exists("prev_article"$context) ? $context["prev_article"] : (function () { throw new RuntimeError('Variable "prev_article" does not exist.'175$this->source); })()))))) {
  595.             // line 176
  596.             echo "               <div class=\"row gx-5 py-4\">
  597.                     <div class=\"col-lg-12 d-flex justify-content-between\">
  598.                         <div class=\"\">
  599.                             ";
  600.             // line 179
  601.             if ((array_key_exists("prev_article"$context) &&  !twig_test_empty((isset($context["prev_article"]) || array_key_exists("prev_article"$context) ? $context["prev_article"] : (function () { throw new RuntimeError('Variable "prev_article" does not exist.'179$this->source); })())))) {
  602.                 // line 180
  603.                 echo "                              <a href=\"";
  604.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["prev_article"]) || array_key_exists("prev_article"$context) ? $context["prev_article"] : (function () { throw new RuntimeError('Variable "prev_article" does not exist.'180$this->source); })()), "slug", [], "any"falsefalsefalse180)]), "html"nulltrue);
  605.                 echo "\" title=\"";
  606.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["prev_article"]) || array_key_exists("prev_article"$context) ? $context["prev_article"] : (function () { throw new RuntimeError('Variable "prev_article" does not exist.'180$this->source); })()), "title", [], "any"falsefalsefalse180), "html"nulltrue);
  607.                 echo "\"><span class=\"signe1\"><i class=\"fa fa-arrow-left\"></i></span> ";
  608.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["prev_article"]) || array_key_exists("prev_article"$context) ? $context["prev_article"] : (function () { throw new RuntimeError('Variable "prev_article" does not exist.'180$this->source); })()), "title", [], "any"falsefalsefalse180), "html"nulltrue);
  609.                 echo "</a>
  610.                             ";
  611.             }
  612.             // line 182
  613.             echo "                        </div>
  614.                         <div class=\"\">
  615.                             ";
  616.             // line 184
  617.             if ((array_key_exists("next_article"$context) &&  !twig_test_empty((isset($context["next_article"]) || array_key_exists("next_article"$context) ? $context["next_article"] : (function () { throw new RuntimeError('Variable "next_article" does not exist.'184$this->source); })())))) {
  618.                 // line 185
  619.                 echo "                              <a href=\"";
  620.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["next_article"]) || array_key_exists("next_article"$context) ? $context["next_article"] : (function () { throw new RuntimeError('Variable "next_article" does not exist.'185$this->source); })()), "slug", [], "any"falsefalsefalse185)]), "html"nulltrue);
  621.                 echo "\"  title=\"";
  622.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["next_article"]) || array_key_exists("next_article"$context) ? $context["next_article"] : (function () { throw new RuntimeError('Variable "next_article" does not exist.'185$this->source); })()), "title", [], "any"falsefalsefalse185), "html"nulltrue);
  623.                 echo "\">";
  624.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["next_article"]) || array_key_exists("next_article"$context) ? $context["next_article"] : (function () { throw new RuntimeError('Variable "next_article" does not exist.'185$this->source); })()), "title", [], "any"falsefalsefalse185), "html"nulltrue);
  625.                 echo "  <span class=\"signe1\"><i class=\"fa fa-arrow-right\"></i></span></a>
  626.                             ";
  627.             }
  628.             // line 187
  629.             echo "                        </div>
  630.                     </div>
  631.                 </div>
  632.             ";
  633.         }
  634.         // line 191
  635.         echo "        </div>
  636.         ";
  637.         // line 196
  638.         echo "
  639.         ";
  640.         // line 197
  641.         if (((((isset($context["galleries"]) || array_key_exists("galleries"$context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.'197$this->source); })()) &&  !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries"$context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.'197$this->source); })()))) && array_key_exists("template_model_gallerie"$context)) &&  !twig_test_empty((isset($context["template_model_gallerie"]) || array_key_exists("template_model_gallerie"$context) ? $context["template_model_gallerie"] : (function () { throw new RuntimeError('Variable "template_model_gallerie" does not exist.'197$this->source); })())))) {
  642.             // line 198
  643.             echo "            ";
  644.             echo twig_include($this->env$contexttwig_template_from_string($this->env, (isset($context["template_model_gallerie"]) || array_key_exists("template_model_gallerie"$context) ? $context["template_model_gallerie"] : (function () { throw new RuntimeError('Variable "template_model_gallerie" does not exist.'198$this->source); })())));
  645.             echo "
  646.         ";
  647.         }
  648.         // line 200
  649.         echo "
  650.         ";
  651.         // line 201
  652.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'201$this->source); })()), "urlvideo", [], "any"falsefalsefalse201))) {
  653.             // line 202
  654.             echo "            <div class=\"container-fluid wrapper mt-3\">
  655.                 <div class=\"col-md-12 mt-1\">
  656.                     <div class=\"video\">
  657.                         ";
  658.             // line 205
  659.             $context["id_video_externe"] = twig_get_attribute($this->env$this->sourcetwig_split_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'205$this->source); })()), "urlvideo", [], "any"falsefalsefalse205), "?v="), 1, [], "array"falsefalsefalse205);
  660.             // line 206
  661.             echo "                        <a class=\"video-thumbnail m-0\" href=\"";
  662.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'206$this->source); })()), "urlvideo", [], "any"falsefalsefalse206), "html"nulltrue);
  663.             echo "\" data-fancybox=\"video\">
  664.                             <img src=\"https://img.youtube.com/vi/";
  665.             // line 207
  666.             echo twig_escape_filter($this->env, (isset($context["id_video_externe"]) || array_key_exists("id_video_externe"$context) ? $context["id_video_externe"] : (function () { throw new RuntimeError('Variable "id_video_externe" does not exist.'207$this->source); })()), "html"nulltrue);
  667.             echo "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
  668.                         </a>
  669.                     </div>
  670.                 </div>
  671.             </div>
  672.         ";
  673.         }
  674.         // line 213
  675.         echo "
  676.         ";
  677.         // line 214
  678.         if (array_key_exists("blocs"$context)) {
  679.             // line 215
  680.             echo "            ";
  681.             $context['_parent'] = $context;
  682.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blocs"]) || array_key_exists("blocs"$context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.'215$this->source); })()), "Bloc", [], "any"falsefalsefalse215));
  683.             foreach ($context['_seq'] as $context["_key"] => $context["bloc"]) {
  684.                 // line 216
  685.                 echo "                ";
  686.                 if (($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && (twig_get_attribute($this->env$this->source$context["bloc"], "mobile", [], "any"falsefalsefalse216) == true))) {
  687.                     // line 217
  688.                     echo "                    ";
  689.                     echo twig_include($this->env$context, (("front/" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'217$this->source); })()), "request", [], "any"falsefalsefalse217), "server", [], "any"falsefalsefalse217), "get", [=> "APP_THEME"], "method"falsefalsefalse217)) . "/bloc/bloc.html.twig"), ["bloc" =>                     // line 218
  690. $context["bloc"]], false);
  691.                     // line 219
  692.                     echo "
  693.                 ";
  694.                 }
  695.                 // line 221
  696.                 echo "                
  697.                 ";
  698.                 // line 222
  699.                 if ((($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isFullView() && ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() == false)) && (twig_get_attribute($this->env$this->source$context["bloc"], "desktop", [], "any"falsefalsefalse222) == true))) {
  700.                     // line 223
  701.                     echo "                    ";
  702.                     echo twig_include($this->env$context, (("front/" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'223$this->source); })()), "request", [], "any"falsefalsefalse223), "server", [], "any"falsefalsefalse223), "get", [=> "APP_THEME"], "method"falsefalsefalse223)) . "/bloc/bloc.html.twig"), ["bloc" =>                     // line 224
  703. $context["bloc"]], false);
  704.                     // line 225
  705.                     echo "
  706.                 ";
  707.                 }
  708.                 // line 227
  709.                 echo "            ";
  710.             }
  711.             $_parent $context['_parent'];
  712.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bloc'], $context['_parent'], $context['loop']);
  713.             $context array_intersect_key($context$_parent) + $_parent;
  714.             // line 228
  715.             echo "        ";
  716.         }
  717.         echo 
  718.     </div> 
  719. ";
  720.         
  721.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  722.         
  723.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  724.     }
  725.     // line 233
  726.     public function block_javascripts($context, array $blocks = [])
  727.     {
  728.         $macros $this->macros;
  729.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  730.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  731.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  732.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  733.         // line 234
  734.         echo "    ";
  735.         $this->displayParentBlock("javascripts"$context$blocks);
  736.         echo "
  737.     <script src=\"";
  738.         // line 235
  739.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets-admin/plugins/form-builder-io/formio.full.min.js"), "html"nulltrue);
  740.         echo "\"></script>
  741.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js\"></script>
  742.     <script>
  743.     
  744.         var current_fs, next_fs, previous_fs;
  745.         var left, opacity, scale; 
  746.         var animating; 
  747.         \$(\".next\").click(function(){
  748.             current_fs = \$(this).parent();
  749.             next_fs = \$(this).parent().next();
  750.             
  751.             if (!validateForm(current_fs)) {
  752.                 return false;
  753.             }
  754.             if(animating) return false;
  755.             animating = true;
  756.         
  757.             \$(\"#progressbar li\").eq(\$(\"fieldset\").index(next_fs)).addClass(\"active\");
  758.             next_fs.show(); 
  759.             //hide the current fieldset with style
  760.             current_fs.animate({opacity: 0}, {
  761.                         step: function(now, mx) {
  762.                             //as the opacity of current_fs reduces to 0 - stored in \"now\"
  763.                             //1. scale current_fs down to 80%
  764.                             scale = 1 - (1 - now) * 0.2;
  765.                             //2. bring next_fs from the right(50%)
  766.                             left = (now * 50)+\"%\";
  767.                             //3. increase opacity of next_fs to 1 as it moves in
  768.                             opacity = 1 - now;
  769.                             current_fs.css({
  770.                         'transform': 'scale('+scale+')',
  771.                         'position': 'absolute'
  772.                     });
  773.                     next_fs.css({'left': left, 'opacity': opacity});
  774.                 }, 
  775.                 duration: 1000, 
  776.                 complete: function(){
  777.                     current_fs.hide();
  778.                     animating = false;
  779.                 }, 
  780.                 //this comes from the custom easing plugin
  781.                 easing: 'easeInOutBack'
  782.             });
  783.         });
  784.         \$(\".previous\").click(function(){
  785.             current_fs = \$(this).parent();
  786.             previous_fs = \$(this).parent().prev();
  787.             // if (!validateForm(current_fs)) {
  788.             //     return false;
  789.             // }
  790.             if(animating) return false;
  791.             animating = true;
  792.             
  793.             //de-activate current step on progressbar
  794.             \$(\"#progressbar li\").eq(\$(\"fieldset\").index(current_fs)).removeClass(\"active\");
  795.             
  796.             //show the previous fieldset
  797.             previous_fs.show(); 
  798.             //hide the current fieldset with style
  799.             previous_fs.css({'transform': 'scale(1)', 'opacity': '1','position':'relative'});
  800.             current_fs.hide();
  801.             animating = false;
  802.             // current_fs.animate({opacity: 0}, {
  803.             //     step: function(now, mx) {
  804.             //         //as the opacity of current_fs reduces to 0 - stored in \"now\"
  805.             //         //1. scale previous_fs from 80% to 100%
  806.             //         scale = 0.8 + (1 - now) * 0.2;
  807.             //         //2. take current_fs to the right(50%) - from 0%
  808.             //         left = ((1-now) * 50)+\"%\";
  809.             //         //3. increase opacity of previous_fs to 1 as it moves in
  810.             //         opacity = 1 - now;
  811.             //         current_fs.css({'left': left});
  812.             //         previous_fs.css({'transform': 'scale('+scale+')', 'opacity': opacity,'position':'relative'});
  813.             //     }, 
  814.             //     duration: 800, 
  815.             //     complete: function(){
  816.             //         current_fs.hide();
  817.             //         animating = false;
  818.             //     }, 
  819.             //     //this comes from the custom easing plugin
  820.             //     easing: 'easeInOutBack'
  821.             // });
  822.         });
  823.         // \$(\".form-wizrd .submit.action-button\").click(function(e){
  824.         //      current_fs = \$(this).parent();
  825.         //      if (!validateForm(current_fs)) {
  826.         //         return false;
  827.         //      }
  828.         // });
  829.         function validateForm(current_fs) {
  830.             let formTabs, formInputs, i, valid = true;
  831.             formInputs = current_fs[0].querySelectorAll('[data-form-input]');
  832.      
  833.             for (i = 0; i < formInputs.length; i++) {
  834.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') != 'checkbox') {
  835.                     formInputs[i].addEventListener('keyup', (event) => {
  836.                         event.target.classList.remove(\"has-error\");
  837.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  838.                        // event.target.nextElementSibling.style.display = \"none\";
  839.                     });
  840.                 }
  841.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'checkbox') {
  842.                     formInputs[i].addEventListener('change', (event) => {
  843.                         if(\$(event.target).is(':checked')){
  844.                             \$(event.target).attr('checked', true);
  845.                         }else{
  846.                             \$(event.target).attr('checked', false);
  847.                         }
  848.                         event.target.classList.remove(\"has-error\");
  849.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  850.                         //event.target.nextElementSibling.style.display = \"none\";
  851.                     });
  852.                 }
  853.                 if (formInputs[i].hasAttribute(\"required\") && formInputs[i].nodeName == 'SELECT') {
  854.                     formInputs[i].addEventListener('change', (event) => {
  855.                         console.log('select change');
  856.                         event.target.classList.remove(\"has-error\");
  857.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  858.                         //event.target.nextElementSibling.style.display = \"none\";
  859.                     });
  860.                 }
  861.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'email') {
  862.                     formInputs[i].addEventListener('keyup', (event) => {
  863.                         console.log(isEmail(event.target.value));
  864.                         if (isEmail(event.target.value) == true) {
  865.                            event.target.classList.remove(\"has-error\");
  866.                            \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  867.                         }else{
  868.                             if (!event.target.classList.contains('has-error')) {
  869.                                 event.target.className += \" has-error\";
  870.                             }
  871.                             \$(event.target.parentElement).find('.invalid-feedback').html('Veuillez choisir un email valide.');
  872.                             \$(event.target.parentElement).find('.invalid-feedback').css('display','block');
  873.                         }
  874.                        // event.target.nextElementSibling.style.display = \"none\";
  875.                     });
  876.                 }
  877.                 if(formInputs[i].hasAttribute(\"required\")){
  878.                     if (\$(formInputs[i]).attr('type') == 'checkbox' && \$(formInputs[i]).is(':checked') == false) {
  879.                         if (!formInputs[i].classList.contains('has-error')) {
  880.                             formInputs[i].className += \" has-error\";
  881.                         }
  882.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  883.                         valid = false;
  884.                     }else if(formInputs[i].value == \"\" && (\$(formInputs[i]).attr('type') == 'text' || formInputs[i].nodeName == 'SELECT' || formInputs[i].nodeName == 'TEXTAREA')){
  885.                         if (!formInputs[i].classList.contains('has-error')) {
  886.                             formInputs[i].className += \" has-error\";
  887.                         }
  888.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  889.                          valid = false;
  890.                     }else if(!isEmail(formInputs[i].value) && \$(formInputs[i]).attr('type') == 'email'){
  891.                         if (!formInputs[i].classList.contains('has-error')) {
  892.                             formInputs[i].className += \" has-error\";
  893.                         }
  894.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  895.                          valid = false;
  896.                     }
  897.                     //formInputs[i].nextElementSibling.style.display = \"block\";                   
  898.                 }
  899.             }
  900.             return valid;
  901.         }
  902.         function isEmail(email) {
  903.             var EmailRegex = /^([a-zA-Z0-9_.+-])+\\@(([a-zA-Z0-9-])+\\.)+([a-zA-Z0-9]{2,4})+\$/;
  904.             return EmailRegex.test(email);
  905.         }
  906.     </script>
  907.     <script>
  908.        if(document.getElementById(\"builder\")){
  909.         var data_fields = document.getElementById(\"builder\").getAttribute('data-config');
  910.         if(data_fields != ''){
  911.            data_fields = JSON.parse(data_fields);
  912.            console.log(JSON.parse(data_fields));
  913.            Formio.createForm(document.getElementById('builder'), 
  914.               JSON.parse(data_fields),
  915.            ).then(function(form) {
  916.                 // Prevent the submission from going to the form.io server.
  917.                 form.nosubmit = true;
  918.                 // Triggered when they click the submit button.
  919.                 form.on('submit', function(submission) {
  920.                     var data = submission.data;
  921.                     grecaptcha.execute('";
  922.         // line 439
  923.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "clekey", [], "any"falsefalsefalse439), "html"nulltrue);
  924.         echo "', {action: 'create_comment'}).then(token => {
  925.                         \$('#builder').find('[name=g-recaptcha-response]').val(token);
  926.                         data['g-recaptcha-response'] = token;
  927.                         data['IdForm'] = \$('#builder').parent().find('input[name=\"IdForm\"]').val();
  928.                         \$('#builder').parent().find('button[type=\"submit\"]').attr('disabled','true');
  929.                         \$.ajax({
  930.                             type:\"POST\",
  931.                             cache:false,
  932.                             url:\"";
  933.         // line 447
  934.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("save_form");
  935.         echo "\",
  936.                             data:data,   
  937.                             success: function (data) {
  938.                                window.location = data
  939.                             }
  940.                         });
  941.                     });
  942.                 });
  943.             });
  944.         }
  945.        }
  946.     </script>
  947.     ";
  948.         // line 460
  949.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie"$context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.'460$this->source); })()), 0, [], "array"falsefalsefalse460), "type", [], "any"falsefalsefalse460) == 4)) {
  950.             // line 461
  951.             echo "        ";
  952.             $this->displayParentBlock("javascripts"$context$blocks);
  953.             echo "
  954.         <script src=\"";
  955.             // line 462
  956.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js"), "html"nulltrue);
  957.             echo "\" ></script>
  958.         <script>    
  959.             /*-------------------------------------------------*/
  960.             /* =  Sx flexslider 
  961.             /*-------------------------------------------------*/
  962.             if (\$(\".sx_flexslider\").length) {
  963.             \$('.flex-carousel').flexslider({
  964.             animation: \"slide\",
  965.             controlNav: false,
  966.             animationLoop: true,
  967.             slideshow: false,
  968.             itemWidth: 150,
  969.             asNavFor: '.flex-slider'
  970.             });
  971.             \$('.flex-slider').flexslider({
  972.             animation: \"slide\",
  973.             controlNav: false,
  974.             animationLoop: true,
  975.             slideshow: false,
  976.             sync: \".flex-carousel\"
  977.             });
  978.             }
  979.         </script>
  980.     ";
  981.         }
  982.         // line 486
  983.         echo "    
  984. ";
  985.         
  986.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  987.         
  988.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  989.     }
  990.     public function getTemplateName()
  991.     {
  992.         return "front/theme1/page_cms.html.twig";
  993.     }
  994.     public function isTraitable()
  995.     {
  996.         return false;
  997.     }
  998.     public function getDebugInfo()
  999.     {
  1000.         return array (  1042 => 486,  1015 => 462,  1010 => 461,  1008 => 460,  992 => 447,  981 => 439,  774 => 235,  769 => 234,  759 => 233,  744 => 228,  738 => 227,  734 => 225,  732 => 224,  730 => 223,  728 => 222,  725 => 221,  721 => 219,  719 => 218,  717 => 217,  714 => 216,  709 => 215,  707 => 214,  704 => 213,  695 => 207,  690 => 206,  688 => 205,  683 => 202,  681 => 201,  678 => 200,  672 => 198,  670 => 197,  667 => 196,  663 => 191,  657 => 187,  647 => 185,  645 => 184,  641 => 182,  631 => 180,  629 => 179,  624 => 176,  622 => 175,  618 => 173,  614 => 171,  611 => 170,  605 => 169,  595 => 166,  592 => 165,  586 => 164,  580 => 162,  577 => 161,  573 => 160,  570 => 159,  567 => 158,  562 => 157,  560 => 156,  557 => 155,  553 => 153,  540 => 151,  536 => 150,  533 => 149,  531 => 148,  528 => 147,  525 => 146,  517 => 143,  514 => 142,  512 => 141,  505 => 139,  502 => 138,  500 => 137,  493 => 135,  490 => 134,  487 => 133,  484 => 132,  476 => 129,  473 => 128,  470 => 127,  468 => 126,  463 => 124,  460 => 123,  458 => 122,  455 => 121,  445 => 118,  442 => 117,  440 => 116,  437 => 115,  431 => 112,  428 => 111,  426 => 110,  421 => 107,  411 => 100,  408 => 99,  405 => 98,  400 => 96,  398 => 95,  396 => 94,  383 => 91,  380 => 90,  374 => 89,  371 => 88,  365 => 87,  363 => 86,  354 => 85,  349 => 84,  346 => 83,  344 => 82,  335 => 81,  330 => 80,  327 => 79,  325 => 78,  319 => 77,  311 => 71,  309 => 70,  306 => 69,  297 => 64,  294 => 63,  289 => 61,  287 => 60,  285 => 59,  273 => 57,  270 => 56,  264 => 55,  261 => 54,  255 => 53,  253 => 52,  244 => 51,  239 => 50,  236 => 49,  234 => 48,  225 => 47,  220 => 46,  217 => 45,  215 => 44,  209 => 43,  196 => 39,  193 => 38,  191 => 37,  188 => 36,  185 => 35,  182 => 34,  179 => 33,  176 => 32,  173 => 31,  170 => 30,  168 => 29,  165 => 28,  155 => 27,  141 => 23,  139 => 22,  134 => 21,  124 => 20,  113 => 17,  110 => 16,  104 => 15,  98 => 13,  95 => 12,  90 => 11,  88 => 10,  85 => 9,  82 => 8,  76 => 6,  73 => 5,  70 => 4,  60 => 3,  38 => 1,);
  1001.     }
  1002.     public function getSourceContext()
  1003.     {
  1004.         return new Source("{% extends \"front/\"~ app.request.server.get('APP_THEME') ~\"/base.html.twig\" %}
  1005. {% block preload %}
  1006.     {% if post.image is defined  and post.image is not empty %}
  1007.         {% if post.image %}
  1008.             <link rel=\"preload\" as=\"image\" href=\"{{asset_image(post.image)}}\" />
  1009.         {% endif %}
  1010.     {% endif %}
  1011.      {% if galleries is defined and galleries is not empty %}
  1012.            {% for item in galleries %}
  1013.                 {% if item.path is defined %}
  1014.                     <link rel=\"preload\" as=\"image\" href=\"{{asset_image_gallery(item.path)}}\" />
  1015.                 {% endif %}
  1016.            {% endfor %}
  1017.     {% endif %}
  1018. {% endblock %}
  1019. {% block stylesheets %}
  1020.     {{parent()}}
  1021.     {% if modele_galerie[0].type == 4 %}
  1022.         <link rel=\"stylesheet\" type=\"text/css\" href=\"{{asset('templates/front/theme1/assets/plugins/flexslider/flexslider.css')}}\" media=\"screen\" >
  1023.     {% endif %}
  1024. {% endblock %}
  1025. {% block body %}
  1026.     {% if post.imageBandeau %}
  1027.         {% set imagebandeau = post.imageBandeau %}
  1028.     {% elseif parametre.imageBandeau %}
  1029.         {% set imagebandeau = 'uploads/images/' ~ parametre.imageBandeau %}
  1030.     {% else %}
  1031.         {% set imagebandeau = '' %}
  1032.     {% endif %}
  1033.     
  1034.     {% if imagebandeau != '' %}
  1035.         <section class=\"image-bandeau text-center\">
  1036.             <img class=\"lazyload\" alt=\"{{post.title}}\" title=\"{{post.title}}\" data-srcset=\"{{imagebandeau}}\" src=\"{{asset(imagebandeau)}}\" />
  1037.             <div class=\"cnt-bandeau text-center\">
  1038. \t\t\t\t<div class=\"container-fluid wrapper\">
  1039.                     <ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
  1040.                                 <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('index_page_home')}}\" itemprop=\"item\"><span itemprop=\"name\">{{title_home_ariane}}</span></a><meta itemprop=\"position\" content=\"1\" /></li>
  1041.                                 {% set niveau = 2 %}
  1042.                                 {% if categorieTree %}
  1043.                                         {% for item in categorieTree %}
  1044.                                             <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('page',{slug:item.slug})}}\" title=\"{{item.titre}}\" itemprop=\"item\"><span itemprop=\"name\">{{item.titre}}</span></a><meta itemprop=\"position\" content=\"2\" /></li> 
  1045.                                             {% set niveau = 3 %}
  1046.                                             {% if item.child is defined %}
  1047.                                                 {% for item in item.child %}
  1048.                                                     <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('page',{slug:item.slug})}}\" title=\"{{item.titre}}\" itemprop=\"item\"><span itemprop=\"name\">{{item.titre}}</span></a><meta itemprop=\"position\" content=\"3\" /></li> 
  1049.                                                     {% set niveau = 4 %}
  1050.                                                 {% endfor %}
  1051.                                             {% endif %}
  1052.                                         {% endfor %}
  1053.                                 {% endif %}
  1054.                                 <li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">{% if post.breadcrumb is not empty %}{{post.breadcrumb}}{% else %}{{post.title}}{% endif %}</span><meta itemprop=\"position\" content=\"{{niveau}}\" /></li>
  1055.                             </ol>
  1056.                             {% if categorieTree %}
  1057.                                 {# {% for item in categorieTree %} #}
  1058.                                     <a class=\"article-retour text-center\" href=\"{{path('page',{slug:categorieTree[0].slug})}}\" title=\"Retour\">Retour</a>
  1059.                                 {# {% endfor %} #}
  1060.                             {% endif %}
  1061.                             <h1 class=\"page-title\">{{post.title}}</h1>
  1062.                 </div>
  1063.             </div>
  1064.         </section>
  1065.     {% endif %}
  1066.     <div class=\"page_cms pt-5\">
  1067.         {% if imagebandeau == '' %}
  1068.         <div class=\"breadcrumb-style-default\">
  1069.             <div class=\"container-fluid wrapper\">
  1070.                 <div class=\"row\">
  1071.                     <div class=\"col-lg-12\">
  1072.                         <div class=\"inner text-center\">
  1073.                             <ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
  1074.                                 <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('index_page_home')}}\" itemprop=\"item\"><span itemprop=\"name\">{{title_home_ariane}}</span></a><meta itemprop=\"position\" content=\"1\" /></li>
  1075.                                 {% set niveau = 2 %}
  1076.                                 {% if categorieTree %}
  1077.                                         {% for item in categorieTree %}
  1078.                                             <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('page',{slug:item.slug})}}\" title=\"{{item.titre}}\" itemprop=\"item\"><span itemprop=\"name\">{{item.titre}}</span></a><meta itemprop=\"position\" content=\"2\" /></li> 
  1079.                                             {% set niveau = 3 %}
  1080.                                             {% if item.child is defined %}
  1081.                                                 {% for item in item.child %}
  1082.                                                     <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('page',{slug:item.slug})}}\" title=\"{{item.titre}}\" itemprop=\"item\"><span itemprop=\"name\">{{item.titre}}</span></a><meta itemprop=\"position\" content=\"3\" /></li> 
  1083.                                                     {% set niveau = 4 %}
  1084.                                                 {% endfor %}
  1085.                                             {% endif %}
  1086.                                         {% endfor %}
  1087.                                 {% endif %}
  1088.                                 <li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">{% if post.breadcrumb is not empty %}{{post.breadcrumb}}{% else %}{{post.title}}{% endif %}</span><meta itemprop=\"position\" content=\"{{niveau}}\" /></li>
  1089.                             </ol>
  1090.                             {% if categorieTree %}
  1091.                                 {# {% for item in categorieTree %} #}
  1092.                                     <a class=\"article-retour text-center\" href=\"{{path('page',{slug:categorieTree[0].slug})}}\" title=\"Retour\">Retour</a>
  1093.                                 {# {% endfor %} #}
  1094.                             {% endif %}
  1095.                             <h1 class=\"page-title\">{{post.title}}</h1>
  1096.                         </div>
  1097.                     </div>
  1098.                 </div>
  1099.             </div>
  1100.         </div>
  1101.         {% endif %}
  1102.         <div class=\"container-fluid wrapper mt-3\">
  1103.             <div class=\"row gx-5 py-2\">
  1104.                 {% if post.summary is not empty and post.summary != \"\" %}
  1105.                     <div class=\"col-sm-12 text-center\">
  1106.                         <h2 class=\"sub-title wow\">{{post.summary}}</h2>
  1107.                     </div>
  1108.                 {% endif %}
  1109.                 
  1110.                 {% if post.image and post.image is not empty and categorieTree is empty %}
  1111.                     <div class=\"col-sm-12 text-center my-4\">
  1112.                         <img class=\"lazyload img-fluid principal-img\" data-srcset=\"{{asset_image(post.image)}}\" src=\"{{asset_image(post.image)}}\" alt=\"{{post.title}}\" />
  1113.                     </div>
  1114.                 {% endif %}
  1115.                 {% if post.content is not empty and post.content != \"\" %}
  1116.                     <div class=\"col-lg-12 content_post\">
  1117.                         {{post.content|raw}}
  1118.                         {% if post.typelien == null %}
  1119.                             {% if categorieTree is defined and categorieTree[0] is defined  %}
  1120.                                 <div class=\"text-center py-2\">
  1121.                                     <a href=\"{{path('page',{slug:categorieTree[0].slug})}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">Retour Ã  la liste {{categorieTree[0].titre}}</a>
  1122.                                 </div>
  1123.                             {% endif %}
  1124.                         {% elseif post.typelien != 1 %}
  1125.                                 {% if post.typelien == '4' %}
  1126.                                     <div class=\"text-center py-2\">
  1127.                                         <a href=\"javascript:void(0)\" onclick=\"window.location.href = 'tel:{{post.telephone}}';\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{post.titrelien}}</a>
  1128.                                     </div>
  1129.                                 {% elseif post.typelien == '2' %}
  1130.                                     <div class=\"text-center py-2\">
  1131.                                         <a href=\"{{post.lieninterne}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{post.titrelien}}</a>
  1132.                                     </div>
  1133.                                 {% elseif post.typelien == '3' %}
  1134.                                     <div class=\"text-center py-2\">
  1135.                                         <a href=\"{{post.lienexterne}}\" target=\"_blank\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{post.titrelien}}</a>
  1136.                                     </div>
  1137.                                 {% endif %}
  1138.                         {% endif %}
  1139.                         {% if docs and docs is not empty %}
  1140.                             <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
  1141.                                 {% for doc in docs %}
  1142.                                     <a class=\"btn-back-pulse m-2\" href=\"{{doc.location ~ doc.path ~ '/' ~ doc.fileName}}\" title=\"{{doc.fileName|slice(0, -4)}}\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>{{doc.fileName|slice(0, -4)}}</a>   
  1143.                                 {% endfor %}
  1144.                             </div>
  1145.                         {% endif %}
  1146.                         {% if champsPersonnalises %}
  1147.                             {% for key1, champ in champsPersonnalises %}
  1148.                                 {% if champ %}
  1149.                                     <div class=\"my-4\">
  1150.                                     {% for key2, lbl in lblchampsPersonnalises %}
  1151.                                         {% if key2 == key1 %}
  1152.                                             {{lbl}} :
  1153.                                         {% endif %}
  1154.                                     {% endfor %}
  1155.                                     <a href=\"{{champ}}\" title=\"{{champ}}\" target=\"_blank\">{{champ}}</a></div>
  1156.                                 {% endif %}
  1157.                             {% endfor %}
  1158.                         {% endif %}
  1159.                     </div>
  1160.                 {% endif %}
  1161.             </div>
  1162.             {% if next_article is defined and next_article is not empty or prev_article is defined and prev_article is not empty %}
  1163.                <div class=\"row gx-5 py-4\">
  1164.                     <div class=\"col-lg-12 d-flex justify-content-between\">
  1165.                         <div class=\"\">
  1166.                             {% if prev_article is defined and prev_article is not empty %}
  1167.                               <a href=\"{{path('page',{'slug':prev_article.slug})}}\" title=\"{{prev_article.title}}\"><span class=\"signe1\"><i class=\"fa fa-arrow-left\"></i></span> {{prev_article.title}}</a>
  1168.                             {% endif %}
  1169.                         </div>
  1170.                         <div class=\"\">
  1171.                             {% if next_article is defined and next_article is not empty %}
  1172.                               <a href=\"{{path('page',{'slug':next_article.slug})}}\"  title=\"{{next_article.title}}\">{{next_article.title}}  <span class=\"signe1\"><i class=\"fa fa-arrow-right\"></i></span></a>
  1173.                             {% endif %}
  1174.                         </div>
  1175.                     </div>
  1176.                 </div>
  1177.             {% endif %}
  1178.         </div>
  1179.         {# {% if galleries and galleries is not empty %}
  1180.             {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/galleries.html.twig',{galleries: galleries,post:post}, with_context = false)}}
  1181.         {% endif %} #}
  1182.         {% if galleries and galleries is not empty and template_model_gallerie is defined and template_model_gallerie is not empty %}
  1183.             {{ include(template_from_string(template_model_gallerie)) }}
  1184.         {% endif %}
  1185.         {% if post.urlvideo is not empty %}
  1186.             <div class=\"container-fluid wrapper mt-3\">
  1187.                 <div class=\"col-md-12 mt-1\">
  1188.                     <div class=\"video\">
  1189.                         {% set id_video_externe = post.urlvideo|split('?v=')[1] %}
  1190.                         <a class=\"video-thumbnail m-0\" href=\"{{post.urlvideo}}\" data-fancybox=\"video\">
  1191.                             <img src=\"https://img.youtube.com/vi/{{id_video_externe}}/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
  1192.                         </a>
  1193.                     </div>
  1194.                 </div>
  1195.             </div>
  1196.         {% endif %}
  1197.         {% if blocs is defined  %}
  1198.             {% for bloc in blocs.Bloc %}
  1199.                 {% if is_mobile() and  bloc.mobile == true   %}
  1200.                     {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
  1201.                         bloc: bloc,
  1202.                     }, with_context = false)}}
  1203.                 {% endif %}
  1204.                 
  1205.                 {% if is_full_view() and is_mobile() == false and bloc.desktop == true %}
  1206.                     {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
  1207.                         bloc: bloc,
  1208.                     }, with_context = false)}}
  1209.                 {% endif %}
  1210.             {% endfor %}
  1211.         {% endif %} 
  1212.     </div> 
  1213. {% endblock %}
  1214. {% block javascripts %}
  1215.     {{parent()}}
  1216.     <script src=\"{{ asset('assets-admin/plugins/form-builder-io/formio.full.min.js') }}\"></script>
  1217.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js\"></script>
  1218.     <script>
  1219.     
  1220.         var current_fs, next_fs, previous_fs;
  1221.         var left, opacity, scale; 
  1222.         var animating; 
  1223.         \$(\".next\").click(function(){
  1224.             current_fs = \$(this).parent();
  1225.             next_fs = \$(this).parent().next();
  1226.             
  1227.             if (!validateForm(current_fs)) {
  1228.                 return false;
  1229.             }
  1230.             if(animating) return false;
  1231.             animating = true;
  1232.         
  1233.             \$(\"#progressbar li\").eq(\$(\"fieldset\").index(next_fs)).addClass(\"active\");
  1234.             next_fs.show(); 
  1235.             //hide the current fieldset with style
  1236.             current_fs.animate({opacity: 0}, {
  1237.                         step: function(now, mx) {
  1238.                             //as the opacity of current_fs reduces to 0 - stored in \"now\"
  1239.                             //1. scale current_fs down to 80%
  1240.                             scale = 1 - (1 - now) * 0.2;
  1241.                             //2. bring next_fs from the right(50%)
  1242.                             left = (now * 50)+\"%\";
  1243.                             //3. increase opacity of next_fs to 1 as it moves in
  1244.                             opacity = 1 - now;
  1245.                             current_fs.css({
  1246.                         'transform': 'scale('+scale+')',
  1247.                         'position': 'absolute'
  1248.                     });
  1249.                     next_fs.css({'left': left, 'opacity': opacity});
  1250.                 }, 
  1251.                 duration: 1000, 
  1252.                 complete: function(){
  1253.                     current_fs.hide();
  1254.                     animating = false;
  1255.                 }, 
  1256.                 //this comes from the custom easing plugin
  1257.                 easing: 'easeInOutBack'
  1258.             });
  1259.         });
  1260.         \$(\".previous\").click(function(){
  1261.             current_fs = \$(this).parent();
  1262.             previous_fs = \$(this).parent().prev();
  1263.             // if (!validateForm(current_fs)) {
  1264.             //     return false;
  1265.             // }
  1266.             if(animating) return false;
  1267.             animating = true;
  1268.             
  1269.             //de-activate current step on progressbar
  1270.             \$(\"#progressbar li\").eq(\$(\"fieldset\").index(current_fs)).removeClass(\"active\");
  1271.             
  1272.             //show the previous fieldset
  1273.             previous_fs.show(); 
  1274.             //hide the current fieldset with style
  1275.             previous_fs.css({'transform': 'scale(1)', 'opacity': '1','position':'relative'});
  1276.             current_fs.hide();
  1277.             animating = false;
  1278.             // current_fs.animate({opacity: 0}, {
  1279.             //     step: function(now, mx) {
  1280.             //         //as the opacity of current_fs reduces to 0 - stored in \"now\"
  1281.             //         //1. scale previous_fs from 80% to 100%
  1282.             //         scale = 0.8 + (1 - now) * 0.2;
  1283.             //         //2. take current_fs to the right(50%) - from 0%
  1284.             //         left = ((1-now) * 50)+\"%\";
  1285.             //         //3. increase opacity of previous_fs to 1 as it moves in
  1286.             //         opacity = 1 - now;
  1287.             //         current_fs.css({'left': left});
  1288.             //         previous_fs.css({'transform': 'scale('+scale+')', 'opacity': opacity,'position':'relative'});
  1289.             //     }, 
  1290.             //     duration: 800, 
  1291.             //     complete: function(){
  1292.             //         current_fs.hide();
  1293.             //         animating = false;
  1294.             //     }, 
  1295.             //     //this comes from the custom easing plugin
  1296.             //     easing: 'easeInOutBack'
  1297.             // });
  1298.         });
  1299.         // \$(\".form-wizrd .submit.action-button\").click(function(e){
  1300.         //      current_fs = \$(this).parent();
  1301.         //      if (!validateForm(current_fs)) {
  1302.         //         return false;
  1303.         //      }
  1304.         // });
  1305.         function validateForm(current_fs) {
  1306.             let formTabs, formInputs, i, valid = true;
  1307.             formInputs = current_fs[0].querySelectorAll('[data-form-input]');
  1308.      
  1309.             for (i = 0; i < formInputs.length; i++) {
  1310.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') != 'checkbox') {
  1311.                     formInputs[i].addEventListener('keyup', (event) => {
  1312.                         event.target.classList.remove(\"has-error\");
  1313.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  1314.                        // event.target.nextElementSibling.style.display = \"none\";
  1315.                     });
  1316.                 }
  1317.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'checkbox') {
  1318.                     formInputs[i].addEventListener('change', (event) => {
  1319.                         if(\$(event.target).is(':checked')){
  1320.                             \$(event.target).attr('checked', true);
  1321.                         }else{
  1322.                             \$(event.target).attr('checked', false);
  1323.                         }
  1324.                         event.target.classList.remove(\"has-error\");
  1325.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  1326.                         //event.target.nextElementSibling.style.display = \"none\";
  1327.                     });
  1328.                 }
  1329.                 if (formInputs[i].hasAttribute(\"required\") && formInputs[i].nodeName == 'SELECT') {
  1330.                     formInputs[i].addEventListener('change', (event) => {
  1331.                         console.log('select change');
  1332.                         event.target.classList.remove(\"has-error\");
  1333.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  1334.                         //event.target.nextElementSibling.style.display = \"none\";
  1335.                     });
  1336.                 }
  1337.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'email') {
  1338.                     formInputs[i].addEventListener('keyup', (event) => {
  1339.                         console.log(isEmail(event.target.value));
  1340.                         if (isEmail(event.target.value) == true) {
  1341.                            event.target.classList.remove(\"has-error\");
  1342.                            \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  1343.                         }else{
  1344.                             if (!event.target.classList.contains('has-error')) {
  1345.                                 event.target.className += \" has-error\";
  1346.                             }
  1347.                             \$(event.target.parentElement).find('.invalid-feedback').html('Veuillez choisir un email valide.');
  1348.                             \$(event.target.parentElement).find('.invalid-feedback').css('display','block');
  1349.                         }
  1350.                        // event.target.nextElementSibling.style.display = \"none\";
  1351.                     });
  1352.                 }
  1353.                 if(formInputs[i].hasAttribute(\"required\")){
  1354.                     if (\$(formInputs[i]).attr('type') == 'checkbox' && \$(formInputs[i]).is(':checked') == false) {
  1355.                         if (!formInputs[i].classList.contains('has-error')) {
  1356.                             formInputs[i].className += \" has-error\";
  1357.                         }
  1358.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  1359.                         valid = false;
  1360.                     }else if(formInputs[i].value == \"\" && (\$(formInputs[i]).attr('type') == 'text' || formInputs[i].nodeName == 'SELECT' || formInputs[i].nodeName == 'TEXTAREA')){
  1361.                         if (!formInputs[i].classList.contains('has-error')) {
  1362.                             formInputs[i].className += \" has-error\";
  1363.                         }
  1364.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  1365.                          valid = false;
  1366.                     }else if(!isEmail(formInputs[i].value) && \$(formInputs[i]).attr('type') == 'email'){
  1367.                         if (!formInputs[i].classList.contains('has-error')) {
  1368.                             formInputs[i].className += \" has-error\";
  1369.                         }
  1370.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  1371.                          valid = false;
  1372.                     }
  1373.                     //formInputs[i].nextElementSibling.style.display = \"block\";                   
  1374.                 }
  1375.             }
  1376.             return valid;
  1377.         }
  1378.         function isEmail(email) {
  1379.             var EmailRegex = /^([a-zA-Z0-9_.+-])+\\@(([a-zA-Z0-9-])+\\.)+([a-zA-Z0-9]{2,4})+\$/;
  1380.             return EmailRegex.test(email);
  1381.         }
  1382.     </script>
  1383.     <script>
  1384.        if(document.getElementById(\"builder\")){
  1385.         var data_fields = document.getElementById(\"builder\").getAttribute('data-config');
  1386.         if(data_fields != ''){
  1387.            data_fields = JSON.parse(data_fields);
  1388.            console.log(JSON.parse(data_fields));
  1389.            Formio.createForm(document.getElementById('builder'), 
  1390.               JSON.parse(data_fields),
  1391.            ).then(function(form) {
  1392.                 // Prevent the submission from going to the form.io server.
  1393.                 form.nosubmit = true;
  1394.                 // Triggered when they click the submit button.
  1395.                 form.on('submit', function(submission) {
  1396.                     var data = submission.data;
  1397.                     grecaptcha.execute('{{ParametreSite().clekey}}', {action: 'create_comment'}).then(token => {
  1398.                         \$('#builder').find('[name=g-recaptcha-response]').val(token);
  1399.                         data['g-recaptcha-response'] = token;
  1400.                         data['IdForm'] = \$('#builder').parent().find('input[name=\"IdForm\"]').val();
  1401.                         \$('#builder').parent().find('button[type=\"submit\"]').attr('disabled','true');
  1402.                         \$.ajax({
  1403.                             type:\"POST\",
  1404.                             cache:false,
  1405.                             url:\"{{path('save_form')}}\",
  1406.                             data:data,   
  1407.                             success: function (data) {
  1408.                                window.location = data
  1409.                             }
  1410.                         });
  1411.                     });
  1412.                 });
  1413.             });
  1414.         }
  1415.        }
  1416.     </script>
  1417.     {% if modele_galerie[0].type == 4 %}
  1418.         {{parent()}}
  1419.         <script src=\"{{asset('templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js')}}\" ></script>
  1420.         <script>    
  1421.             /*-------------------------------------------------*/
  1422.             /* =  Sx flexslider 
  1423.             /*-------------------------------------------------*/
  1424.             if (\$(\".sx_flexslider\").length) {
  1425.             \$('.flex-carousel').flexslider({
  1426.             animation: \"slide\",
  1427.             controlNav: false,
  1428.             animationLoop: true,
  1429.             slideshow: false,
  1430.             itemWidth: 150,
  1431.             asNavFor: '.flex-slider'
  1432.             });
  1433.             \$('.flex-slider').flexslider({
  1434.             animation: \"slide\",
  1435.             controlNav: false,
  1436.             animationLoop: true,
  1437.             slideshow: false,
  1438.             sync: \".flex-carousel\"
  1439.             });
  1440.             }
  1441.         </script>
  1442.     {% endif %}
  1443.     
  1444. {% endblock %}
  1445. ""front/theme1/page_cms.html.twig""/var/www/vhosts/hrz.fr/new-site.hrz.fr/templates/front/theme1/page_cms.html.twig");
  1446.     }
  1447. }