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