<?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\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* @ScoreCms/Public/default/subpage.html.twig */
class __TwigTemplate_98202b51f11473d12f1b34e6a5585f83 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 = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'footer_logo' => [$this, 'block_footer_logo'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 2
return $this->load($this->env->getRuntime('Score\CmsBundle\Twig\AppRuntime')->getTemplate(), 2);
}
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", "@ScoreCms/Public/default/subpage.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ScoreCms/Public/default/subpage.html.twig"));
// line 3
$macros["m"] = $this->macros["m"] = $this->load("@ScoreBase/Default/macros.html.twig", 3)->unwrap();
// line 4
$context["reactFiles"] = $this->env->getRuntime('Score\CmsBundle\Twig\AppRuntime')->loadReactApps(Twig\Extension\CoreExtension::map($this->env, $this->env->hasExtension(\Twig\Extension\SandboxExtension::class) && $this->env->getExtension(\Twig\Extension\SandboxExtension::class)->isSandboxed($this->source), 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); })()), "blockJoints", [], "any", false, false, false, 4), function ($__pb__) use ($context, $macros) { $context["pb"] = $__pb__; return CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pb"]) || array_key_exists("pb", $context) ? $context["pb"] : (function () { throw new RuntimeError('Variable "pb" does not exist.', 4, $this->source); })()), "block", [], "any", false, false, false, 4), "type", [], "any", false, false, false, 4); }));
// line 2
yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 14
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield (string) $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.', 14, $this->source); })()), "title", [], "any", false, false, false, 14), "html", null, true);
yield " | ";
yield from $this->yieldParentBlock("title", $context, $blocks);
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 16
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 17
yield "\t";
yield (string) Twig\Extension\CoreExtension::join(Twig\Extension\CoreExtension::filter($this->env, $this->env->hasExtension(\Twig\Extension\SandboxExtension::class) && $this->env->getExtension(\Twig\Extension\SandboxExtension::class)->isSandboxed($this->source), 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.', 17, $this->source); })()), "metatags", [], "any", false, false, false, 17), function ($__mTag__) use ($context, $macros) { $context["mTag"] = $__mTag__; return (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["mTag"]) || array_key_exists("mTag", $context) ? $context["mTag"] : (function () { throw new RuntimeError('Variable "mTag" does not exist.', 17, $this->source); })()), "metatagPattern", [], "any", false, false, false, 17), "type", [], "any", false, false, false, 17) === "head"); }), "
");
yield "
\t";
// line 18
yield (string) $macros["m"]->getTemplateForMacro("macro_filterCss", $context, 18, $this->getSourceContext())->macro_filterCss(...[(isset($context["reactFiles"]) || array_key_exists("reactFiles", $context) ? $context["reactFiles"] : (function () { throw new RuntimeError('Variable "reactFiles" does not exist.', 18, $this->source); })())]);
yield "
\t";
// line 19
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 22
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 23
yield (string) $macros["m"]->getTemplateForMacro("macro_filterJs", $context, 23, $this->getSourceContext())->macro_filterJs(...[(isset($context["reactFiles"]) || array_key_exists("reactFiles", $context) ? $context["reactFiles"] : (function () { throw new RuntimeError('Variable "reactFiles" does not exist.', 23, $this->source); })())]);
yield "
\t";
// line 24
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 27
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_footer_logo(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", "footer_logo"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_logo"));
// line 28
yield "\t";
yield (string) $this->env->getRuntime('Score\CmsBundle\Twig\AppRuntime')->replaceOptionText("idsk-footer-logo");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 31
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 32
yield "
\t<div class=\"container";
// line 34
yield (string) (((array_key_exists("page_container_fluid", $context) && (($tmp = (isset($context["page_container_fluid"]) || array_key_exists("page_container_fluid", $context) ? $context["page_container_fluid"] : (function () { throw new RuntimeError('Variable "page_container_fluid" does not exist.', 34, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp))) ? ("-fluid") : (""));
yield " cms_seo_";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace(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.', 34, $this->source); })()), "seoId", [], "any", false, false, false, 34), ["/" => "_"]), "html", null, true);
yield "\"> ";
// line 35
yield "\t\t<div class=\"row govuk-grid-row\">
\t\t\t<div class=\"col-md-12 govuk-grid-column-full\">
\t\t\t\t";
// line 37
if ( !(array_key_exists("hide_pages_heading", $context) && (($tmp = (isset($context["hide_pages_heading"]) || array_key_exists("hide_pages_heading", $context) ? $context["hide_pages_heading"] : (function () { throw new RuntimeError('Variable "hide_pages_heading" does not exist.', 37, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
yield " ";
// line 38
yield "\t\t\t\t\t<h1 class=\"govuk-heading-xl\">";
yield (string) $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.', 38, $this->source); })()), "name", [], "any", false, false, false, 38), "html", null, true);
yield "</h1>
\t\t\t\t";
}
// line 40
yield "\t\t\t\t";
if (((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.', 40, $this->source); })()), "seoId", [], "any", false, false, false, 40) == "homepage") && !(array_key_exists("hide_homepage_intro_block", $context) && (($tmp = (isset($context["hide_homepage_intro_block"]) || array_key_exists("hide_homepage_intro_block", $context) ? $context["hide_homepage_intro_block"] : (function () { throw new RuntimeError('Variable "hide_homepage_intro_block" does not exist.', 40, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)))) {
yield " ";
// line 41
yield "\t\t\t\t\t";
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@ScoreCms/Public/idsk/_intro_block.html.twig");
yield "
\t\t\t\t";
}
// line 43
yield "\t\t\t</div>
\t\t</div>
\t\t<div class=\"";
// line 45
yield (string) $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.', 45, $this->source); })()), "layout", [], "any", false, false, false, 45), "html", null, true);
yield " row govuk-grid-row\">
\t\t\t";
// line 47
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.', 47, $this->source); })()), "hasLeftBar", [], "any", false, false, false, 47)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 48
yield "\t\t\t\t<div class=\"col-md-12 col-lg-3 govuk-grid-column-full govuk-grid-column-one-quarter-from-desktop\">
\t\t\t\t\t";
// line 49
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(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.', 49, $this->source); })()), "blockJoints", [], "any", false, false, false, 49));
$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["_key"] => $context["blockJoint"]) {
// line 50
yield "\t\t\t\t\t\t";
if (("left" == CoreExtension::getAttribute($this->env, $this->source, $context["blockJoint"], "place", [], "any", false, false, false, 50))) {
// line 51
yield "\t\t\t\t\t\t\t";
// line 52
yield "\t\t\t\t\t\t\t";
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@ScoreCms/Public/default/_block.html.twig", ["blockJoint" => $context["blockJoint"]]);
yield "
\t\t\t\t\t\t";
}
// line 54
yield "\t\t\t\t\t";
++$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['_key'], $context['blockJoint'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 55
yield "\t\t\t\t</div>
\t\t\t";
}
// line 57
yield "
\t\t\t<div class=\"col ";
// line 58
yield (string) $this->getTemplateForMacro("macro_getCenterClassNames", $context, 58, $this->getSourceContext())->macro_getCenterClassNames(...[(isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 58, $this->source); })())]);
yield "\">
\t\t\t";
// line 59
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(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.', 59, $this->source); })()), "blockJoints", [], "any", false, false, false, 59));
$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["_key"] => $context["blockJoint"]) {
yield " ";
// line 60
yield "\t\t\t\t";
if (("center" == CoreExtension::getAttribute($this->env, $this->source, $context["blockJoint"], "place", [], "any", false, false, false, 60))) {
// line 61
yield "\t\t\t\t\t<div id=\"cms-block-";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["blockJoint"], "block", [], "any", false, false, false, 61), "id", [], "any", false, false, false, 61), "html", null, true);
yield "\" class=\"";
yield (string) (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["blockJoint"], "block", [], "any", false, true, false, 61), "paramsArr", [], "any", false, true, false, 61), "nav", [], "any", true, true, false, 61) && (($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["blockJoint"], "block", [], "any", false, false, false, 61), "paramsArr", [], "any", false, false, false, 61), "nav", [], "any", false, false, false, 61)) && $tmp instanceof Markup ? (string) $tmp : $tmp))) ? ("section ") : (""));
yield " cms-block-c-";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["blockJoint"], "block", [], "any", false, false, false, 61), "id", [], "any", false, false, false, 61), "html", null, true);
yield "\">
\t\t\t\t\t\t";
// line 62
if (("pageContent" == CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["blockJoint"], "block", [], "any", false, false, false, 62), "type", [], "any", false, false, false, 62))) {
// line 63
yield "\t\t\t\t\t\t\t";
yield (string) $this->env->getRuntime('Score\CmsBundle\Twig\AppRuntime')->updateDocumentLinks(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.', 63, $this->source); })()), "content", [], "any", false, false, false, 63));
yield "
\t\t\t\t\t\t";
} else {
// line 65
yield "\t\t\t\t\t\t\t";
// line 66
yield "\t\t\t\t\t\t\t";
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@ScoreCms/Public/default/_block.html.twig", ["blockJoint" => $context["blockJoint"]]);
yield "
\t\t\t\t\t\t";
}
// line 68
yield "\t\t\t\t\t</div>
\t\t\t\t";
}
// line 70
yield "\t\t\t";
++$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['_key'], $context['blockJoint'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 71
yield "\t\t\t</div>
\t\t\t";
// line 73
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.', 73, $this->source); })()), "hasRightBar", [], "any", false, false, false, 73)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 74
yield "\t\t\t\t<div class=\"col-md-12 col-lg-3 govuk-grid-column-full govuk-grid-column-one-quarter-from-desktop\">
\t\t\t\t\t";
// line 75
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(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.', 75, $this->source); })()), "blockJoints", [], "any", false, false, false, 75));
$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["_key"] => $context["blockJoint"]) {
// line 76
yield "\t\t\t\t\t\t";
if (("right" == CoreExtension::getAttribute($this->env, $this->source, $context["blockJoint"], "place", [], "any", false, false, false, 76))) {
// line 77
yield "\t\t\t\t\t\t";
// line 78
yield "\t\t\t\t\t\t\t";
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@ScoreCms/Public/default/_block.html.twig", ["blockJoint" => $context["blockJoint"]]);
yield "
\t\t\t\t\t\t";
}
// line 80
yield "\t\t\t\t\t";
++$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['_key'], $context['blockJoint'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 81
yield "\t\t\t\t</div>
\t\t\t";
}
// line 83
yield "\t\t</div>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 6
public function macro_getCenterClassNames($p = null, ...$varargs): string|Markup
{
$macros = $this->macros;
$context = [
"p" => $p,
"varargs" => $varargs,
] + $this->env->getGlobals();
$blocks = [];
return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "getCenterClassNames"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "getCenterClassNames"));
yield (string) ((((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 7
(isset($context["p"]) || array_key_exists("p", $context) ? $context["p"] : (function () { throw new RuntimeError('Variable "p" does not exist.', 7, $this->source); })()), "hasLeftBar", [], "any", false, false, false, 7)) && $tmp instanceof Markup ? (string) $tmp : $tmp) && (($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["p"]) || array_key_exists("p", $context) ? $context["p"] : (function () { throw new RuntimeError('Variable "p" does not exist.', 7, $this->source); })()), "hasRightBar", [], "any", false, false, false, 7)) && $tmp instanceof Markup ? (string) $tmp : $tmp))) ? ("govuk-grid-column-full govuk-grid-column-one-half-from-desktop") : (((((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 9
(isset($context["p"]) || array_key_exists("p", $context) ? $context["p"] : (function () { throw new RuntimeError('Variable "p" does not exist.', 9, $this->source); })()), "hasLeftBar", [], "any", false, false, false, 9)) && $tmp instanceof Markup ? (string) $tmp : $tmp) || (($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["p"]) || array_key_exists("p", $context) ? $context["p"] : (function () { throw new RuntimeError('Variable "p" does not exist.', 9, $this->source); })()), "hasRightBar", [], "any", false, false, false, 9)) && $tmp instanceof Markup ? (string) $tmp : $tmp))) ? ("govuk-grid-column-full govuk-grid-column-three-quarters-from-desktop") : ("govuk-grid-column-full"))));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
})())) ? '' : new Markup($tmp, $this->env->getCharset());
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@ScoreCms/Public/default/subpage.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 457 => 9, 456 => 7, 438 => 6, 425 => 83, 421 => 81, 406 => 80, 400 => 78, 398 => 77, 395 => 76, 378 => 75, 375 => 74, 373 => 73, 369 => 71, 354 => 70, 350 => 68, 344 => 66, 342 => 65, 336 => 63, 334 => 62, 325 => 61, 322 => 60, 304 => 59, 300 => 58, 297 => 57, 293 => 55, 278 => 54, 272 => 52, 270 => 51, 267 => 50, 250 => 49, 247 => 48, 245 => 47, 240 => 45, 236 => 43, 230 => 41, 226 => 40, 220 => 38, 217 => 37, 213 => 35, 208 => 34, 204 => 32, 191 => 31, 177 => 28, 164 => 27, 151 => 24, 147 => 23, 134 => 22, 121 => 19, 117 => 18, 111 => 17, 98 => 16, 72 => 14, 62 => 2, 60 => 4, 58 => 3, 45 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{# {% extends template is defined and template is not null ? [template, \x27@ScoreCms/Page/Public/baseLayout.html.twig\x27] : \x27@ScoreCms/Page/Public/baseLayout.html.twig\x27 %} #}
{% extends cms_template() %}
{% import \"@ScoreBase/Default/macros.html.twig\" as m %}
{% set reactFiles = cms_react_apps(page.blockJoints|map(pb => pb.block.type)) %}
{% macro getCenterClassNames(p) %}{{
\tp.hasLeftBar and p.hasRightBar
\t\t? \"govuk-grid-column-full govuk-grid-column-one-half-from-desktop\"
\t\t: p.hasLeftBar or p.hasRightBar
\t\t\t? \"govuk-grid-column-full govuk-grid-column-three-quarters-from-desktop\"
\t\t\t: \"govuk-grid-column-full\"
}}{% endmacro %}
{% block title %}{{page.title}} | {{parent()}} {% endblock %}
{% block stylesheets %}
\t{{ page.metatags | filter (mTag => mTag.metatagPattern.type is same as \"head\") | join(\"\\n\") | raw }}
\t{{ m.filterCss(reactFiles) }}
\t{{parent()}}
{% endblock %}
{% block javascripts %}
{{ m.filterJs(reactFiles) }}
\t{{parent()}}
{% endblock %}
{% block footer_logo %}
\t{{ \x27idsk-footer-logo\x27 | cms_text | raw }}
{% endblock %}
{% block body %}
\t<div class=\"container{{ page_container_fluid is defined and page_container_fluid ? \"-fluid\" }} cms_seo_{{ page.seoId | replace({\x27/\x27: \"_\"}) }}\"> {# you can set in fwig globals #}
\t\t<div class=\"row govuk-grid-row\">
\t\t\t<div class=\"col-md-12 govuk-grid-column-full\">
\t\t\t\t{% if not (hide_pages_heading is defined and hide_pages_heading) %} {# you can set in fwig globals #}
\t\t\t\t\t<h1 class=\"govuk-heading-xl\">{{ page.name }}</h1>
\t\t\t\t{% endif %}
\t\t\t\t{% if page.seoId == \x27homepage\x27 and not (hide_homepage_intro_block is defined and hide_homepage_intro_block) %} {# you can set in fwig globals #}
\t\t\t\t\t{{ include(\x27@ScoreCms/Public/idsk/_intro_block.html.twig\x27) }}
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t</div>
\t\t<div class=\"{{page.layout}} row govuk-grid-row\">
\t\t\t{% if page.hasLeftBar %}
\t\t\t\t<div class=\"col-md-12 col-lg-3 govuk-grid-column-full govuk-grid-column-one-quarter-from-desktop\">
\t\t\t\t\t{% for blockJoint in page.blockJoints %}
\t\t\t\t\t\t{% if \x27left\x27 == blockJoint.place %}
\t\t\t\t\t\t\t{# <h2>{{ blockJoint.block.name }}</h2> #}
\t\t\t\t\t\t\t{{ include(\x27@ScoreCms/Public/default/_block.html.twig\x27,{\x27blockJoint\x27: blockJoint}) }}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t\t<div class=\"col {{ _self.getCenterClassNames(page) }}\">
\t\t\t{% for blockJoint in page.blockJoints %} {# sections for wavex #}
\t\t\t\t{% if \x27center\x27 == blockJoint.place %}
\t\t\t\t\t<div id=\"cms-block-{{ blockJoint.block.id }}\" class=\"{{ blockJoint.block.paramsArr.nav is defined and blockJoint.block.paramsArr.nav ? \"section \"}} cms-block-c-{{ blockJoint.block.id }}\">
\t\t\t\t\t\t{% if \x27pageContent\x27 == blockJoint.block.type %}
\t\t\t\t\t\t\t{{ page.content| cms_document_links | raw }}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{# <h2>{{ blockJoint.block.name }}</h2>#}
\t\t\t\t\t\t\t{{ include(\x27@ScoreCms/Public/default/_block.html.twig\x27,{\x27blockJoint\x27: blockJoint}) }}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t{% if page.hasRightBar %}
\t\t\t\t<div class=\"col-md-12 col-lg-3 govuk-grid-column-full govuk-grid-column-one-quarter-from-desktop\">
\t\t\t\t\t{% for blockJoint in page.blockJoints %}
\t\t\t\t\t\t{% if \x27right\x27 == blockJoint.place %}
\t\t\t\t\t\t{# \t<h2>{{ blockJoint.block.name }}</h2>#}
\t\t\t\t\t\t\t{{ include(\x27@ScoreCms/Public/default/_block.html.twig\x27,{\x27blockJoint\x27: blockJoint}) }}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t</div>
\t</div>
{% endblock %}
", "@ScoreCms/Public/default/subpage.html.twig", "/var/www/zelenyvzdelavacifond.sk/vendor/score/cms/src/Resources/views/Public/default/subpage.html.twig");
}
}