<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* Frontend/Layouts/default.html.twig */
class __TwigTemplate_8df1f4f9054e598ded639835f490d2ff extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_title' => [$this, 'block_page_title'],
'metaData' => [$this, 'block_metaData'],
'content' => [$this, 'block_content'],
'customContent' => [$this, 'block_customContent'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "Frontend/Templates/default.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "Frontend/Layouts/default.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Frontend/Layouts/default.html.twig"));
$this->parent = $this->load("Frontend/Templates/default.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_page_title(array $context, array $blocks = []): iterable
{
$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", "page_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
// line 4
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 4, $this->source); })()), "seoPageTitle", [], "any", false, false, false, 4)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 5
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 5, $this->source); })()), "seoPageTitle", [], "any", false, false, false, 5), "html", null, true);
yield "
";
} else {
// line 7
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "html", null, true);
yield " - ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["config_helper"]) || array_key_exists("config_helper", $context) ? $context["config_helper"] : (function () { throw new RuntimeError('Variable "config_helper" does not exist.', 7, $this->source); })()), "value", ["website_name"], "method", false, false, false, 7), "html", null, true);
yield "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 10
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_metaData(array $context, array $blocks = []): iterable
{
$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", "metaData"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaData"));
// line 11
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 11, $this->source); })()), "seoDescription", [], "any", false, false, false, 11)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 12
yield " <meta name=\"description\" content=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 12, $this->source); })()), "seoDescription", [], "any", false, false, false, 12), "html", null, true);
yield "\">
";
}
// line 14
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 14, $this->source); })()), "seoKeywords", [], "any", false, false, false, 14)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 15
yield " <meta name=\"keywords\" content=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 15, $this->source); })()), "seoKeywords", [], "any", false, false, false, 15), "html", null, true);
yield "\">
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 19
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$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"));
// line 20
yield "
";
// line 21
$context["fixedOpen"] = false;
// line 22
yield " ";
$context["fluidOpen"] = false;
// line 23
yield "
";
// line 24
$context["requiresForm"] = false;
// line 25
yield "
";
// line 26
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["renderedContent"]) || array_key_exists("renderedContent", $context) ? $context["renderedContent"] : (function () { throw new RuntimeError('Variable "renderedContent" does not exist.', 26, $this->source); })()), "main", [], "any", false, false, false, 26), "sections", [], "any", false, false, false, 26));
foreach ($context['_seq'] as $context["sectionKey"] => $context["someSection"]) {
// line 27
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["someSection"], "blocks", [], "any", false, false, false, 27));
foreach ($context['_seq'] as $context["_key"] => $context["someBlock"]) {
// line 28
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["someBlock"], "instance", [], "any", false, false, false, 28), "requiresForm", [], "any", false, false, false, 28)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 29
yield " ";
$context["requiresForm"] = true;
// line 30
yield " ";
}
// line 31
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['someBlock'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['sectionKey'], $context['someSection'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
yield "
";
// line 35
yield " ";
if ((($tmp = (isset($context["requiresForm"]) || array_key_exists("requiresForm", $context) ? $context["requiresForm"] : (function () { throw new RuntimeError('Variable "requiresForm" does not exist.', 35, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 36
yield " <form method=\"post\">
";
}
// line 38
yield "
";
// line 39
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["renderedContent"]) || array_key_exists("renderedContent", $context) ? $context["renderedContent"] : (function () { throw new RuntimeError('Variable "renderedContent" does not exist.', 39, $this->source); })()), "main", [], "any", false, false, false, 39), "sections", [], "any", false, false, false, 39));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["sectionKey"] => $context["someSection"]) {
// line 40
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 40) && ((isset($context["fixedOpen"]) || array_key_exists("fixedOpen", $context) ? $context["fixedOpen"] : (function () { throw new RuntimeError('Variable "fixedOpen" does not exist.', 40, $this->source); })()) == false))) {
// line 41
yield " ";
$context["fixedOpen"] = true;
// line 42
yield " <div class=\"container\">
<div class=\"row\">
";
}
// line 45
yield "
";
// line 46
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["someSection"], "fluid", [], "any", false, false, false, 46)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 47
yield " ";
if (((isset($context["fixedOpen"]) || array_key_exists("fixedOpen", $context) ? $context["fixedOpen"] : (function () { throw new RuntimeError('Variable "fixedOpen" does not exist.', 47, $this->source); })()) == true)) {
// line 48
yield " ";
$context["fixedOpen"] = false;
// line 49
yield " </div>
</div>
";
}
// line 52
yield "
";
// line 53
$context["fluidOpen"] = true;
// line 54
yield " ";
}
// line 55
yield "
<div class=\"";
// line 56
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["someSection"], "fluid", [], "any", false, false, false, 56)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
} else {
yield "col-md-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["someSection"], "size", [], "any", false, false, false, 56), "html", null, true);
}
yield "\">
";
// line 57
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["someSection"], "blocks", [], "any", false, false, false, 57));
foreach ($context['_seq'] as $context["_key"] => $context["someBlock"]) {
// line 58
yield " ";
yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["someBlock"], "instance", [], "any", false, false, false, 58), "renderFrontend", [], "any", false, false, false, 58);
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['someBlock'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 60
yield " </div>
";
// line 62
if (((isset($context["fluidOpen"]) || array_key_exists("fluidOpen", $context) ? $context["fluidOpen"] : (function () { throw new RuntimeError('Variable "fluidOpen" does not exist.', 62, $this->source); })()) == true)) {
// line 63
yield " ";
$context["fluidOpen"] = false;
// line 64
yield "
";
// line 65
if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 65) == false)) {
// line 66
yield " ";
$context["fixedOpen"] = true;
// line 67
yield " <div class=\"container\">
<div class=\"row\">
";
}
// line 70
yield " ";
}
// line 71
yield "
";
// line 72
if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 72) && ((isset($context["fixedOpen"]) || array_key_exists("fixedOpen", $context) ? $context["fixedOpen"] : (function () { throw new RuntimeError('Variable "fixedOpen" does not exist.', 72, $this->source); })()) == true))) {
// line 73
yield " ";
$context["fixedOpen"] = false;
// line 74
yield " </div>
</div>
";
}
// line 77
yield "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['sectionKey'], $context['someSection'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 79
yield "
";
// line 81
yield " ";
if ((($tmp = (isset($context["requiresForm"]) || array_key_exists("requiresForm", $context) ? $context["requiresForm"] : (function () { throw new RuntimeError('Variable "requiresForm" does not exist.', 81, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 82
yield " </form>
";
}
// line 84
yield "
";
// line 85
yield from $this->unwrap()->yieldBlock('customContent', $context, $blocks);
// line 87
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 85
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_customContent(array $context, array $blocks = []): iterable
{
$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", "customContent"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "customContent"));
// line 86
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Frontend/Layouts/default.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 387 => 86, 374 => 85, 361 => 87, 359 => 85, 356 => 84, 352 => 82, 349 => 81, 346 => 79, 331 => 77, 326 => 74, 323 => 73, 321 => 72, 318 => 71, 315 => 70, 310 => 67, 307 => 66, 305 => 65, 302 => 64, 299 => 63, 297 => 62, 293 => 60, 284 => 58, 280 => 57, 272 => 56, 269 => 55, 266 => 54, 264 => 53, 261 => 52, 256 => 49, 253 => 48, 250 => 47, 248 => 46, 245 => 45, 240 => 42, 237 => 41, 234 => 40, 217 => 39, 214 => 38, 210 => 36, 207 => 35, 204 => 33, 198 => 32, 192 => 31, 189 => 30, 186 => 29, 183 => 28, 178 => 27, 174 => 26, 171 => 25, 169 => 24, 166 => 23, 163 => 22, 161 => 21, 158 => 20, 145 => 19, 130 => 15, 127 => 14, 121 => 12, 118 => 11, 105 => 10, 88 => 7, 82 => 5, 79 => 4, 66 => 3, 43 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'Frontend/Templates/default.html.twig' %}
{% block page_title %}
{% if page.seoPageTitle %}
{{ page.seoPageTitle }}
{% else %}
{{ page.name }} - {{ config_helper.value('website_name') }}
{% endif %}
{% endblock %}
{% block metaData %}
{% if page.seoDescription %}
<meta name=\"description\" content=\"{{ page.seoDescription }}\">
{% endif %}
{% if page.seoKeywords %}
<meta name=\"keywords\" content=\"{{ page.seoKeywords }}\">
{% endif %}
{% endblock %}
{% block content %}
{% set fixedOpen = false %}
{% set fluidOpen = false %}
{% set requiresForm = false %}
{% for sectionKey,someSection in renderedContent.main.sections %}
{% for someBlock in someSection.blocks %}
{% if someBlock.instance.requiresForm %}
{% set requiresForm = true %}
{% endif %}
{% endfor %}
{% endfor %}
{# Do we need a form #}
{% if requiresForm %}
<form method=\"post\">
{% endif %}
{% for sectionKey,someSection in renderedContent.main.sections %}
{% if loop.first and fixedOpen == false %}
{% set fixedOpen = true %}
<div class=\"container\">
<div class=\"row\">
{% endif %}
{% if someSection.fluid %}
{% if fixedOpen == true %}
{% set fixedOpen = false %}
</div>
</div>
{% endif %}
{% set fluidOpen = true %}
{% endif %}
<div class=\"{% if someSection.fluid %}{% else %}col-md-{{ someSection.size }}{% endif %}\">
{% for someBlock in someSection.blocks %}
{{ someBlock.instance.renderFrontend|raw }}
{% endfor %}
</div>
{% if fluidOpen == true %}
{% set fluidOpen = false %}
{% if loop.last == false %}
{% set fixedOpen = true %}
<div class=\"container\">
<div class=\"row\">
{% endif %}
{% endif %}
{% if loop.last and fixedOpen == true %}
{% set fixedOpen = false %}
</div>
</div>
{% endif %}
{% endfor %}
{# Do we need a form #}
{% if requiresForm %}
</form>
{% endif %}
{% block customContent %}
{% endblock %}
{% endblock %}", "Frontend/Layouts/default.html.twig", "/home/cwd-mm-apollo-website/htdocs/apollo-website.cwd-mm.com/templates/Frontend/Layouts/default.html.twig");
}
}