<?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_9e8dd05ace8d7c552fc7633cf9320e30 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->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, 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, false, 3), "locale", [], "any", false, false, false, 3), "html", null, true);
echo "\">
<head>
";
// line 7
$this->loadTemplate("head/metas.html.twig", "layout.html.twig", 7)->display($context);
// line 8
echo "
";
// line 16
echo " ";
ob_start();
// line 17
echo " ";
// line 18
echo " ";
// line 19
echo "
";
// line 20
twig_get_attribute($this->env, $this->source, call_user_func_array($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, false, 20);
// line 21
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($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, false, 21);
// line 22
echo "
";
// line 23
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_link')->getCallable(), []), "appendStylesheet", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/vendor/outdatedbrowser/outdatedbrowser.min.css")], "method", false, false, false, 23);
// line 24
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($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, false, 24);
// line 25
echo " ";
// line 26
echo "
";
// line 29
echo " ";
// line 30
echo " ";
// line 31
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_link')->getCallable(), []), "appendStylesheet", [0 => "https://use.typekit.net/lal0zga.css"], "method", false, false, false, 31);
// line 32
echo "
";
// line 34
echo "
";
// line 35
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.', 35, $this->source); })()), "property", [0 => "new-website"], "method", false, false, false, 35)) {
// line 36
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []), "appendFile", [0 => "https://www.google.com/recaptcha/api.js?render=6LcMEv0eAAAAAGqziCU59GigxzVk5-ao1zof4wAJ"], "method", false, false, false, 36);
// line 37
echo " ";
}
// line 38
echo "
";
// line 39
twig_get_attribute($this->env, $this->source, call_user_func_array($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, false, 39);
// line 40
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($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, false, 40);
// line 41
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($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, false, 41);
// line 42
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []), "appendFile", [0 => "/static/vendor/outdatedbrowser/outdatedbrowser.min.js"], "method", false, false, false, 42);
// line 43
echo "
";
// line 44
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/js/apik.js")], "method", false, false, false, 44);
// line 45
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/js/main.js")], "method", false, false, false, 45);
// line 46
echo " ";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 16
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 "
<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=\"#da532c\">
<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=\"";
// line 83
echo twig_escape_filter($this->env, 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.', 83, $this->source); })()), "property", [0 => "universe"], "method", false, false, false, 83), "html", null, true);
echo " ";
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 " ";
echo ((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.', 83, $this->source); })()), "property", [0 => "new-website"], "method", false, false, false, 83)) ? ("new-website") : (""));
echo "\">
<!-- ============== Outdated Browser =========== -->
<div id=\"outdated\"></div>
";
// line 90
if (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Your website name") == "Your website name")) {
// line 91
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 93
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.', 93, $this->source); })()), "hasProperty", [0 => "politiqueDeConfidentialite"], "method", false, false, false, 93)) {
// line 94
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 96
echo "
";
// line 98
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.', 98, $this->source); })()), "property", [0 => "new-website"], "method", false, false, false, 98)) {
// line 99
echo " ";
$this->loadTemplate("includes/header-new.html.twig", "layout.html.twig", 99)->display($context);
} else {
// line 101
echo " ";
$this->loadTemplate("includes/header.html.twig", "layout.html.twig", 101)->display($context);
}
// line 103
echo "
";
// line 104
$this->displayBlock('content', $context, $blocks);
// line 105
echo "
";
// line 106
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.', 106, $this->source); })()), "property", [0 => "new-website"], "method", false, false, false, 106)) {
// line 107
echo " ";
$this->loadTemplate("includes/sticky-socials.html.twig", "layout.html.twig", 107)->display($context);
}
// line 109
echo "
";
// line 110
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 110, $this->source); })())) {
// line 111
echo " <div class=\"uk-container apk-container-1400 uk-margin-medium-bottom\">
<div class=\"uk-alert-danger\" uk-alert>
<h1 class=\"uk-h1\">Texte dans le footer</h1>
";
// line 114
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "bottom-footerlink");
echo "
</div>
</div>
";
}
// line 118
echo "
";
// line 119
$context["showFooterText"] = false;
// line 120
$context["footerBackgroundColor"] = false;
// line 121
if ( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "bottom-footerlink"), "isEmpty", [], "any", false, false, false, 121)) {
// line 122
echo " ";
$context["showFooterText"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "bottom-footerlink");
}
// line 124
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.', 124, $this->source); })()), "getProperty", [0 => "footerBackgroundColor"], "method", false, false, false, 124)) {
// line 125
echo " ";
$context["footerBackgroundColor"] = 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.', 125, $this->source); })()), "getProperty", [0 => "footerBackgroundColor"], "method", false, false, false, 125);
}
// line 128
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 128, $this->source); })())) {
// line 129
echo " ";
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.', 129, $this->source); })()), "property", [0 => "new-website"], "method", false, false, false, 129)) {
// line 130
echo " ";
echo call_user_func_array($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.', 130, $this->source); })()), "request", [], "any", false, false, false, 130), "locale", [], "any", false, false, false, 130)) . "/Snippets/footer"), ["showFooterText" => // line 131
(isset($context["showFooterText"]) || array_key_exists("showFooterText", $context) ? $context["showFooterText"] : (function () { throw new RuntimeError('Variable "showFooterText" does not exist.', 131, $this->source); })()), "footerBackgroundColor" => // line 132
(isset($context["footerBackgroundColor"]) || array_key_exists("footerBackgroundColor", $context) ? $context["footerBackgroundColor"] : (function () { throw new RuntimeError('Variable "footerBackgroundColor" does not exist.', 132, $this->source); })())]]);
// line 134
echo "
";
} elseif (call_user_func_array($this->env->getFunction('pimcore_inc')->getCallable(), [(("/happymagnecaps/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 135
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 135, $this->source); })()), "request", [], "any", false, false, false, 135), "locale", [], "any", false, false, false, 135)) . "/Snippets/footer")])) {
// line 136
echo " ";
echo call_user_func_array($this->env->getFunction('pimcore_inc')->getCallable(), [(("/happymagnecaps/" . 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.', 136, $this->source); })()), "request", [], "any", false, false, false, 136), "locale", [], "any", false, false, false, 136)) . "/Snippets/footer")]);
echo "
";
} else {
// line 138
echo " ";
echo "<p class=\"uk-alert-danger\" uk-alert>Vous avez oublié de mettre votre footer dans un snippet</p>";
echo "
";
}
}
// line 141
echo "
";
// line 143
$this->displayBlock('headscripts', $context, $blocks);
// line 146
echo "
";
// line 148
$this->displayBlock('inlinescripts', $context, $blocks);
// line 151
echo "
";
// line 153
$this->displayBlock('snippetscripts', $context, $blocks);
// line 156
echo "
<script>
window.addEventListener(\"load\", function () {
window.cookieconsent.initialise({
\"palette\": {
\"popup\": {
\"text\": \"#ffffff\",
\"background\": \"#E40233\",
},
\"button\": {
\"text\": \"#E40233\",
\"background\": \"#ffffff\",
}
},
\"content\": {
\"message\": \"";
// line 171
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 twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("En accédant à ce site, vous acceptez notre politique de cookies. "), "html", null, true);
echo "\",
\"dismiss\": \"";
// line 172
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("j'accepte"), "html", null, true);
echo "\",
\"link\": \"";
// line 173
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("En savoir plus"), "html", null, true);
echo "\",
\"href\": \"";
// line 174
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.', 174, $this->source); })()), "getProperty", [0 => "politiqueDeConfidentialite"], "method", false, false, false, 174)) {
echo " ";
echo twig_escape_filter($this->env, 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.', 174, $this->source); })()), "getProperty", [0 => "politiqueDeConfidentialite"], "method", false, false, false, 174), "html", null, true);
echo " ";
}
echo "\"
}
})
});
// Plain Javascript
//event listener: DOM ready
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
//call plugin function after DOM ready
addLoadEvent(function(){
outdatedBrowser({
bgColor: '#f25648',
color: '#ffffff',
lowerThan: 'borderImage',
languagePath: '/static/vendor/outdatedbrowser/lang/";
// line 200
echo twig_escape_filter($this->env, 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.', 200, $this->source); })()), "getProperty", [0 => "language"], "method", false, false, false, 200), "html", null, true);
echo ".html'
})
});
// Using jQuery (version that supports IE < 9)
\$( document ).ready(function() {
outdatedBrowser({
bgColor: '#f25648',
color: '#ffffff',
lowerThan: 'borderImage',
languagePath: '/static/vendor/outdatedbrowser/lang/";
// line 209
echo twig_escape_filter($this->env, 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.', 209, $this->source); })()), "getProperty", [0 => "language"], "method", false, false, false, 209), "html", null, true);
echo ".html'
})
})
</script>
</body>
</html>";
$this->deferred->resolve($this, $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
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 = [])
{
$__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 call_user_func_array($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 = [])
{
$__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 104
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 143
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 144
echo " ";
echo call_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 148
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 149
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 153
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 154
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 ( 549 => 154, 539 => 153, 528 => 149, 518 => 148, 505 => 144, 495 => 143, 477 => 104, 465 => 57, 456 => 56, 437 => 51, 428 => 50, 405 => 209, 393 => 200, 360 => 174, 356 => 173, 352 => 172, 346 => 171, 329 => 156, 327 => 153, 323 => 151, 321 => 148, 317 => 146, 315 => 143, 312 => 141, 305 => 138, 299 => 136, 297 => 135, 294 => 134, 292 => 132, 291 => 131, 289 => 130, 286 => 129, 284 => 128, 280 => 125, 278 => 124, 274 => 122, 272 => 121, 270 => 120, 268 => 119, 265 => 118, 258 => 114, 253 => 111, 251 => 110, 248 => 109, 244 => 107, 242 => 106, 239 => 105, 237 => 104, 234 => 103, 230 => 101, 226 => 99, 224 => 98, 221 => 96, 215 => 94, 213 => 93, 207 => 91, 205 => 90, 193 => 83, 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 => 16, 138 => 46, 135 => 45, 133 => 44, 130 => 43, 127 => 42, 124 => 41, 121 => 40, 119 => 39, 116 => 38, 113 => 37, 110 => 36, 108 => 35, 105 => 34, 102 => 32, 99 => 31, 97 => 30, 95 => 29, 91 => 26, 89 => 25, 86 => 24, 84 => 23, 81 => 22, 78 => 21, 76 => 20, 73 => 19, 71 => 18, 69 => 17, 66 => 16, 63 => 8, 61 => 7, 54 => 3, 50 => 1,);
}
public function getSourceContext()
{
return new Source("
<!DOCTYPE html>
<html dir=\"ltr\" lang=\"{{ app.request.locale }}\">
<head>
{% include \"head/metas.html.twig\" %}
{#
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') %}
{% do pimcore_head_link().appendStylesheet('https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.css') %}
{% do pimcore_head_link().appendStylesheet(asset('/static/vendor/outdatedbrowser/outdatedbrowser.min.css')) %}
{% 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') %#}
{# {% do pimcore_head_link().appendStylesheet('https://use.typekit.net/rjz1kgr.css') %}#}
{% do pimcore_head_link().appendStylesheet('https://use.typekit.net/lal0zga.css') %}
{# A rendre dynamique #}
{% if not document.property('new-website') %}
{% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js?render=6LcMEv0eAAAAAGqziCU59GigxzVk5-ao1zof4wAJ') %}
{% endif %}
{% 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('/static/vendor/outdatedbrowser/outdatedbrowser.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=\"#da532c\">
<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=\"{{ document.property('universe') }} {{ editmode ? \"apk-cms-pimcore\" : \"\" }} {{ document.property('new-website') ? \"new-website\" : \"\" }}\">
<!-- ============== Outdated Browser =========== -->
<div id=\"outdated\"></div>
{# 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 + condition pour le nouveau site web #}
{% if document.property('new-website') %}
{% include \"includes/header-new.html.twig\" %}
{% else %}
{% include \"includes/header.html.twig\" %}
{% endif %}
{% block content %}{% endblock %}
{% if document.property('new-website') %}
{% include \"includes/sticky-socials.html.twig\" %}
{% endif %}
{% if editmode %}
<div class=\"uk-container apk-container-1400 uk-margin-medium-bottom\">
<div class=\"uk-alert-danger\" uk-alert>
<h1 class=\"uk-h1\">Texte dans le footer</h1>
{{ pimcore_wysiwyg('bottom-footerlink') }}
</div>
</div>
{% endif %}
{% set showFooterText = false %}
{% set footerBackgroundColor = false %}
{% if not pimcore_wysiwyg('bottom-footerlink').isEmpty %}
{% set showFooterText = pimcore_wysiwyg('bottom-footerlink') %}
{% endif %}
{% if document.getProperty('footerBackgroundColor') %}
{% set footerBackgroundColor = document.getProperty('footerBackgroundColor') %}
{% endif %}
{# Affiche le footer + condition pour le nouveau site web #}
{% if not editmode %}
{% if document.property('new-website') %}
{{ pimcore_inc(\"/\" ~ app.request.locale ~ \"/Snippets/footer\",{
'showFooterText': showFooterText,
'footerBackgroundColor' : footerBackgroundColor
})
}}
{% elseif pimcore_inc(\"/happymagnecaps/\" ~ app.request.locale ~ \"/Snippets/footer\") %}
{{ pimcore_inc(\"/happymagnecaps/\" ~ 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 %}
{# output scripts added before #}
{% block headscripts %}
{{ pimcore_head_script() }}
{% endblock %}
{% block inlinescripts %}
{% endblock %}
{% block snippetscripts %}
{% endblock %}
<script>
window.addEventListener(\"load\", function () {
window.cookieconsent.initialise({
\"palette\": {
\"popup\": {
\"text\": \"#ffffff\",
\"background\": \"#E40233\",
},
\"button\": {
\"text\": \"#E40233\",
\"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. '|trans }}\",
\"dismiss\": \"{{ 'j\\'accepte' |trans }}\",
\"link\": \"{{ 'En savoir plus' |trans }}\",
\"href\": \"{% if document.getProperty('politiqueDeConfidentialite') %} {{ document.getProperty('politiqueDeConfidentialite') }} {% endif %}\"
}
})
});
// Plain Javascript
//event listener: DOM ready
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
//call plugin function after DOM ready
addLoadEvent(function(){
outdatedBrowser({
bgColor: '#f25648',
color: '#ffffff',
lowerThan: 'borderImage',
languagePath: '/static/vendor/outdatedbrowser/lang/{{ document.getProperty('language') }}.html'
})
});
// Using jQuery (version that supports IE < 9)
\$( document ).ready(function() {
outdatedBrowser({
bgColor: '#f25648',
color: '#ffffff',
lowerThan: 'borderImage',
languagePath: '/static/vendor/outdatedbrowser/lang/{{ document.getProperty('language') }}.html'
})
})
</script>
</body>
</html>", "layout.html.twig", "/var/www/magnecapsv2.atypic-pp.be/www/templates/layout.html.twig");
}
}