<?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;
/* @theme/base.html.twig */
class __TwigTemplate_85b74497cfb2a49e6a968961d3a53ccd extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'metatitle' => [$this, 'block_metatitle'],
'metadescription' => [$this, 'block_metadescription'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'bodyattributes' => [$this, 'block_bodyattributes'],
'body' => [$this, 'block_body'],
];
}
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", "@theme/base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/base.html.twig"));
// line 1
echo "<!doctype html>
<html class=\"no-js\" lang=\"en\">
<head>
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<title>";
// line 6
$this->displayBlock('metatitle', $context, $blocks);
echo " | ";
echo twig_escape_filter($this->env, (isset($context["sitename"]) || array_key_exists("sitename", $context) ? $context["sitename"] : (function () { throw new RuntimeError('Variable "sitename" does not exist.', 6, $this->source); })()), "html", null, true);
echo "</title>
<meta name=\"robots\" content=\"index,follow\">
<meta name=\"description\" content=\"";
// line 8
$this->displayBlock('metadescription', $context, $blocks);
echo "\">
<meta name=\"format-detection\" content=\"telephone=no\">
";
// line 12
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CMS_ACCESS")) {
// line 13
echo " ";
$this->loadTemplate("Widgets/admin-css-imports.html.twig", "@theme/base.html.twig", 13)->display($context);
// line 14
echo " ";
}
// line 15
echo "
";
// line 17
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
echo "
";
// line 18
$this->displayBlock('stylesheets', $context, $blocks);
// line 19
echo " <script defer src=\"https://kit.fontawesome.com/eace9dba9c.js\" crossorigin=\"anonymous\"></script>
";
// line 22
echo " ";
$this->loadTemplate("@theme/common/og.html.twig", "@theme/base.html.twig", 22)->display($context);
// line 23
echo "
";
// line 25
echo " ";
$this->loadTemplate("@theme/common/icons.html.twig", "@theme/base.html.twig", 25)->display($context);
// line 26
echo "
";
// line 28
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=Roboto\" rel=\"preload\" as=\"style\" onload=\"this.rel='https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap'\">
";
// line 33
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
echo "
";
// line 34
$this->displayBlock('javascripts', $context, $blocks);
// line 35
echo " </head>
";
// line 37
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CMS_ACCESS")) {
// line 38
echo " <body class=\"skin-blue sidebar-collapse sidebar-mini\" data-env=\"";
echo twig_escape_filter($this->env, 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.', 38, $this->source); })()), "environment", [], "any", false, false, false, 38), "html", null, true);
echo "\" data-gtmcode=\"";
echo twig_escape_filter($this->env, (isset($context["gtm_code"]) || array_key_exists("gtm_code", $context) ? $context["gtm_code"] : (function () { throw new RuntimeError('Variable "gtm_code" does not exist.', 38, $this->source); })()), "html", null, true);
echo "\">
";
// line 39
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\AdminDefaultController::showAdminHeader"));
echo "
";
} else {
// line 41
echo " <body";
if ((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 41, $this->source); })()), "id", [], "any", false, false, false, 41) == 1)) {
echo " class=\"home\" ";
}
$this->displayBlock('bodyattributes', $context, $blocks);
echo " data-env=\"";
echo twig_escape_filter($this->env, 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.', 41, $this->source); })()), "environment", [], "any", false, false, false, 41), "html", null, true);
echo "\" data-gtmcode=\"";
echo twig_escape_filter($this->env, (isset($context["gtm_code"]) || array_key_exists("gtm_code", $context) ? $context["gtm_code"] : (function () { throw new RuntimeError('Variable "gtm_code" does not exist.', 41, $this->source); })()), "html", null, true);
echo "\">
";
}
// line 43
echo "
";
// line 45
echo " ";
$this->loadTemplate("@theme/common/site-header.html.twig", "@theme/base.html.twig", 45)->display($context);
// line 46
echo " ";
$this->loadTemplate("@theme/common/alert-notifications.html.twig", "@theme/base.html.twig", 46)->display($context);
// line 47
echo "
";
// line 49
echo " <div class=\"content-cms\">
";
// line 50
$this->displayBlock('body', $context, $blocks);
// line 51
echo " </div>
";
// line 54
echo " ";
$this->loadTemplate("@theme/common/site-footer.html.twig", "@theme/base.html.twig", 54)->display($context);
// line 55
echo " ";
$this->loadTemplate("@theme/common/consent.html.twig", "@theme/base.html.twig", 55)->display($context);
// line 56
echo "
";
// line 58
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/modernizr-3.5.0.min.js"), "html", null, true);
echo "\" defer></script>
";
// line 60
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/jquery.min.js"), "html", null, true);
echo "\"></script>
";
// line 61
$this->loadTemplate("Widgets/admin-js-imports.html.twig", "@theme/base.html.twig", 61)->display($context);
// line 62
echo "
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 6
public function block_metatitle($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", "metatitle"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatitle"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 8
public function block_metadescription($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", "metadescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metadescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
public function block_stylesheets($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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 34
public function block_javascripts($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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 41
public function block_bodyattributes($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", "bodyattributes"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyattributes"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 50
public function block_body($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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@theme/base.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 293 => 50, 275 => 41, 257 => 34, 239 => 18, 221 => 8, 203 => 6, 190 => 62, 188 => 61, 183 => 60, 178 => 58, 175 => 56, 172 => 55, 169 => 54, 165 => 51, 163 => 50, 160 => 49, 157 => 47, 154 => 46, 151 => 45, 148 => 43, 135 => 41, 130 => 39, 123 => 38, 121 => 37, 117 => 35, 115 => 34, 110 => 33, 104 => 28, 101 => 26, 98 => 25, 95 => 23, 92 => 22, 88 => 19, 86 => 18, 81 => 17, 78 => 15, 75 => 14, 72 => 13, 69 => 12, 63 => 8, 56 => 6, 49 => 1,);
}
public function getSourceContext()
{
return new Source("<!doctype html>
<html class=\"no-js\" lang=\"en\">
<head>
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<title>{% block metatitle %}{% endblock %} | {{ sitename }}</title>
<meta name=\"robots\" content=\"index,follow\">
<meta name=\"description\" content=\"{% block metadescription %}{% endblock %}\">
<meta name=\"format-detection\" content=\"telephone=no\">
{# ADMIN ONLY CSS FILES MERGED INTO SINGLE INCLUDE FILE #}
{% if is_granted('ROLE_CMS_ACCESS') %}
{% include 'Widgets/admin-css-imports.html.twig' %}
{% endif %}
{# WEBPACK COMPILED CSS #}
{{ encore_entry_link_tags('app') }}
{% block stylesheets %}{% endblock %}
<script defer src=\"https://kit.fontawesome.com/eace9dba9c.js\" crossorigin=\"anonymous\"></script>
{# OPENGRAPH #}
{% include '@theme/common/og.html.twig' %}
{# FAVICONS #}
{% include '@theme/common/icons.html.twig' %}
{# FONTS #}
<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=Roboto\" rel=\"preload\" as=\"style\" onload=\"this.rel='https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap'\">
{# WEBPACK COMPILED JS - USES DEFER #}
{{ encore_entry_script_tags('app') }}
{% block javascripts %}{% endblock %}
</head>
{% if is_granted('ROLE_CMS_ACCESS') %}
<body class=\"skin-blue sidebar-collapse sidebar-mini\" data-env=\"{{ app.environment }}\" data-gtmcode=\"{{ gtm_code }}\">
{{ render(controller('App\\\\Controller\\\\AdminDefaultController::showAdminHeader')) }}
{% else %}
<body{% if page.id == 1 %} class=\"home\" {% endif %}{% block bodyattributes %}{% endblock %} data-env=\"{{ app.environment }}\" data-gtmcode=\"{{ gtm_code }}\">
{% endif %}
{# HEADER #}
{% include '@theme/common/site-header.html.twig' %}
{% include '@theme/common/alert-notifications.html.twig' %}
{# CONTENT #}
<div class=\"content-cms\">
{% block body %}{% endblock %}
</div>
{# FOOTER #}
{% include '@theme/common/site-footer.html.twig' %}
{% include \"@theme/common/consent.html.twig\" %}
{# SCRIPTS #}
<script src=\"{{ asset('/js/modernizr-3.5.0.min.js')}}\" defer></script>
{#<script src=\"{{ asset('//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js')}}\"></script>#}
<script src=\"{{ asset('/js/jquery.min.js')}}\"></script>
{% include 'Widgets/admin-js-imports.html.twig' %}
</body>
</html>
", "@theme/base.html.twig", "/var/www/html/s/stablescaffolding/templates/themes/theme/base.html.twig");
}
}