var/cache/dev/twig/78/78a48f039ae9c9ba066bad33627e594f.php line 213

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. /* layout.html.twig */
  14. class __TwigTemplate_115a761c1df4198b06306c65ec760d3c 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->parent = false;
  23.         $this->blocks = [
  24.             'head_stylesheets' => [$this, 'block_head_stylesheets'],
  25.             'head_stylesheets_footer' => [$this, 'block_head_stylesheets_footer'],
  26.             'content' => [$this, 'block_content'],
  27.             'headscripts' => [$this, 'block_headscripts'],
  28.             'inlinescripts' => [$this, 'block_inlinescripts'],
  29.             'snippetscripts' => [$this, 'block_snippetscripts'],
  30.         ];
  31.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  32.         $this->checkSecurity();
  33.         $this->deferred = $this->env->getExtension('Twig\DeferredExtension\DeferredExtension');
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros = $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
  42.         // line 1
  43.         echo "
  44. <!DOCTYPE html>
  45. <html dir=\"ltr\" lang=\"";
  46.         // line 3
  47.         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_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.', 3, $this->source); })()), "request", [], "any", false, false, true, 3), "locale", [], "any", false, false, true, 3), 3, $this->source), "html", null, true);
  48.         echo "\">
  49. <head>
  50.     
  51.     ";
  52.         // line 7
  53.         $this->loadTemplate("head/metas.html.twig", "layout.html.twig", 7)->display($context);
  54.         // line 8
  55.         echo "    
  56.     ";
  57.         // line 9
  58.         if (($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("cookiebotHide") == false)) {
  59.             // line 10
  60.             echo "        ";
  61.             $this->loadTemplate("head/cookiebot-head.html.twig", "layout.html.twig", 10)->display($context);
  62.             // line 11
  63.             echo "    ";
  64.         }
  65.         // line 12
  66.         echo "
  67.     ";
  68.         // line 20
  69.         echo "    ";
  70.         ob_start();
  71.         // line 21
  72.         echo "        ";
  73.         // line 22
  74.         echo "        ";
  75.         // line 23
  76.         echo "        
  77.         ";
  78.         // line 24
  79.         twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => "https://cdnjs.cloudflare.com/ajax/libs/uikit/3.5.7/css/uikit.min.css"], "method", false, false, true, 24);
  80.         // line 25
  81.         echo "        ";
  82.         if (($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("cookiebotHide") == true)) {
  83.             // line 26
  84.             echo "            ";
  85.             twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => "https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.css"], "method", false, false, true, 26);
  86.             // line 27
  87.             echo "        ";
  88.         }
  89.         // line 28
  90.         echo "
  91.         ";
  92.         // line 29
  93.         twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/css/application.min.css")], "method", false, false, true, 29);
  94.         // line 30
  95.         echo "        ";
  96.         // line 31
  97.         echo "
  98.         ";
  99.         // line 33
  100.         echo "        ";
  101.         twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => "https://use.typekit.net/cdw7sie.css"], "method", false, false, true, 33);
  102.         // line 34
  103.         echo "
  104.         ";
  105.         // line 36
  106.         echo "        <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
  107.         <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
  108.         <link href=\"https://fonts.googleapis.com/css2?family=Arizonia&family=Oxygen:wght@300;400;700&family=Rufina:wght@400;700&display=swap\" rel=\"stylesheet\">
  109.         ";
  110.         // line 40
  111.         twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => "https://cdnjs.cloudflare.com/ajax/libs/uikit/3.5.7/js/uikit.min.js"], "method", false, false, true, 40);
  112.         // line 41
  113.         echo "        ";
  114.         twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"], "method", false, false, true, 41);
  115.         // line 42
  116.         echo "        ";
  117.         twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => "https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.js"], "method", false, false, true, 42);
  118.         // line 43
  119.         echo "
  120.         ";
  121.         // line 44
  122.         twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/js/apik.js")], "method", false, false, true, 44);
  123.         // line 45
  124.         echo "        ";
  125.         twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/js/main.js")], "method", false, false, true, 45);
  126.         // line 46
  127.         echo "    ";
  128.         $___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
  129.         // line 20
  130.         echo twig_spaceless($___internal_parse_0_);
  131.         // line 47
  132.         echo "
  133.     ";
  134.         // line 49
  135.         echo "
  136.     ";
  137.         // line 50
  138.         $this->displayBlock('head_stylesheets', $context, $blocks);
  139.         // line 53
  140.         echo "
  141.     ";
  142.         // line 55
  143.         echo "
  144.     ";
  145.         // line 56
  146.         $this->displayBlock('head_stylesheets_footer', $context, $blocks);
  147.         // line 59
  148.         echo "
  149.     ";
  150.         // line 60
  151.         if (( !array_key_exists("document", $context) ||  !(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 60, $this->source); })()))) {
  152.             // line 61
  153.             echo "        ";
  154.             $context["document"] = Pimcore\Model\Document::getById(1);
  155.             // line 62
  156.             echo "    ";
  157.         }
  158.         // line 63
  159.         echo "
  160.     ";
  161.         // line 65
  162.         echo "    
  163.     ";
  164.         // line 77
  165.         echo "    
  166.     <link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.1.0/css/all.css\"
  167.           integrity=\"sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt\" crossorigin=\"anonymous\">
  168. </head>
  169. <body class=\"";
  170.         // line 83
  171.         echo (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 83, $this->source); })())) ? ("apk-cms-pimcore") : (""));
  172.         echo "\">
  173. ";
  174.         // line 87
  175.         if (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Your website name") == "Your website name")) {
  176.             // line 88
  177.             echo "    ";
  178.             echo "<p class=\"uk-alert-danger\" uk-alert>Attention, n'oubliez pas de traduire 'Your website name' et les autres chaines de traduction via Tools > Translations > Shared Translation.</p>";
  179.             echo "
  180. ";
  181.         }
  182.         // line 90
  183.         if ( !twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 90, $this->source); })()), "hasProperty", [0 => "politiqueDeConfidentialite"], "method", false, false, true, 90)) {
  184.             // line 91
  185.             echo "    ";
  186.             echo "<p class=\"uk-alert-danger\" uk-alert>Attention, n'oubliez pas de créer la propriété 'politiqueDeConfidentialite' (type Document) à la racine du site et de la faire pointer vers la page Politique de confidentialité (pour le bandeau des cookies).</p>";
  187.             echo "
  188. ";
  189.         }
  190.         // line 93
  191.         echo "
  192. ";
  193.         // line 95
  194.         $this->loadTemplate("includes/header.html.twig", "layout.html.twig", 95)->display($context);
  195.         // line 96
  196.         echo "
  197. ";
  198.         // line 97
  199.         $this->displayBlock('content', $context, $blocks);
  200.         // line 98
  201.         echo "
  202. ";
  203.         // line 101
  204.         if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 101, $this->source); })())) {
  205.             // line 102
  206.             echo "    ";
  207.             if ($this->env->getFunction('pimcore_inc')->getCallable()((("/" . twig_get_attribute($this->env, $this->source, twig_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.', 102, $this->source); })()), "request", [], "any", false, false, true, 102), "locale", [], "any", false, false, true, 102)) . "/Snippets/footer"))) {
  208.                 // line 103
  209.                 echo "        ";
  210.                 echo $this->env->getFunction('pimcore_inc')->getCallable()((("/" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_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.', 103, $this->source); })()), "request", [], "any", false, false, true, 103), "locale", [], "any", false, false, true, 103), 103, $this->source)) . "/Snippets/footer"));
  211.                 echo "
  212.     ";
  213.             } else {
  214.                 // line 105
  215.                 echo "        ";
  216.                 echo "<p class=\"uk-alert-danger\" uk-alert>Vous avez oublié de mettre votre footer dans un snippet</p>";
  217.                 echo "
  218.     ";
  219.             }
  220.         }
  221.         // line 108
  222.         echo "
  223. ";
  224.         // line 110
  225.         echo $this->env->getFunction('pimcore_inc')->getCallable()((("/" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_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.', 110, $this->source); })()), "request", [], "any", false, false, true, 110), "locale", [], "any", false, false, true, 110), 110, $this->source)) . "/Snippets/reservation-modal"));
  226.         echo "
  227. ";
  228.         // line 113
  229.         $this->displayBlock('headscripts', $context, $blocks);
  230.         // line 116
  231.         echo "
  232. ";
  233.         // line 118
  234.         $this->displayBlock('inlinescripts', $context, $blocks);
  235.         // line 121
  236.         echo "
  237. ";
  238.         // line 123
  239.         $this->displayBlock('snippetscripts', $context, $blocks);
  240.         // line 126
  241.         echo "
  242. ";
  243.         // line 127
  244.         if (($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("cookiebotHide") == true)) {
  245.             // line 128
  246.             echo "    <script>
  247.         window.addEventListener(\"load\", function () {
  248.             window.cookieconsent.initialise({
  249.                 \"palette\": {
  250.                     \"popup\": {
  251.                         \"text\": \"#ffffff\",
  252.                         \"background\": \"#DCBB76\",
  253.                     },
  254.                     \"button\": {
  255.                         \"text\": \"#DCBB76\",
  256.                         \"background\": \"#ffffff\",
  257.                     }
  258.                 },
  259.                 \"content\": {
  260.                     \"message\": \"";
  261.             // line 142
  262.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nous utilisons des cookies et d'autres technologies pour assurer à tous les utilisateurs de ce site internet la meilleure expérience possible."), "html", null, true);
  263.             echo " ";
  264.             echo "En accédant à ce site, vous acceptez notre politique de cookies.";
  265.             echo "\",
  266.                     \"dismiss\": \"";
  267.             // line 143
  268.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("J'accepte"), "html", null, true);
  269.             echo "\",
  270.                     \"link\": \"";
  271.             // line 144
  272.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("En savoir plus"), "html", null, true);
  273.             echo "\",
  274.                     \"href\": \"";
  275.             // line 145
  276.             if (twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 145, $this->source); })()), "getProperty", [0 => "politiqueDeConfidentialite"], "method", false, false, true, 145)) {
  277.                 echo " ";
  278.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 145, $this->source); })()), "getProperty", [0 => "politiqueDeConfidentialite"], "method", false, false, true, 145), 145, $this->source), "html", null, true);
  279.                 echo " ";
  280.             }
  281.             echo "\"
  282.                 }
  283.             })
  284.         });
  285.     </script>
  286. ";
  287.         }
  288.         // line 151
  289.         echo "
  290. </body>
  291. </html>
  292. ";
  293.         
  294.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  295.         
  296.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  297.         $this->deferred->resolve($this, $context, $blocks);
  298.     }
  299.     public function block_head_stylesheets($context, array $blocks = [])
  300.     {
  301.         $this->deferred->defer($this, 'head_stylesheets');
  302.     }
  303.     // line 50
  304.     public function block_head_stylesheets_deferred($context, array $blocks = [])
  305.     {
  306.         $macros = $this->macros;
  307.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  308.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
  309.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  310.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
  311.         // line 51
  312.         echo "        ";
  313.         echo $this->env->getFunction('pimcore_head_link')->getCallable()();
  314.         echo "
  315.     ";
  316.         
  317.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  318.         
  319.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  320.         $this->deferred->resolve($this, $context, $blocks);
  321.     }
  322.     public function block_head_stylesheets_footer($context, array $blocks = [])
  323.     {
  324.         $this->deferred->defer($this, 'head_stylesheets_footer');
  325.     }
  326.     // line 56
  327.     public function block_head_stylesheets_footer_deferred($context, array $blocks = [])
  328.     {
  329.         $macros = $this->macros;
  330.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  331.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets_footer"));
  332.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  333.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets_footer"));
  334.         // line 57
  335.         echo "        
  336.     ";
  337.         
  338.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  339.         
  340.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  341.         $this->deferred->resolve($this, $context, $blocks);
  342.     }
  343.     // line 97
  344.     public function block_content($context, array $blocks = [])
  345.     {
  346.         $macros = $this->macros;
  347.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  348.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  349.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  350.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  351.         
  352.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  353.         
  354.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  355.     }
  356.     // line 113
  357.     public function block_headscripts($context, array $blocks = [])
  358.     {
  359.         $macros = $this->macros;
  360.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  361.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
  362.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  363.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
  364.         // line 114
  365.         echo "    ";
  366.         echo $this->env->getFunction('pimcore_head_script')->getCallable()();
  367.         echo "
  368. ";
  369.         
  370.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  371.         
  372.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  373.     }
  374.     // line 118
  375.     public function block_inlinescripts($context, array $blocks = [])
  376.     {
  377.         $macros = $this->macros;
  378.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  379.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
  380.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  381.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
  382.         // line 119
  383.         echo "
  384. ";
  385.         
  386.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  387.         
  388.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  389.     }
  390.     // line 123
  391.     public function block_snippetscripts($context, array $blocks = [])
  392.     {
  393.         $macros = $this->macros;
  394.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  395.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "snippetscripts"));
  396.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  397.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "snippetscripts"));
  398.         // line 124
  399.         echo "
  400. ";
  401.         
  402.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  403.         
  404.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  405.     }
  406.     public function getTemplateName()
  407.     {
  408.         return "layout.html.twig";
  409.     }
  410.     public function isTraitable()
  411.     {
  412.         return false;
  413.     }
  414.     public function getDebugInfo()
  415.     {
  416.         return array (  449 => 124,  439 => 123,  428 => 119,  418 => 118,  405 => 114,  395 => 113,  377 => 97,  365 => 57,  355 => 56,  336 => 51,  326 => 50,  307 => 151,  294 => 145,  290 => 144,  286 => 143,  280 => 142,  264 => 128,  262 => 127,  259 => 126,  257 => 123,  253 => 121,  251 => 118,  247 => 116,  245 => 113,  240 => 110,  237 => 108,  230 => 105,  224 => 103,  221 => 102,  219 => 101,  215 => 98,  213 => 97,  210 => 96,  208 => 95,  205 => 93,  199 => 91,  197 => 90,  191 => 88,  189 => 87,  184 => 83,  176 => 77,  173 => 65,  170 => 63,  167 => 62,  164 => 61,  162 => 60,  159 => 59,  157 => 56,  154 => 55,  151 => 53,  149 => 50,  146 => 49,  143 => 47,  141 => 20,  138 => 46,  135 => 45,  133 => 44,  130 => 43,  127 => 42,  124 => 41,  122 => 40,  116 => 36,  113 => 34,  110 => 33,  107 => 31,  105 => 30,  103 => 29,  100 => 28,  97 => 27,  94 => 26,  91 => 25,  89 => 24,  86 => 23,  84 => 22,  82 => 21,  79 => 20,  76 => 12,  73 => 11,  70 => 10,  68 => 9,  65 => 8,  63 => 7,  56 => 3,  52 => 1,);
  417.     }
  418.     public function getSourceContext()
  419.     {
  420.         return new Source("
  421. <!DOCTYPE html>
  422. <html dir=\"ltr\" lang=\"{{ app.request.locale }}\">
  423. <head>
  424.     
  425.     {% include \"head/metas.html.twig\" %}
  426.     
  427.     {% if pimcore_website_config('cookiebotHide') == false %}
  428.         {% include \"head/cookiebot-head.html.twig\" %}
  429.     {% endif %}
  430.     {# 
  431.     Enregistre la liste des fichiers CSS et JS
  432.     
  433.     Attention:
  434.     Veillez à mettre à jour les adresses ci-dessous en remplacant la version par la dernière version disponible (jQuery,
  435.     Uikit, FontAwesome,...), et ce pour tous les fichiers layout[...].html.twig !
  436.     #}
  437.     {% apply spaceless %}
  438.         {# add global stylesheets and scripts outside of any blocsk to add them to the helpers before any others assets are added #}
  439.         {# we use the view helper to have cache buster functionality #}
  440.         
  441.         {% do pimcore_head_link().appendStylesheet('https://cdnjs.cloudflare.com/ajax/libs/uikit/3.5.7/css/uikit.min.css') %}
  442.         {% if pimcore_website_config('cookiebotHide') == true %}
  443.             {% do pimcore_head_link().appendStylesheet('https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.css') %}
  444.         {% endif %}
  445.         {% do pimcore_head_link().appendStylesheet(asset('/static/css/application.min.css')) %}
  446.         {#% do pimcore_head_link().appendStylesheet(asset('/static/css/custom.css')) %#}
  447.         {# Adobe Font #}
  448.         {% do pimcore_head_link().appendStylesheet('https://use.typekit.net/cdw7sie.css') %}
  449.         {# Google Font #}
  450.         <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
  451.         <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
  452.         <link href=\"https://fonts.googleapis.com/css2?family=Arizonia&family=Oxygen:wght@300;400;700&family=Rufina:wght@400;700&display=swap\" rel=\"stylesheet\">
  453.         {% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/uikit/3.5.7/js/uikit.min.js') %}
  454.         {% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js') %}
  455.         {% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.js') %}
  456.         {% do pimcore_head_script().appendFile(asset('/static/js/apik.js')) %}
  457.         {% do pimcore_head_script().appendFile(asset('/static/js/main.js')) %}
  458.     {% endapply %}
  459.     {# Affiche les styles CSS personnalisés pour toutes les pages #}
  460.     {% block head_stylesheets deferred %}
  461.         {{ pimcore_head_link() }}
  462.     {% endblock %}
  463.     {# Affiche les styles CSS personnalisés propres au footer #}
  464.     {% block head_stylesheets_footer deferred %}
  465.         
  466.     {% endblock %}
  467.     {% if not document is defined or not document %}
  468.         {% set document = pimcore_document(1) %}
  469.     {% endif %}
  470.     {# Favicons (utilisez RealFaviconGenerator) #}
  471.     
  472.     {#
  473.     <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/static/img/favicon/apple-touch-icon.png\">
  474.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/static/img/favicon/favicon-32x32.png\">
  475.     <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/static/img/favicon/favicon-16x16.png\">
  476.     <link rel=\"manifest\" href=\"/static/img/favicon/site.webmanifest\">
  477.     <link rel=\"mask-icon\" href=\"/static/img/favicon/safari-pinned-tab.svg\" color=\"#5bbad5\">
  478.     <link rel=\"shortcut icon\" href=\"/static/img/favicon/favicon.ico\">
  479.     <meta name=\"msapplication-TileColor\" content=\"#ffffff\">
  480.     <meta name=\"msapplication-config\" content=\"/static/img/favicon/browserconfig.xml\">
  481.     <meta name=\"theme-color\" content=\"#ffffff\">
  482.     #}
  483.     
  484.     <link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.1.0/css/all.css\"
  485.           integrity=\"sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt\" crossorigin=\"anonymous\">
  486. </head>
  487. <body class=\"{{ editmode ? \"apk-cms-pimcore\" : \"\" }}\">
  488. {# Vérifie si \"Your website name\" a bien été traduit. Si non, on affiche un message d'erreur #}
  489. {# Attention, il ne faut pas renommer le nom du site ici... Il faut le renommer dans les Shared Translations! #}
  490. {% if \"Your website name\"|trans == \"Your website name\" %}
  491.     {{ '<p class=\"uk-alert-danger\" uk-alert>Attention, n\\'oubliez pas de traduire \\'Your website name\\' et les autres chaines de traduction via Tools > Translations > Shared Translation.</p>' }}
  492. {% endif %}
  493. {% if not document.hasProperty('politiqueDeConfidentialite') %}
  494.     {{ '<p class=\"uk-alert-danger\" uk-alert>Attention, n\\'oubliez pas de créer la propriété \\'politiqueDeConfidentialite\\' (type Document) à la racine du site et de la faire pointer vers la page Politique de confidentialité (pour le bandeau des cookies).</p>' }}
  495. {% endif %}
  496. {# Affiche le  header #}
  497. {% include \"includes/header.html.twig\" %}
  498. {% block content %}{% endblock %}
  499. {# Affiche le footer #}
  500. {% if not editmode %}
  501.     {% if pimcore_inc(\"/\" ~ app.request.locale ~ \"/Snippets/footer\") %}
  502.         {{ pimcore_inc(\"/\" ~ app.request.locale ~ \"/Snippets/footer\") }}
  503.     {% else %}
  504.         {{ '<p class=\"uk-alert-danger\" uk-alert>Vous avez oublié de mettre votre footer dans un snippet</p>' }}
  505.     {% endif %}
  506. {% endif %}
  507. {# Inclusion du snippet de réservation #}
  508. {{ pimcore_inc('/' ~ app.request.locale ~ '/Snippets/reservation-modal') }}
  509. {# output scripts added before #}
  510. {% block headscripts %}
  511.     {{ pimcore_head_script() }}
  512. {% endblock %}
  513. {% block inlinescripts  %}
  514. {% endblock %}
  515. {% block snippetscripts  %}
  516. {% endblock %}
  517. {% if pimcore_website_config('cookiebotHide') == true %}
  518.     <script>
  519.         window.addEventListener(\"load\", function () {
  520.             window.cookieconsent.initialise({
  521.                 \"palette\": {
  522.                     \"popup\": {
  523.                         \"text\": \"#ffffff\",
  524.                         \"background\": \"#DCBB76\",
  525.                     },
  526.                     \"button\": {
  527.                         \"text\": \"#DCBB76\",
  528.                         \"background\": \"#ffffff\",
  529.                     }
  530.                 },
  531.                 \"content\": {
  532.                     \"message\": \"{{ 'Nous utilisons des cookies et d\\'autres technologies pour assurer à tous les utilisateurs de ce site internet la meilleure expérience possible.' |trans }} {{ 'En accédant à ce site, vous acceptez notre politique de cookies.'}}\",
  533.                     \"dismiss\": \"{{ 'J\\'accepte' |trans }}\",
  534.                     \"link\": \"{{ 'En savoir plus' |trans }}\",
  535.                     \"href\": \"{% if document.getProperty('politiqueDeConfidentialite') %} {{ document.getProperty('politiqueDeConfidentialite') }} {% endif %}\"
  536.                 }
  537.             })
  538.         });
  539.     </script>
  540. {% endif %}
  541. </body>
  542. </html>
  543. ", "layout.html.twig", "/var/www/camberoux.apik-pp.be/www/templates/layout.html.twig");
  544.     }
  545.     
  546.     public function checkSecurity()
  547.     {
  548.         static $tags = array("include" => 7, "if" => 9, "apply" => 20, "do" => 24, "block" => 50, "set" => 61);
  549.         static $filters = array("escape" => 3, "spaceless" => 20, "trans" => 87);
  550.         static $functions = array("pimcore_website_config" => 9, "pimcore_head_link" => 24, "asset" => 29, "pimcore_head_script" => 40, "pimcore_document" => 61, "pimcore_inc" => 102);
  551.         try {
  552.             $this->sandbox->checkSecurity(
  553.                 ['include', 'if', 'apply', 'do', 'block', 'set'],
  554.                 ['escape', 'spaceless', 'trans'],
  555.                 ['pimcore_website_config', 'pimcore_head_link', 'asset', 'pimcore_head_script', 'pimcore_document', 'pimcore_inc']
  556.             );
  557.         } catch (SecurityError $e) {
  558.             $e->setSourceContext($this->source);
  559.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  560.                 $e->setTemplateLine($tags[$e->getTagName()]);
  561.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  562.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  563.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  564.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  565.             }
  566.             throw $e;
  567.         }
  568.     }
  569.     private $deferred;
  570. }