<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* layout.html.twig */
class __TwigTemplate_115a761c1df4198b06306c65ec760d3c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'head_stylesheets' => [$this, 'block_head_stylesheets'],
'head_stylesheets_footer' => [$this, 'block_head_stylesheets_footer'],
'content' => [$this, 'block_content'],
'headscripts' => [$this, 'block_headscripts'],
'inlinescripts' => [$this, 'block_inlinescripts'],
'snippetscripts' => [$this, 'block_snippetscripts'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
$this->deferred = $this->env->getExtension('Twig\DeferredExtension\DeferredExtension');
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
// line 1
echo "
<!DOCTYPE html>
<html dir=\"ltr\" lang=\"";
// line 3
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);
echo "\">
<head>
";
// line 7
$this->loadTemplate("head/metas.html.twig", "layout.html.twig", 7)->display($context);
// line 8
echo "
";
// line 9
if (($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("cookiebotHide") == false)) {
// line 10
echo " ";
$this->loadTemplate("head/cookiebot-head.html.twig", "layout.html.twig", 10)->display($context);
// line 11
echo " ";
}
// line 12
echo "
";
// line 20
echo " ";
ob_start();
// line 21
echo " ";
// line 22
echo " ";
// line 23
echo "
";
// line 24
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);
// line 25
echo " ";
if (($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("cookiebotHide") == true)) {
// line 26
echo " ";
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);
// line 27
echo " ";
}
// line 28
echo "
";
// line 29
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);
// line 30
echo " ";
// line 31
echo "
";
// line 33
echo " ";
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);
// line 34
echo "
";
// line 36
echo " <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
<link href=\"https://fonts.googleapis.com/css2?family=Arizonia&family=Oxygen:wght@300;400;700&family=Rufina:wght@400;700&display=swap\" rel=\"stylesheet\">
";
// line 40
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);
// line 41
echo " ";
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);
// line 42
echo " ";
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);
// line 43
echo "
";
// line 44
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);
// line 45
echo " ";
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);
// line 46
echo " ";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 20
echo twig_spaceless($___internal_parse_0_);
// line 47
echo "
";
// line 49
echo "
";
// line 50
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 53
echo "
";
// line 55
echo "
";
// line 56
$this->displayBlock('head_stylesheets_footer', $context, $blocks);
// line 59
echo "
";
// line 60
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); })()))) {
// line 61
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
// line 62
echo " ";
}
// line 63
echo "
";
// line 65
echo "
";
// line 77
echo "
<link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.1.0/css/all.css\"
integrity=\"sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt\" crossorigin=\"anonymous\">
</head>
<body class=\"";
// line 83
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") : (""));
echo "\">
";
// line 87
if (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Your website name") == "Your website name")) {
// line 88
echo " ";
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>";
echo "
";
}
// line 90
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)) {
// line 91
echo " ";
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>";
echo "
";
}
// line 93
echo "
";
// line 95
$this->loadTemplate("includes/header.html.twig", "layout.html.twig", 95)->display($context);
// line 96
echo "
";
// line 97
$this->displayBlock('content', $context, $blocks);
// line 98
echo "
";
// line 101
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 101, $this->source); })())) {
// line 102
echo " ";
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"))) {
// line 103
echo " ";
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"));
echo "
";
} else {
// line 105
echo " ";
echo "<p class=\"uk-alert-danger\" uk-alert>Vous avez oublié de mettre votre footer dans un snippet</p>";
echo "
";
}
}
// line 108
echo "
";
// line 110
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"));
echo "
";
// line 113
$this->displayBlock('headscripts', $context, $blocks);
// line 116
echo "
";
// line 118
$this->displayBlock('inlinescripts', $context, $blocks);
// line 121
echo "
";
// line 123
$this->displayBlock('snippetscripts', $context, $blocks);
// line 126
echo "
";
// line 127
if (($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("cookiebotHide") == true)) {
// line 128
echo " <script>
window.addEventListener(\"load\", function () {
window.cookieconsent.initialise({
\"palette\": {
\"popup\": {
\"text\": \"#ffffff\",
\"background\": \"#DCBB76\",
},
\"button\": {
\"text\": \"#DCBB76\",
\"background\": \"#ffffff\",
}
},
\"content\": {
\"message\": \"";
// line 142
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);
echo " ";
echo "En accédant à ce site, vous acceptez notre politique de cookies.";
echo "\",
\"dismiss\": \"";
// line 143
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("J'accepte"), "html", null, true);
echo "\",
\"link\": \"";
// line 144
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("En savoir plus"), "html", null, true);
echo "\",
\"href\": \"";
// line 145
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)) {
echo " ";
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);
echo " ";
}
echo "\"
}
})
});
</script>
";
}
// line 151
echo "
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function block_head_stylesheets($context, array $blocks = [])
{
$this->deferred->defer($this, 'head_stylesheets');
}
// line 50
public function block_head_stylesheets_deferred($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
// line 51
echo " ";
echo $this->env->getFunction('pimcore_head_link')->getCallable()();
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function block_head_stylesheets_footer($context, array $blocks = [])
{
$this->deferred->defer($this, 'head_stylesheets_footer');
}
// line 56
public function block_head_stylesheets_footer_deferred($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets_footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets_footer"));
// line 57
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
// line 97
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 113
public function block_headscripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
// line 114
echo " ";
echo $this->env->getFunction('pimcore_head_script')->getCallable()();
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 118
public function block_inlinescripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
// line 119
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 123
public function block_snippetscripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "snippetscripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "snippetscripts"));
// line 124
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("
<!DOCTYPE html>
<html dir=\"ltr\" lang=\"{{ app.request.locale }}\">
<head>
{% include \"head/metas.html.twig\" %}
{% if pimcore_website_config('cookiebotHide') == false %}
{% include \"head/cookiebot-head.html.twig\" %}
{% endif %}
{#
Enregistre la liste des fichiers CSS et JS
Attention:
Veillez à mettre à jour les adresses ci-dessous en remplacant la version par la dernière version disponible (jQuery,
Uikit, FontAwesome,...), et ce pour tous les fichiers layout[...].html.twig !
#}
{% apply spaceless %}
{# add global stylesheets and scripts outside of any blocsk to add them to the helpers before any others assets are added #}
{# we use the view helper to have cache buster functionality #}
{% do pimcore_head_link().appendStylesheet('https://cdnjs.cloudflare.com/ajax/libs/uikit/3.5.7/css/uikit.min.css') %}
{% if pimcore_website_config('cookiebotHide') == true %}
{% do pimcore_head_link().appendStylesheet('https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.css') %}
{% endif %}
{% do pimcore_head_link().appendStylesheet(asset('/static/css/application.min.css')) %}
{#% do pimcore_head_link().appendStylesheet(asset('/static/css/custom.css')) %#}
{# Adobe Font #}
{% do pimcore_head_link().appendStylesheet('https://use.typekit.net/cdw7sie.css') %}
{# Google Font #}
<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
<link href=\"https://fonts.googleapis.com/css2?family=Arizonia&family=Oxygen:wght@300;400;700&family=Rufina:wght@400;700&display=swap\" rel=\"stylesheet\">
{% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/uikit/3.5.7/js/uikit.min.js') %}
{% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js') %}
{% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.js') %}
{% do pimcore_head_script().appendFile(asset('/static/js/apik.js')) %}
{% do pimcore_head_script().appendFile(asset('/static/js/main.js')) %}
{% endapply %}
{# Affiche les styles CSS personnalisés pour toutes les pages #}
{% block head_stylesheets deferred %}
{{ pimcore_head_link() }}
{% endblock %}
{# Affiche les styles CSS personnalisés propres au footer #}
{% block head_stylesheets_footer deferred %}
{% endblock %}
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{# Favicons (utilisez RealFaviconGenerator) #}
{#
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/static/img/favicon/apple-touch-icon.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/static/img/favicon/favicon-32x32.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/static/img/favicon/favicon-16x16.png\">
<link rel=\"manifest\" href=\"/static/img/favicon/site.webmanifest\">
<link rel=\"mask-icon\" href=\"/static/img/favicon/safari-pinned-tab.svg\" color=\"#5bbad5\">
<link rel=\"shortcut icon\" href=\"/static/img/favicon/favicon.ico\">
<meta name=\"msapplication-TileColor\" content=\"#ffffff\">
<meta name=\"msapplication-config\" content=\"/static/img/favicon/browserconfig.xml\">
<meta name=\"theme-color\" content=\"#ffffff\">
#}
<link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.1.0/css/all.css\"
integrity=\"sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt\" crossorigin=\"anonymous\">
</head>
<body class=\"{{ editmode ? \"apk-cms-pimcore\" : \"\" }}\">
{# Vérifie si \"Your website name\" a bien été traduit. Si non, on affiche un message d'erreur #}
{# Attention, il ne faut pas renommer le nom du site ici... Il faut le renommer dans les Shared Translations! #}
{% if \"Your website name\"|trans == \"Your website name\" %}
{{ '<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>' }}
{% endif %}
{% if not document.hasProperty('politiqueDeConfidentialite') %}
{{ '<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>' }}
{% endif %}
{# Affiche le header #}
{% include \"includes/header.html.twig\" %}
{% block content %}{% endblock %}
{# Affiche le footer #}
{% if not editmode %}
{% if pimcore_inc(\"/\" ~ app.request.locale ~ \"/Snippets/footer\") %}
{{ pimcore_inc(\"/\" ~ app.request.locale ~ \"/Snippets/footer\") }}
{% else %}
{{ '<p class=\"uk-alert-danger\" uk-alert>Vous avez oublié de mettre votre footer dans un snippet</p>' }}
{% endif %}
{% endif %}
{# Inclusion du snippet de réservation #}
{{ pimcore_inc('/' ~ app.request.locale ~ '/Snippets/reservation-modal') }}
{# output scripts added before #}
{% block headscripts %}
{{ pimcore_head_script() }}
{% endblock %}
{% block inlinescripts %}
{% endblock %}
{% block snippetscripts %}
{% endblock %}
{% if pimcore_website_config('cookiebotHide') == true %}
<script>
window.addEventListener(\"load\", function () {
window.cookieconsent.initialise({
\"palette\": {
\"popup\": {
\"text\": \"#ffffff\",
\"background\": \"#DCBB76\",
},
\"button\": {
\"text\": \"#DCBB76\",
\"background\": \"#ffffff\",
}
},
\"content\": {
\"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.'}}\",
\"dismiss\": \"{{ 'J\\'accepte' |trans }}\",
\"link\": \"{{ 'En savoir plus' |trans }}\",
\"href\": \"{% if document.getProperty('politiqueDeConfidentialite') %} {{ document.getProperty('politiqueDeConfidentialite') }} {% endif %}\"
}
})
});
</script>
{% endif %}
</body>
</html>
", "layout.html.twig", "/var/www/camberoux.apik-pp.be/www/templates/layout.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 7, "if" => 9, "apply" => 20, "do" => 24, "block" => 50, "set" => 61);
static $filters = array("escape" => 3, "spaceless" => 20, "trans" => 87);
static $functions = array("pimcore_website_config" => 9, "pimcore_head_link" => 24, "asset" => 29, "pimcore_head_script" => 40, "pimcore_document" => 61, "pimcore_inc" => 102);
try {
$this->sandbox->checkSecurity(
['include', 'if', 'apply', 'do', 'block', 'set'],
['escape', 'spaceless', 'trans'],
['pimcore_website_config', 'pimcore_head_link', 'asset', 'pimcore_head_script', 'pimcore_document', 'pimcore_inc']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
private $deferred;
}