var/cache/dev/twig/07/07efd6dc1f0d9b34e3ccfbca7ef15a04.php line 50

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_ref.html.twig */
  14. class __TwigTemplate_dfd58cc6963cdeeb37550a88e267ff4a 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_ref.html.twig"1);
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/theme1/page_ref.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/theme1/page_ref.html.twig"));
  41.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_preload($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""preload"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""preload"));
  55.         // line 4
  56.         echo "    ";
  57.         if ((twig_get_attribute($this->env$this->source, ($context["post"] ?? null), "image", [], "any"truetruefalse4) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'4$this->source); })()), "image", [], "any"falsefalsefalse4)))) {
  58.             // line 5
  59.             echo "        ";
  60.             if (twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'5$this->source); })()), "image", [], "any"falsefalsefalse5)) {
  61.                 // line 6
  62.                 echo "            <link rel=\"preload\" as=\"image\" href=\"";
  63.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'6$this->source); })()), "image", [], "any"falsefalsefalse6)), "html"nulltrue);
  64.                 echo "\" />
  65.         ";
  66.             }
  67.             // line 8
  68.             echo "    ";
  69.         }
  70.         // line 9
  71.         echo "
  72.      ";
  73.         // line 10
  74.         if ((array_key_exists("galleries"$context) &&  !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries"$context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.'10$this->source); })())))) {
  75.             // line 11
  76.             echo "           ";
  77.             $context['_parent'] = $context;
  78.             $context['_seq'] = twig_ensure_traversable((isset($context["galleries"]) || array_key_exists("galleries"$context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.'11$this->source); })()));
  79.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  80.                 // line 12
  81.                 echo "                ";
  82.                 if (twig_get_attribute($this->env$this->source$context["item"], "path", [], "any"truetruefalse12)) {
  83.                     // line 13
  84.                     echo "                    <link rel=\"preload\" as=\"image\" href=\"";
  85.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\ImagesExtenstion']->AssetImageGalleryFunction(twig_get_attribute($this->env$this->source$context["item"], "path", [], "any"falsefalsefalse13)), "html"nulltrue);
  86.                     echo "\" />
  87.                 ";
  88.                 }
  89.                 // line 15
  90.                 echo "           ";
  91.             }
  92.             $_parent $context['_parent'];
  93.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  94.             $context array_intersect_key($context$_parent) + $_parent;
  95.             // line 16
  96.             echo "    ";
  97.         }
  98.         // line 17
  99.         echo "
  100. ";
  101.         
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  103.         
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  105.     }
  106.     // line 20
  107.     public function block_stylesheets($context, array $blocks = [])
  108.     {
  109.         $macros $this->macros;
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  114.         // line 21
  115.         echo "    ";
  116.         $this->displayParentBlock("stylesheets"$context$blocks);
  117.         echo "
  118.     ";
  119.         // line 22
  120.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie"$context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.'22$this->source); })()), 0, [], "array"falsefalsefalse22), "type", [], "any"falsefalsefalse22) == 4)) {
  121.             // line 23
  122.             echo "        <link rel=\"stylesheet\" type=\"text/css\" href=\"";
  123.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/flexslider/flexslider.css"), "html"nulltrue);
  124.             echo "\" media=\"screen\" >
  125.     ";
  126.         }
  127.         
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  129.         
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  131.     }
  132.     // line 27
  133.     public function block_body($context, array $blocks = [])
  134.     {
  135.         $macros $this->macros;
  136.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  138.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  140.         // line 28
  141.         echo "
  142.     <div class=\"page_cms page_activite pt-5\">
  143.         <div class=\"breadcrumb-style-default\">
  144.             <div class=\"container\">
  145.                 <div class=\"row\">
  146.                     <div class=\"col-lg-12\">
  147.                         <div class=\"inner text-center\">
  148.                             ";
  149.         // line 35
  150.         if ((array_key_exists("breadcrumb"$context) &&  !twig_test_empty((isset($context["breadcrumb"]) || array_key_exists("breadcrumb"$context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.'35$this->source); })())))) {
  151.             // line 36
  152.             echo "                                ";
  153.             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.'36$this->source); })()), "request", [], "any"falsefalsefalse36), "server", [], "any"falsefalsefalse36), "get", [=> "APP_THEME"], "method"falsefalsefalse36)) . "/partials/breadcrumb.html.twig"));
  154.             echo "
  155.                                 <h1 class=\"page-title\">";
  156.             // line 37
  157.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_last($this->env, (isset($context["breadcrumb"]) || array_key_exists("breadcrumb"$context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.'37$this->source); })())), "name", [], "any"falsefalsefalse37), "html"nulltrue);
  158.             echo "</h1>
  159.                             ";
  160.         }
  161.         // line 39
  162.         echo "                        </div>
  163.                     </div>
  164.                 </div>
  165.             </div>
  166.         </div>
  167.         <div class=\"container-fluid wrapper mt-3\">
  168.             <div class=\"row gx-5 py-2\">
  169.                 ";
  170.         // line 47
  171.         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.'47$this->source); })()), "summary", [], "any"falsefalsefalse47)) && (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.'47$this->source); })()), "summary", [], "any"falsefalsefalse47) != ""))) {
  172.             // line 48
  173.             echo "                    <div class=\"col-sm-12 text-center\">
  174.                         <h2 class=\"sub-title wow\">";
  175.             // line 49
  176.             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.'49$this->source); })()), "summary", [], "any"falsefalsefalse49), "html"nulltrue);
  177.             echo "</h2>
  178.                     </div>
  179.                 ";
  180.         }
  181.         // line 52
  182.         echo "                
  183.                 ";
  184.         // line 53
  185.         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.'53$this->source); })()), "image", [], "any"falsefalsefalse53) &&  !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.'53$this->source); })()), "image", [], "any"falsefalsefalse53)))) {
  186.             // line 54
  187.             echo "                    <div class=\"col-sm-12 text-center my-4\">
  188.                         <img class=\"lazyload img-fluid principal-img\" data-srcset=\"";
  189.             // line 55
  190.             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.'55$this->source); })()), "image", [], "any"falsefalsefalse55)), "html"nulltrue);
  191.             echo "\" src=\"";
  192.             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.'55$this->source); })()), "image", [], "any"falsefalsefalse55)), "html"nulltrue);
  193.             echo "\" alt=\"";
  194.             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.'55$this->source); })()), "title", [], "any"falsefalsefalse55), "html"nulltrue);
  195.             echo "\" />
  196.                     </div>
  197.                 ";
  198.         }
  199.         // line 58
  200.         echo "
  201.                 ";
  202.         // line 59
  203.         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.'59$this->source); })()), "content", [], "any"falsefalsefalse59)) && (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.'59$this->source); })()), "content", [], "any"falsefalsefalse59) != ""))) {
  204.             // line 60
  205.             echo "                    <div class=\"col-lg-12 content_post\">
  206.                         ";
  207.             // line 61
  208.             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.'61$this->source); })()), "content", [], "any"falsefalsefalse61);
  209.             echo "
  210.                         ";
  211.             // line 63
  212.             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.'63$this->source); })()), "typelien", [], "any"falsefalsefalse63) == null)) {
  213.                 // line 64
  214.                 echo "                            ";
  215.                 if ((array_key_exists("categorieTree"$context) && twig_get_attribute($this->env$this->source, ($context["categorieTree"] ?? null), 0, [], "array"truetruefalse64))) {
  216.                     // line 65
  217.                     echo "                                <div class=\"text-center py-2\">
  218.                                     <a href=\"";
  219.                     // line 66
  220.                     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.'66$this->source); })()), 0, [], "array"falsefalsefalse66), "slug", [], "any"falsefalsefalse66)]), "html"nulltrue);
  221.                     echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">Retour Ã  la liste ";
  222.                     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.'66$this->source); })()), 0, [], "array"falsefalsefalse66), "titre", [], "any"falsefalsefalse66), "html"nulltrue);
  223.                     echo "</a>
  224.                                 </div>
  225.                             ";
  226.                 }
  227.                 // line 69
  228.                 echo "                        ";
  229.             } 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.'69$this->source); })()), "typelien", [], "any"falsefalsefalse69) != 1)) {
  230.                 // line 70
  231.                 echo "                                ";
  232.                 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.'70$this->source); })()), "typelien", [], "any"falsefalsefalse70) == "4")) {
  233.                     // line 71
  234.                     echo "                                    <div class=\"text-center py-2\">
  235.                                         <a href=\"javascript:void(0)\" onclick=\"window.location.href = 'tel:";
  236.                     // line 72
  237.                     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.'72$this->source); })()), "telephone", [], "any"falsefalsefalse72), "html"nulltrue);
  238.                     echo "';\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
  239.                     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.'72$this->source); })()), "titrelien", [], "any"falsefalsefalse72), "html"nulltrue);
  240.                     echo "</a>
  241.                                     </div>
  242.                                 ";
  243.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 74
  244. (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'74$this->source); })()), "typelien", [], "any"falsefalsefalse74) == "2")) {
  245.                     // line 75
  246.                     echo "                                    <div class=\"text-center py-2\">
  247.                                         <a href=\"";
  248.                     // line 76
  249.                     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.'76$this->source); })()), "lieninterne", [], "any"falsefalsefalse76), "html"nulltrue);
  250.                     echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
  251.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'76$this->source); })()), "titrelien", [], "any"falsefalsefalse76), "html"nulltrue);
  252.                     echo "</a>
  253.                                     </div>
  254.                                 ";
  255.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 78
  256. (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'78$this->source); })()), "typelien", [], "any"falsefalsefalse78) == "3")) {
  257.                     // line 79
  258.                     echo "                                    <div class=\"text-center py-2\">
  259.                                         <a href=\"";
  260.                     // line 80
  261.                     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.'80$this->source); })()), "lienexterne", [], "any"falsefalsefalse80), "html"nulltrue);
  262.                     echo "\" target=\"_blank\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
  263.                     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.'80$this->source); })()), "titrelien", [], "any"falsefalsefalse80), "html"nulltrue);
  264.                     echo "</a>
  265.                                     </div>
  266.                                 ";
  267.                 }
  268.                 // line 83
  269.                 echo "                        ";
  270.             }
  271.             // line 84
  272.             echo "
  273.                         ";
  274.             // line 85
  275.             if (((isset($context["docs"]) || array_key_exists("docs"$context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.'85$this->source); })()) &&  !twig_test_empty((isset($context["docs"]) || array_key_exists("docs"$context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.'85$this->source); })())))) {
  276.                 // line 86
  277.                 echo "                            <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
  278.                                 ";
  279.                 // line 87
  280.                 $context['_parent'] = $context;
  281.                 $context['_seq'] = twig_ensure_traversable((isset($context["docs"]) || array_key_exists("docs"$context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.'87$this->source); })()));
  282.                 foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
  283.                     // line 88
  284.                     echo "                                    <a class=\"btn-back-pulse m-2\" href=\"";
  285.                     echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->source$context["doc"], "location", [], "any"falsefalsefalse88) . twig_get_attribute($this->env$this->source$context["doc"], "path", [], "any"falsefalsefalse88)) . "/") . twig_get_attribute($this->env$this->source$context["doc"], "fileName", [], "any"falsefalsefalse88)), "html"nulltrue);
  286.                     echo "\" title=\"";
  287.                     echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source$context["doc"], "fileName", [], "any"falsefalsefalse88), 0,  -4), "html"nulltrue);
  288.                     echo "\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>";
  289.                     echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source$context["doc"], "fileName", [], "any"falsefalsefalse88), 0,  -4), "html"nulltrue);
  290.                     echo "</a>   
  291.                                 ";
  292.                 }
  293.                 $_parent $context['_parent'];
  294.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['doc'], $context['_parent'], $context['loop']);
  295.                 $context array_intersect_key($context$_parent) + $_parent;
  296.                 // line 90
  297.                 echo "                            </div>
  298.                         ";
  299.             }
  300.             // line 92
  301.             echo "
  302.                     </div>
  303.                 ";
  304.         }
  305.         // line 96
  306.         echo "            </div>
  307.             ";
  308.         // line 98
  309.         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.'98$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.'98$this->source); })()))))) {
  310.             // line 99
  311.             echo "               <div class=\"row gx-5 py-4\">
  312.                     <div class=\"col-lg-12 d-flex justify-content-between\">
  313.                         <div class=\"\">
  314.                             ";
  315.             // line 102
  316.             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.'102$this->source); })())))) {
  317.                 // line 103
  318.                 echo "                              <a href=\"";
  319.                 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.'103$this->source); })()), "slug", [], "any"falsefalsefalse103)]), "html"nulltrue);
  320.                 echo "\" title=\"";
  321.                 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.'103$this->source); })()), "title", [], "any"falsefalsefalse103), "html"nulltrue);
  322.                 echo "\"><span class=\"signe1\"><i class=\"fa fa-arrow-left\"></i></span> ";
  323.                 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.'103$this->source); })()), "title", [], "any"falsefalsefalse103), "html"nulltrue);
  324.                 echo "</a>
  325.                             ";
  326.             }
  327.             // line 105
  328.             echo "                        </div>
  329.                         <div class=\"\">
  330.                             ";
  331.             // line 107
  332.             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.'107$this->source); })())))) {
  333.                 // line 108
  334.                 echo "                              <a href=\"";
  335.                 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.'108$this->source); })()), "slug", [], "any"falsefalsefalse108)]), "html"nulltrue);
  336.                 echo "\"  title=\"";
  337.                 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.'108$this->source); })()), "title", [], "any"falsefalsefalse108), "html"nulltrue);
  338.                 echo "\">";
  339.                 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.'108$this->source); })()), "title", [], "any"falsefalsefalse108), "html"nulltrue);
  340.                 echo "  <span class=\"signe1\"><i class=\"fa fa-arrow-right\"></i></span></a>
  341.                             ";
  342.             }
  343.             // line 110
  344.             echo "                        </div>
  345.                     </div>
  346.                 </div>
  347.             ";
  348.         }
  349.         // line 114
  350.         echo "        </div>
  351.         ";
  352.         // line 155
  353.         echo "
  354.         ";
  355.         // line 156
  356.         if (((((isset($context["galleries"]) || array_key_exists("galleries"$context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.'156$this->source); })()) &&  !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries"$context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.'156$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.'156$this->source); })())))) {
  357.             // line 157
  358.             echo "            ";
  359.             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.'157$this->source); })())));
  360.             echo "
  361.         ";
  362.         }
  363.         // line 159
  364.         echo "
  365.         ";
  366.         // line 160
  367.         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.'160$this->source); })()), "urlvideo", [], "any"falsefalsefalse160))) {
  368.             // line 161
  369.             echo "            <div class=\"container-fluid wrapper mt-3\">
  370.                 <div class=\"col-md-12 mt-1\">
  371.                     <div class=\"video\">
  372.                         ";
  373.             // line 164
  374.             $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.'164$this->source); })()), "urlvideo", [], "any"falsefalsefalse164), "?v="), 1, [], "array"falsefalsefalse164);
  375.             // line 165
  376.             echo "                        <a class=\"video-thumbnail m-0\" href=\"";
  377.             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.'165$this->source); })()), "urlvideo", [], "any"falsefalsefalse165), "html"nulltrue);
  378.             echo "\" data-fancybox=\"video\">
  379.                             <img src=\"https://img.youtube.com/vi/";
  380.             // line 166
  381.             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.'166$this->source); })()), "html"nulltrue);
  382.             echo "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
  383.                         </a>
  384.                     </div>
  385.                 </div>
  386.             </div>
  387.         ";
  388.         }
  389.         // line 172
  390.         echo "
  391.         ";
  392.         // line 173
  393.         if (array_key_exists("blocs"$context)) {
  394.             // line 174
  395.             echo "            ";
  396.             $context['_parent'] = $context;
  397.             $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.'174$this->source); })()), "Bloc", [], "any"falsefalsefalse174));
  398.             foreach ($context['_seq'] as $context["_key"] => $context["bloc"]) {
  399.                 // line 175
  400.                 echo "                ";
  401.                 if (($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && (twig_get_attribute($this->env$this->source$context["bloc"], "mobile", [], "any"falsefalsefalse175) == true))) {
  402.                     // line 176
  403.                     echo "                    ";
  404.                     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.'176$this->source); })()), "request", [], "any"falsefalsefalse176), "server", [], "any"falsefalsefalse176), "get", [=> "APP_THEME"], "method"falsefalsefalse176)) . "/bloc/bloc.html.twig"), ["bloc" =>                     // line 177
  405. $context["bloc"]], false);
  406.                     // line 178
  407.                     echo "
  408.                 ";
  409.                 }
  410.                 // line 180
  411.                 echo "                
  412.                 ";
  413.                 // line 181
  414.                 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"falsefalsefalse181) == true))) {
  415.                     // line 182
  416.                     echo "                    ";
  417.                     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.'182$this->source); })()), "request", [], "any"falsefalsefalse182), "server", [], "any"falsefalsefalse182), "get", [=> "APP_THEME"], "method"falsefalsefalse182)) . "/bloc/bloc.html.twig"), ["bloc" =>                     // line 183
  418. $context["bloc"]], false);
  419.                     // line 184
  420.                     echo "
  421.                 ";
  422.                 }
  423.                 // line 186
  424.                 echo "            ";
  425.             }
  426.             $_parent $context['_parent'];
  427.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bloc'], $context['_parent'], $context['loop']);
  428.             $context array_intersect_key($context$_parent) + $_parent;
  429.             // line 187
  430.             echo "        ";
  431.         }
  432.         echo 
  433.     </div> 
  434. ";
  435.         
  436.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  437.         
  438.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  439.     }
  440.     // line 192
  441.     public function block_javascripts($context, array $blocks = [])
  442.     {
  443.         $macros $this->macros;
  444.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  445.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  446.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  447.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  448.         // line 193
  449.         echo "    ";
  450.         $this->displayParentBlock("javascripts"$context$blocks);
  451.         echo "
  452.     <script src=\"";
  453.         // line 194
  454.         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);
  455.         echo "\"></script>
  456.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js\"></script>
  457.     <script>
  458.     
  459.         var current_fs, next_fs, previous_fs;
  460.         var left, opacity, scale; 
  461.         var animating; 
  462.         \$(\".next\").click(function(){
  463.             current_fs = \$(this).parent();
  464.             next_fs = \$(this).parent().next();
  465.             
  466.             if (!validateForm(current_fs)) {
  467.                 return false;
  468.             }
  469.             if(animating) return false;
  470.             animating = true;
  471.         
  472.             \$(\"#progressbar li\").eq(\$(\"fieldset\").index(next_fs)).addClass(\"active\");
  473.             next_fs.show(); 
  474.             //hide the current fieldset with style
  475.             current_fs.animate({opacity: 0}, {
  476.                         step: function(now, mx) {
  477.                             //as the opacity of current_fs reduces to 0 - stored in \"now\"
  478.                             //1. scale current_fs down to 80%
  479.                             scale = 1 - (1 - now) * 0.2;
  480.                             //2. bring next_fs from the right(50%)
  481.                             left = (now * 50)+\"%\";
  482.                             //3. increase opacity of next_fs to 1 as it moves in
  483.                             opacity = 1 - now;
  484.                             current_fs.css({
  485.                         'transform': 'scale('+scale+')',
  486.                         'position': 'absolute'
  487.                     });
  488.                     next_fs.css({'left': left, 'opacity': opacity});
  489.                 }, 
  490.                 duration: 1000, 
  491.                 complete: function(){
  492.                     current_fs.hide();
  493.                     animating = false;
  494.                 }, 
  495.                 //this comes from the custom easing plugin
  496.                 easing: 'easeInOutBack'
  497.             });
  498.         });
  499.         \$(\".previous\").click(function(){
  500.             current_fs = \$(this).parent();
  501.             previous_fs = \$(this).parent().prev();
  502.             // if (!validateForm(current_fs)) {
  503.             //     return false;
  504.             // }
  505.             if(animating) return false;
  506.             animating = true;
  507.             
  508.             //de-activate current step on progressbar
  509.             \$(\"#progressbar li\").eq(\$(\"fieldset\").index(current_fs)).removeClass(\"active\");
  510.             
  511.             //show the previous fieldset
  512.             previous_fs.show(); 
  513.             //hide the current fieldset with style
  514.             previous_fs.css({'transform': 'scale(1)', 'opacity': '1','position':'relative'});
  515.             current_fs.hide();
  516.             animating = false;
  517.             // current_fs.animate({opacity: 0}, {
  518.             //     step: function(now, mx) {
  519.             //         //as the opacity of current_fs reduces to 0 - stored in \"now\"
  520.             //         //1. scale previous_fs from 80% to 100%
  521.             //         scale = 0.8 + (1 - now) * 0.2;
  522.             //         //2. take current_fs to the right(50%) - from 0%
  523.             //         left = ((1-now) * 50)+\"%\";
  524.             //         //3. increase opacity of previous_fs to 1 as it moves in
  525.             //         opacity = 1 - now;
  526.             //         current_fs.css({'left': left});
  527.             //         previous_fs.css({'transform': 'scale('+scale+')', 'opacity': opacity,'position':'relative'});
  528.             //     }, 
  529.             //     duration: 800, 
  530.             //     complete: function(){
  531.             //         current_fs.hide();
  532.             //         animating = false;
  533.             //     }, 
  534.             //     //this comes from the custom easing plugin
  535.             //     easing: 'easeInOutBack'
  536.             // });
  537.         });
  538.         // \$(\".form-wizrd .submit.action-button\").click(function(e){
  539.         //      current_fs = \$(this).parent();
  540.         //      if (!validateForm(current_fs)) {
  541.         //         return false;
  542.         //      }
  543.         // });
  544.         function validateForm(current_fs) {
  545.             let formTabs, formInputs, i, valid = true;
  546.             formInputs = current_fs[0].querySelectorAll('[data-form-input]');
  547.      
  548.             for (i = 0; i < formInputs.length; i++) {
  549.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') != 'checkbox') {
  550.                     formInputs[i].addEventListener('keyup', (event) => {
  551.                         event.target.classList.remove(\"has-error\");
  552.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  553.                        // event.target.nextElementSibling.style.display = \"none\";
  554.                     });
  555.                 }
  556.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'checkbox') {
  557.                     formInputs[i].addEventListener('change', (event) => {
  558.                         if(\$(event.target).is(':checked')){
  559.                             \$(event.target).attr('checked', true);
  560.                         }else{
  561.                             \$(event.target).attr('checked', false);
  562.                         }
  563.                         event.target.classList.remove(\"has-error\");
  564.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  565.                         //event.target.nextElementSibling.style.display = \"none\";
  566.                     });
  567.                 }
  568.                 if (formInputs[i].hasAttribute(\"required\") && formInputs[i].nodeName == 'SELECT') {
  569.                     formInputs[i].addEventListener('change', (event) => {
  570.                         console.log('select change');
  571.                         event.target.classList.remove(\"has-error\");
  572.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  573.                         //event.target.nextElementSibling.style.display = \"none\";
  574.                     });
  575.                 }
  576.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'email') {
  577.                     formInputs[i].addEventListener('keyup', (event) => {
  578.                         console.log(isEmail(event.target.value));
  579.                         if (isEmail(event.target.value) == true) {
  580.                            event.target.classList.remove(\"has-error\");
  581.                            \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  582.                         }else{
  583.                             if (!event.target.classList.contains('has-error')) {
  584.                                 event.target.className += \" has-error\";
  585.                             }
  586.                             \$(event.target.parentElement).find('.invalid-feedback').html('Veuillez choisir un email valide.');
  587.                             \$(event.target.parentElement).find('.invalid-feedback').css('display','block');
  588.                         }
  589.                        // event.target.nextElementSibling.style.display = \"none\";
  590.                     });
  591.                 }
  592.                 if(formInputs[i].hasAttribute(\"required\")){
  593.                     if (\$(formInputs[i]).attr('type') == 'checkbox' && \$(formInputs[i]).is(':checked') == false) {
  594.                         if (!formInputs[i].classList.contains('has-error')) {
  595.                             formInputs[i].className += \" has-error\";
  596.                         }
  597.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  598.                         valid = false;
  599.                     }else if(formInputs[i].value == \"\" && (\$(formInputs[i]).attr('type') == 'text' || formInputs[i].nodeName == 'SELECT' || formInputs[i].nodeName == 'TEXTAREA')){
  600.                         if (!formInputs[i].classList.contains('has-error')) {
  601.                             formInputs[i].className += \" has-error\";
  602.                         }
  603.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  604.                          valid = false;
  605.                     }else if(!isEmail(formInputs[i].value) && \$(formInputs[i]).attr('type') == 'email'){
  606.                         if (!formInputs[i].classList.contains('has-error')) {
  607.                             formInputs[i].className += \" has-error\";
  608.                         }
  609.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  610.                          valid = false;
  611.                     }
  612.                     //formInputs[i].nextElementSibling.style.display = \"block\";                   
  613.                 }
  614.             }
  615.             return valid;
  616.         }
  617.         function isEmail(email) {
  618.             var EmailRegex = /^([a-zA-Z0-9_.+-])+\\@(([a-zA-Z0-9-])+\\.)+([a-zA-Z0-9]{2,4})+\$/;
  619.             return EmailRegex.test(email);
  620.         }
  621.     </script>
  622.     <script>
  623.        if(document.getElementById(\"builder\")){
  624.         var data_fields = document.getElementById(\"builder\").getAttribute('data-config');
  625.         if(data_fields != ''){
  626.            data_fields = JSON.parse(data_fields);
  627.            console.log(JSON.parse(data_fields));
  628.            Formio.createForm(document.getElementById('builder'), 
  629.               JSON.parse(data_fields),
  630.            ).then(function(form) {
  631.                 // Prevent the submission from going to the form.io server.
  632.                 form.nosubmit = true;
  633.                 // Triggered when they click the submit button.
  634.                 form.on('submit', function(submission) {
  635.                     var data = submission.data;
  636.                     grecaptcha.execute('";
  637.         // line 398
  638.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "clekey", [], "any"falsefalsefalse398), "html"nulltrue);
  639.         echo "', {action: 'create_comment'}).then(token => {
  640.                         \$('#builder').find('[name=g-recaptcha-response]').val(token);
  641.                         data['g-recaptcha-response'] = token;
  642.                         data['IdForm'] = \$('#builder').parent().find('input[name=\"IdForm\"]').val();
  643.                         \$('#builder').parent().find('button[type=\"submit\"]').attr('disabled','true');
  644.                         \$.ajax({
  645.                             type:\"POST\",
  646.                             cache:false,
  647.                             url:\"";
  648.         // line 406
  649.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("save_form");
  650.         echo "\",
  651.                             data:data,   
  652.                             success: function (data) {
  653.                                window.location = data
  654.                             }
  655.                         });
  656.                     });
  657.                 });
  658.             });
  659.         }
  660.        }
  661.     </script>
  662.     ";
  663.         // line 419
  664.         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.'419$this->source); })()), 0, [], "array"falsefalsefalse419), "type", [], "any"falsefalsefalse419) == 4)) {
  665.             // line 420
  666.             echo "        ";
  667.             $this->displayParentBlock("javascripts"$context$blocks);
  668.             echo "
  669.         <script src=\"";
  670.             // line 421
  671.             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);
  672.             echo "\" ></script>
  673.         <script>    
  674.             /*-------------------------------------------------*/
  675.             /* =  Sx flexslider 
  676.             /*-------------------------------------------------*/
  677.             if (\$(\".sx_flexslider\").length) {
  678.             \$('.flex-carousel').flexslider({
  679.             animation: \"slide\",
  680.             controlNav: false,
  681.             animationLoop: true,
  682.             slideshow: false,
  683.             itemWidth: 150,
  684.             asNavFor: '.flex-slider'
  685.             });
  686.             \$('.flex-slider').flexslider({
  687.             animation: \"slide\",
  688.             controlNav: false,
  689.             animationLoop: true,
  690.             slideshow: false,
  691.             sync: \".flex-carousel\"
  692.             });
  693.             }
  694.         </script>
  695.     ";
  696.         }
  697.         // line 445
  698.         echo "    
  699. ";
  700.         
  701.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  702.         
  703.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  704.     }
  705.     public function getTemplateName()
  706.     {
  707.         return "front/theme1/page_ref.html.twig";
  708.     }
  709.     public function isTraitable()
  710.     {
  711.         return false;
  712.     }
  713.     public function getDebugInfo()
  714.     {
  715.         return array (  757 => 445,  730 => 421,  725 => 420,  723 => 419,  707 => 406,  696 => 398,  489 => 194,  484 => 193,  474 => 192,  459 => 187,  453 => 186,  449 => 184,  447 => 183,  445 => 182,  443 => 181,  440 => 180,  436 => 178,  434 => 177,  432 => 176,  429 => 175,  424 => 174,  422 => 173,  419 => 172,  410 => 166,  405 => 165,  403 => 164,  398 => 161,  396 => 160,  393 => 159,  387 => 157,  385 => 156,  382 => 155,  378 => 114,  372 => 110,  362 => 108,  360 => 107,  356 => 105,  346 => 103,  344 => 102,  339 => 99,  337 => 98,  333 => 96,  327 => 92,  323 => 90,  310 => 88,  306 => 87,  303 => 86,  301 => 85,  298 => 84,  295 => 83,  287 => 80,  284 => 79,  282 => 78,  275 => 76,  272 => 75,  270 => 74,  263 => 72,  260 => 71,  257 => 70,  254 => 69,  246 => 66,  243 => 65,  240 => 64,  238 => 63,  233 => 61,  230 => 60,  228 => 59,  225 => 58,  215 => 55,  212 => 54,  210 => 53,  207 => 52,  201 => 49,  198 => 48,  196 => 47,  186 => 39,  181 => 37,  176 => 36,  174 => 35,  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,);
  716.     }
  717.     public function getSourceContext()
  718.     {
  719.         return new Source("{% extends \"front/\"~ app.request.server.get('APP_THEME') ~\"/base.html.twig\" %}
  720. {% block preload %}
  721.     {% if post.image is defined  and post.image is not empty %}
  722.         {% if post.image %}
  723.             <link rel=\"preload\" as=\"image\" href=\"{{asset_image(post.image)}}\" />
  724.         {% endif %}
  725.     {% endif %}
  726.      {% if galleries is defined and galleries is not empty %}
  727.            {% for item in galleries %}
  728.                 {% if item.path is defined %}
  729.                     <link rel=\"preload\" as=\"image\" href=\"{{asset_image_gallery(item.path)}}\" />
  730.                 {% endif %}
  731.            {% endfor %}
  732.     {% endif %}
  733. {% endblock %}
  734. {% block stylesheets %}
  735.     {{parent()}}
  736.     {% if modele_galerie[0].type == 4 %}
  737.         <link rel=\"stylesheet\" type=\"text/css\" href=\"{{asset('templates/front/theme1/assets/plugins/flexslider/flexslider.css')}}\" media=\"screen\" >
  738.     {% endif %}
  739. {% endblock %}
  740. {% block body %}
  741.     <div class=\"page_cms page_activite pt-5\">
  742.         <div class=\"breadcrumb-style-default\">
  743.             <div class=\"container\">
  744.                 <div class=\"row\">
  745.                     <div class=\"col-lg-12\">
  746.                         <div class=\"inner text-center\">
  747.                             {% if breadcrumb is defined and breadcrumb is not empty %}
  748.                                 {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig')}}
  749.                                 <h1 class=\"page-title\">{{breadcrumb|last.name}}</h1>
  750.                             {% endif %}
  751.                         </div>
  752.                     </div>
  753.                 </div>
  754.             </div>
  755.         </div>
  756.         <div class=\"container-fluid wrapper mt-3\">
  757.             <div class=\"row gx-5 py-2\">
  758.                 {% if post.summary is not empty and post.summary != \"\" %}
  759.                     <div class=\"col-sm-12 text-center\">
  760.                         <h2 class=\"sub-title wow\">{{post.summary}}</h2>
  761.                     </div>
  762.                 {% endif %}
  763.                 
  764.                 {% if post.image and post.image is not empty  %}
  765.                     <div class=\"col-sm-12 text-center my-4\">
  766.                         <img class=\"lazyload img-fluid principal-img\" data-srcset=\"{{asset_image(post.image)}}\" src=\"{{asset_image(post.image)}}\" alt=\"{{post.title}}\" />
  767.                     </div>
  768.                 {% endif %}
  769.                 {% if post.content is not empty and post.content != \"\" %}
  770.                     <div class=\"col-lg-12 content_post\">
  771.                         {{post.content|raw}}
  772.                         {% if post.typelien == null %}
  773.                             {% if categorieTree is defined and categorieTree[0] is defined  %}
  774.                                 <div class=\"text-center py-2\">
  775.                                     <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>
  776.                                 </div>
  777.                             {% endif %}
  778.                         {% elseif post.typelien != 1 %}
  779.                                 {% if post.typelien == '4' %}
  780.                                     <div class=\"text-center py-2\">
  781.                                         <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>
  782.                                     </div>
  783.                                 {% elseif post.typelien == '2' %}
  784.                                     <div class=\"text-center py-2\">
  785.                                         <a href=\"{{post.lieninterne}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{post.titrelien}}</a>
  786.                                     </div>
  787.                                 {% elseif post.typelien == '3' %}
  788.                                     <div class=\"text-center py-2\">
  789.                                         <a href=\"{{post.lienexterne}}\" target=\"_blank\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{post.titrelien}}</a>
  790.                                     </div>
  791.                                 {% endif %}
  792.                         {% endif %}
  793.                         {% if docs and docs is not empty %}
  794.                             <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
  795.                                 {% for doc in docs %}
  796.                                     <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>   
  797.                                 {% endfor %}
  798.                             </div>
  799.                         {% endif %}
  800.                     </div>
  801.                 {% endif %}
  802.             </div>
  803.             {% if next_article is defined and next_article is not empty or prev_article is defined and prev_article is not empty %}
  804.                <div class=\"row gx-5 py-4\">
  805.                     <div class=\"col-lg-12 d-flex justify-content-between\">
  806.                         <div class=\"\">
  807.                             {% if prev_article is defined and prev_article is not empty %}
  808.                               <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>
  809.                             {% endif %}
  810.                         </div>
  811.                         <div class=\"\">
  812.                             {% if next_article is defined and next_article is not empty %}
  813.                               <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>
  814.                             {% endif %}
  815.                         </div>
  816.                     </div>
  817.                 </div>
  818.             {% endif %}
  819.         </div>
  820.         {# {% if actualite_ref is defined and actualite_ref is not empty %}
  821.             <div class=\"container-fluid wrapper mt-3\">
  822.                 <div class=\"row gx-5 py-2\">
  823.                     <div class=\"col-sm-12 text-center\">
  824.                         <h2 class=\"sub-title wow\">Nos autres prestations autour de {{secteur.titre}}</h2>
  825.                     </div>
  826.                     <div class=\"col-sm-12\">
  827.                          <div class=\"list_blocs pos1\">
  828.                             <div class=\"blocs\">
  829.                                 <section id=\"results\" class=\"results dynam-affichage affichage1 type_affiche3\">
  830.                                     {% for item in actualite_ref %}
  831.                                         {% set duree = 0.1 %}
  832.                                         {% set image_item = item.image != null? asset_image(item.image):'uploads/images/' ~ parametre.imagevide %}
  833.                                         <a class=\"article wow zoomIn animated\" data-wow-delay=\"{{duree}}s\" href=\"{{path('page',{slug:item.slug})}}\" title=\"\" style=\"visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;\">
  834.                                             <span class=\"article-image lazyloaded\"  style=\"background-image: url({{image_item}}); background-size: cover; background-position: center center; background-repeat: no-repeat;\"> </span>                 
  835.                                             <span class=\"article-cnt\">
  836.                                                 <h3 class=\"article-titre\">{{item.title}}</h3>
  837.                                                 <span class=\"article-txt\">
  838.                                                     {% if item.summary is not empty %}
  839.                                                           {{item.summary|raw}}
  840.                                                     {% else %}
  841.                                                           {{cutText(item.content)|raw}}
  842.                                                     {% endif %}
  843.                                                 </span>
  844.                                                 <span class=\"article-bts\">
  845.                                                     <span class=\"article-plus btn-fade\">En savoir plus</span>
  846.                                                 </span>
  847.                                             </span>
  848.                                         </a>
  849.                                         {% set duree = duree + 0.2 %}
  850.                                     {% endfor %}
  851.                                 </section>
  852.                             </div>
  853.                         </div>
  854.                     </div>
  855.                 </div>
  856.             </div>
  857.         {% endif %} #}
  858.         {% if galleries and galleries is not empty and template_model_gallerie is defined and template_model_gallerie is not empty %}
  859.             {{ include(template_from_string(template_model_gallerie)) }}
  860.         {% endif %}
  861.         {% if post.urlvideo is not empty %}
  862.             <div class=\"container-fluid wrapper mt-3\">
  863.                 <div class=\"col-md-12 mt-1\">
  864.                     <div class=\"video\">
  865.                         {% set id_video_externe = post.urlvideo|split('?v=')[1] %}
  866.                         <a class=\"video-thumbnail m-0\" href=\"{{post.urlvideo}}\" data-fancybox=\"video\">
  867.                             <img src=\"https://img.youtube.com/vi/{{id_video_externe}}/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
  868.                         </a>
  869.                     </div>
  870.                 </div>
  871.             </div>
  872.         {% endif %}
  873.         {% if blocs is defined  %}
  874.             {% for bloc in blocs.Bloc %}
  875.                 {% if is_mobile() and  bloc.mobile == true   %}
  876.                     {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
  877.                         bloc: bloc,
  878.                     }, with_context = false)}}
  879.                 {% endif %}
  880.                 
  881.                 {% if is_full_view() and is_mobile() == false and bloc.desktop == true %}
  882.                     {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
  883.                         bloc: bloc,
  884.                     }, with_context = false)}}
  885.                 {% endif %}
  886.             {% endfor %}
  887.         {% endif %} 
  888.     </div> 
  889. {% endblock %}
  890. {% block javascripts %}
  891.     {{parent()}}
  892.     <script src=\"{{ asset('assets-admin/plugins/form-builder-io/formio.full.min.js') }}\"></script>
  893.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js\"></script>
  894.     <script>
  895.     
  896.         var current_fs, next_fs, previous_fs;
  897.         var left, opacity, scale; 
  898.         var animating; 
  899.         \$(\".next\").click(function(){
  900.             current_fs = \$(this).parent();
  901.             next_fs = \$(this).parent().next();
  902.             
  903.             if (!validateForm(current_fs)) {
  904.                 return false;
  905.             }
  906.             if(animating) return false;
  907.             animating = true;
  908.         
  909.             \$(\"#progressbar li\").eq(\$(\"fieldset\").index(next_fs)).addClass(\"active\");
  910.             next_fs.show(); 
  911.             //hide the current fieldset with style
  912.             current_fs.animate({opacity: 0}, {
  913.                         step: function(now, mx) {
  914.                             //as the opacity of current_fs reduces to 0 - stored in \"now\"
  915.                             //1. scale current_fs down to 80%
  916.                             scale = 1 - (1 - now) * 0.2;
  917.                             //2. bring next_fs from the right(50%)
  918.                             left = (now * 50)+\"%\";
  919.                             //3. increase opacity of next_fs to 1 as it moves in
  920.                             opacity = 1 - now;
  921.                             current_fs.css({
  922.                         'transform': 'scale('+scale+')',
  923.                         'position': 'absolute'
  924.                     });
  925.                     next_fs.css({'left': left, 'opacity': opacity});
  926.                 }, 
  927.                 duration: 1000, 
  928.                 complete: function(){
  929.                     current_fs.hide();
  930.                     animating = false;
  931.                 }, 
  932.                 //this comes from the custom easing plugin
  933.                 easing: 'easeInOutBack'
  934.             });
  935.         });
  936.         \$(\".previous\").click(function(){
  937.             current_fs = \$(this).parent();
  938.             previous_fs = \$(this).parent().prev();
  939.             // if (!validateForm(current_fs)) {
  940.             //     return false;
  941.             // }
  942.             if(animating) return false;
  943.             animating = true;
  944.             
  945.             //de-activate current step on progressbar
  946.             \$(\"#progressbar li\").eq(\$(\"fieldset\").index(current_fs)).removeClass(\"active\");
  947.             
  948.             //show the previous fieldset
  949.             previous_fs.show(); 
  950.             //hide the current fieldset with style
  951.             previous_fs.css({'transform': 'scale(1)', 'opacity': '1','position':'relative'});
  952.             current_fs.hide();
  953.             animating = false;
  954.             // current_fs.animate({opacity: 0}, {
  955.             //     step: function(now, mx) {
  956.             //         //as the opacity of current_fs reduces to 0 - stored in \"now\"
  957.             //         //1. scale previous_fs from 80% to 100%
  958.             //         scale = 0.8 + (1 - now) * 0.2;
  959.             //         //2. take current_fs to the right(50%) - from 0%
  960.             //         left = ((1-now) * 50)+\"%\";
  961.             //         //3. increase opacity of previous_fs to 1 as it moves in
  962.             //         opacity = 1 - now;
  963.             //         current_fs.css({'left': left});
  964.             //         previous_fs.css({'transform': 'scale('+scale+')', 'opacity': opacity,'position':'relative'});
  965.             //     }, 
  966.             //     duration: 800, 
  967.             //     complete: function(){
  968.             //         current_fs.hide();
  969.             //         animating = false;
  970.             //     }, 
  971.             //     //this comes from the custom easing plugin
  972.             //     easing: 'easeInOutBack'
  973.             // });
  974.         });
  975.         // \$(\".form-wizrd .submit.action-button\").click(function(e){
  976.         //      current_fs = \$(this).parent();
  977.         //      if (!validateForm(current_fs)) {
  978.         //         return false;
  979.         //      }
  980.         // });
  981.         function validateForm(current_fs) {
  982.             let formTabs, formInputs, i, valid = true;
  983.             formInputs = current_fs[0].querySelectorAll('[data-form-input]');
  984.      
  985.             for (i = 0; i < formInputs.length; i++) {
  986.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') != 'checkbox') {
  987.                     formInputs[i].addEventListener('keyup', (event) => {
  988.                         event.target.classList.remove(\"has-error\");
  989.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  990.                        // event.target.nextElementSibling.style.display = \"none\";
  991.                     });
  992.                 }
  993.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'checkbox') {
  994.                     formInputs[i].addEventListener('change', (event) => {
  995.                         if(\$(event.target).is(':checked')){
  996.                             \$(event.target).attr('checked', true);
  997.                         }else{
  998.                             \$(event.target).attr('checked', false);
  999.                         }
  1000.                         event.target.classList.remove(\"has-error\");
  1001.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  1002.                         //event.target.nextElementSibling.style.display = \"none\";
  1003.                     });
  1004.                 }
  1005.                 if (formInputs[i].hasAttribute(\"required\") && formInputs[i].nodeName == 'SELECT') {
  1006.                     formInputs[i].addEventListener('change', (event) => {
  1007.                         console.log('select change');
  1008.                         event.target.classList.remove(\"has-error\");
  1009.                         \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  1010.                         //event.target.nextElementSibling.style.display = \"none\";
  1011.                     });
  1012.                 }
  1013.                 if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'email') {
  1014.                     formInputs[i].addEventListener('keyup', (event) => {
  1015.                         console.log(isEmail(event.target.value));
  1016.                         if (isEmail(event.target.value) == true) {
  1017.                            event.target.classList.remove(\"has-error\");
  1018.                            \$(event.target.parentElement).find('.invalid-feedback').css('display','none');
  1019.                         }else{
  1020.                             if (!event.target.classList.contains('has-error')) {
  1021.                                 event.target.className += \" has-error\";
  1022.                             }
  1023.                             \$(event.target.parentElement).find('.invalid-feedback').html('Veuillez choisir un email valide.');
  1024.                             \$(event.target.parentElement).find('.invalid-feedback').css('display','block');
  1025.                         }
  1026.                        // event.target.nextElementSibling.style.display = \"none\";
  1027.                     });
  1028.                 }
  1029.                 if(formInputs[i].hasAttribute(\"required\")){
  1030.                     if (\$(formInputs[i]).attr('type') == 'checkbox' && \$(formInputs[i]).is(':checked') == false) {
  1031.                         if (!formInputs[i].classList.contains('has-error')) {
  1032.                             formInputs[i].className += \" has-error\";
  1033.                         }
  1034.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  1035.                         valid = false;
  1036.                     }else if(formInputs[i].value == \"\" && (\$(formInputs[i]).attr('type') == 'text' || formInputs[i].nodeName == 'SELECT' || formInputs[i].nodeName == 'TEXTAREA')){
  1037.                         if (!formInputs[i].classList.contains('has-error')) {
  1038.                             formInputs[i].className += \" has-error\";
  1039.                         }
  1040.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  1041.                          valid = false;
  1042.                     }else if(!isEmail(formInputs[i].value) && \$(formInputs[i]).attr('type') == 'email'){
  1043.                         if (!formInputs[i].classList.contains('has-error')) {
  1044.                             formInputs[i].className += \" has-error\";
  1045.                         }
  1046.                         \$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
  1047.                          valid = false;
  1048.                     }
  1049.                     //formInputs[i].nextElementSibling.style.display = \"block\";                   
  1050.                 }
  1051.             }
  1052.             return valid;
  1053.         }
  1054.         function isEmail(email) {
  1055.             var EmailRegex = /^([a-zA-Z0-9_.+-])+\\@(([a-zA-Z0-9-])+\\.)+([a-zA-Z0-9]{2,4})+\$/;
  1056.             return EmailRegex.test(email);
  1057.         }
  1058.     </script>
  1059.     <script>
  1060.        if(document.getElementById(\"builder\")){
  1061.         var data_fields = document.getElementById(\"builder\").getAttribute('data-config');
  1062.         if(data_fields != ''){
  1063.            data_fields = JSON.parse(data_fields);
  1064.            console.log(JSON.parse(data_fields));
  1065.            Formio.createForm(document.getElementById('builder'), 
  1066.               JSON.parse(data_fields),
  1067.            ).then(function(form) {
  1068.                 // Prevent the submission from going to the form.io server.
  1069.                 form.nosubmit = true;
  1070.                 // Triggered when they click the submit button.
  1071.                 form.on('submit', function(submission) {
  1072.                     var data = submission.data;
  1073.                     grecaptcha.execute('{{ParametreSite().clekey}}', {action: 'create_comment'}).then(token => {
  1074.                         \$('#builder').find('[name=g-recaptcha-response]').val(token);
  1075.                         data['g-recaptcha-response'] = token;
  1076.                         data['IdForm'] = \$('#builder').parent().find('input[name=\"IdForm\"]').val();
  1077.                         \$('#builder').parent().find('button[type=\"submit\"]').attr('disabled','true');
  1078.                         \$.ajax({
  1079.                             type:\"POST\",
  1080.                             cache:false,
  1081.                             url:\"{{path('save_form')}}\",
  1082.                             data:data,   
  1083.                             success: function (data) {
  1084.                                window.location = data
  1085.                             }
  1086.                         });
  1087.                     });
  1088.                 });
  1089.             });
  1090.         }
  1091.        }
  1092.     </script>
  1093.     {% if modele_galerie[0].type == 4 %}
  1094.         {{parent()}}
  1095.         <script src=\"{{asset('templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js')}}\" ></script>
  1096.         <script>    
  1097.             /*-------------------------------------------------*/
  1098.             /* =  Sx flexslider 
  1099.             /*-------------------------------------------------*/
  1100.             if (\$(\".sx_flexslider\").length) {
  1101.             \$('.flex-carousel').flexslider({
  1102.             animation: \"slide\",
  1103.             controlNav: false,
  1104.             animationLoop: true,
  1105.             slideshow: false,
  1106.             itemWidth: 150,
  1107.             asNavFor: '.flex-slider'
  1108.             });
  1109.             \$('.flex-slider').flexslider({
  1110.             animation: \"slide\",
  1111.             controlNav: false,
  1112.             animationLoop: true,
  1113.             slideshow: false,
  1114.             sync: \".flex-carousel\"
  1115.             });
  1116.             }
  1117.         </script>
  1118.     {% endif %}
  1119.     
  1120. {% endblock %}
  1121. ""front/theme1/page_ref.html.twig""/var/www/vhosts/hrz.fr/new-site.hrz.fr/templates/front/theme1/page_ref.html.twig");
  1122.     }
  1123. }