<?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;
/* base.html.twig */
class __TwigTemplate_ea2f26ddc97261930dd92052ebf7132c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'styles' => [$this, 'block_styles'],
'taghead' => [$this, 'block_taghead'],
'header' => [$this, 'block_header'],
'bodywrap' => [$this, 'block_bodywrap'],
'body' => [$this, 'block_body'],
'popout' => [$this, 'block_popout'],
'footer' => [$this, 'block_footer'],
];
}
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", "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", "base.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html lang=\"en\">
\t<head>
\t\t";
// line 5
$this->loadTemplate("base/Header/general-imports.html.twig", "base.html.twig", 5)->display($context);
// line 6
echo "
\t\t<!-- Style Sheets -->
\t\t";
// line 9
$this->displayBlock('styles', $context, $blocks);
// line 14
echo "
\t\t";
// line 16
if ((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.', 16, $this->source); })()), "environment", [], "any", false, false, false, 16) != "dev")) {
// line 17
echo "\t\t\t<!-- Analytics -->
\t\t\t";
// line 18
$__internal_compile_0 = null;
try {
$__internal_compile_0 = $this->loadTemplate((("base/Header/Analytics/" . (isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 18, $this->source); })())) . ".html.twig"), "base.html.twig", 18);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_0) {
$__internal_compile_0->display($context);
}
// line 19
echo "\t\t";
}
// line 20
echo "\t\t<!-- Tags -->
\t\t";
// line 21
$this->displayBlock('taghead', $context, $blocks);
// line 24
echo "\t</head>
\t<body>
\t\t<div class=\"top-wrap\">
\t\t\t";
// line 27
$this->displayBlock('header', $context, $blocks);
// line 30
echo "\t\t\t";
$this->displayBlock('bodywrap', $context, $blocks);
// line 33
echo "\t\t\t\t";
$this->displayBlock('body', $context, $blocks);
// line 34
echo "\t\t\t</div>
\t\t</div>
\t\t";
// line 36
$this->displayBlock('popout', $context, $blocks);
// line 51
echo "\t\t<div class=\"bottom-wrap\">
\t\t\t";
// line 52
$this->displayBlock('footer', $context, $blocks);
// line 58
echo "\t\t</div>
\t\t";
// line 59
$__internal_compile_1 = null;
try {
$__internal_compile_1 = $this->loadTemplate((("base/Body/" . (isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 59, $this->source); })())) . ".html.twig"), "base.html.twig", 59);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_1) {
$__internal_compile_1->display($context);
}
// line 60
echo "\t</body>
\t";
// line 61
$__internal_compile_2 = null;
try {
$__internal_compile_2 = $this->loadTemplate((("base/Other/" . (isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 61, $this->source); })())) . ".html.twig"), "base.html.twig", 61);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_2) {
$__internal_compile_2->display($context);
}
// line 62
echo "</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 9
public function block_styles($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", "styles"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
// line 10
echo "\t\t\t<meta charset=\"utf-8\">
\t\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=yes\">
\t\t\t";
// line 12
$__internal_compile_3 = null;
try {
$__internal_compile_3 = $this->loadTemplate((("base/Header/Stylesheets/" . (isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 12, $this->source); })())) . ".html.twig"), "base.html.twig", 12);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_3) {
$__internal_compile_3->display($context);
}
// line 13
echo "\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 21
public function block_taghead($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", "taghead"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "taghead"));
// line 22
echo "\t\t\t";
$__internal_compile_4 = null;
try {
$__internal_compile_4 = $this->loadTemplate((("base/Header/Tags/" . (isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 22, $this->source); })())) . ".html.twig"), "base.html.twig", 22);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_4) {
$__internal_compile_4->display($context);
}
// line 23
echo "\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 27
public function block_header($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", "header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 28
echo "\t\t\t\t";
$this->loadTemplate((("includes/header/header-" . (isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 28, $this->source); })())) . ".html.twig"), "base.html.twig", 28)->display($context);
// line 29
echo "\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 30
public function block_bodywrap($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", "bodywrap"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodywrap"));
// line 31
echo "\t\t\t\t<div class=\"body-wrap\">
\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 33
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);
}
// line 36
public function block_popout($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", "popout"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popout"));
// line 37
echo "\t\t\t";
if ((array_key_exists("content", $context) && !twig_test_empty((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 37, $this->source); })())))) {
// line 38
echo "\t\t\t\t";
// line 39
echo "\t\t\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Master\\ContentController::popoutAd", ["content" => // line 41
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 41, $this->source); })())]));
// line 43
echo "
\t\t\t";
} else {
// line 45
echo "\t\t\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Master\\ContentController::popoutAd"));
// line 48
echo "
\t\t\t";
}
// line 50
echo "\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 52
public function block_footer($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", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 53
echo "\t\t\t\t";
$this->loadTemplate((("includes/footer/footer-" . (isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 53, $this->source); })())) . ".html.twig"), "base.html.twig", 53)->display($context);
// line 54
echo "\t\t\t\t";
if (( !twig_get_attribute($this->env, $this->source, 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.', 54, $this->source); })()), "request", [], "any", false, false, false, 54), "cookies", [], "any", false, false, false, 54), "get", ["acceptCookies"], "method", false, false, false, 54) && !(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.', 54, $this->source); })()), "user", [], "any", false, false, false, 54) && 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.', 54, $this->source); })()), "user", [], "any", false, false, false, 54), "getUserMetaValueByKey", ["acceptCookies"], "method", false, false, false, 54)))) {
// line 55
echo "\t\t\t\t\t";
$this->loadTemplate("includes/cookie-banner.html.twig", "base.html.twig", 55)->display($context);
// line 56
echo "\t\t\t\t";
}
// line 57
echo "\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 342 => 57, 339 => 56, 336 => 55, 333 => 54, 330 => 53, 320 => 52, 310 => 50, 306 => 48, 303 => 45, 299 => 43, 297 => 41, 295 => 39, 293 => 38, 290 => 37, 280 => 36, 262 => 33, 251 => 31, 241 => 30, 231 => 29, 228 => 28, 218 => 27, 208 => 23, 197 => 22, 187 => 21, 177 => 13, 167 => 12, 163 => 10, 153 => 9, 142 => 62, 132 => 61, 129 => 60, 119 => 59, 116 => 58, 114 => 52, 111 => 51, 109 => 36, 105 => 34, 102 => 33, 99 => 30, 97 => 27, 92 => 24, 90 => 21, 87 => 20, 84 => 19, 74 => 18, 71 => 17, 69 => 16, 65 => 14, 63 => 9, 58 => 6, 56 => 5, 50 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html lang=\"en\">
\t<head>
\t\t{% include 'base/Header/general-imports.html.twig' %}
\t\t<!-- Style Sheets -->
\t\t{% block styles %}
\t\t\t<meta charset=\"utf-8\">
\t\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=yes\">
\t\t\t{% include 'base/Header/Stylesheets/' ~ site_code ~ '.html.twig' ignore missing %}
\t\t{% endblock %}
\t\t{% if app.environment != 'dev' %}
\t\t\t<!-- Analytics -->
\t\t\t{% include 'base/Header/Analytics/' ~ site_code ~ '.html.twig' ignore missing %}
\t\t{% endif %}
\t\t<!-- Tags -->
\t\t{% block taghead %}
\t\t\t{% include 'base/Header/Tags/' ~ site_code ~ '.html.twig' ignore missing %}
\t\t{% endblock %}
\t</head>
\t<body>
\t\t<div class=\"top-wrap\">
\t\t\t{% block header %}
\t\t\t\t{% include \"includes/header/header-\" ~ site_code ~ \".html.twig\" %}
\t\t\t{% endblock %}
\t\t\t{% block bodywrap %}
\t\t\t\t<div class=\"body-wrap\">
\t\t\t\t{% endblock %}
\t\t\t\t{% block body %}{% endblock %}
\t\t\t</div>
\t\t</div>
\t\t{% block popout %}
\t\t\t{% if content is defined and content is not empty %}
\t\t\t\t{# Render pop-out ad #}
\t\t\t\t{{ render(controller(
\t\t\t\t\t'App\\\\Controller\\\\Master\\\\ContentController::popoutAd',
\t\t\t\t\t{ 'content': content }
\t\t\t\t\t))
\t\t\t\t}}
\t\t\t{% else %}
\t\t\t\t{{ render(controller(
\t\t\t\t\t'App\\\\Controller\\\\Master\\\\ContentController::popoutAd'
\t\t\t\t\t))
\t\t\t\t}}
\t\t\t{% endif %}
\t\t{% endblock %}
\t\t<div class=\"bottom-wrap\">
\t\t\t{% block footer %}
\t\t\t\t{% include \"includes/footer/footer-\" ~ site_code ~ \".html.twig\" %}
\t\t\t\t{% if not app.request.cookies.get('acceptCookies') and not (app.user and app.user.getUserMetaValueByKey(\"acceptCookies\")) %}
\t\t\t\t\t{% include \"includes/cookie-banner.html.twig\" %}
\t\t\t\t{% endif %}
\t\t\t{% endblock %}
\t\t</div>
\t\t{% include 'base/Body/' ~ site_code ~ '.html.twig' ignore missing %}
\t</body>
\t{% include 'base/Other/' ~ site_code ~ '.html.twig' ignore missing %}
</html>
", "base.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/base.html.twig");
}
}