var/cache/dev/twig/3d/3d144dfdcbb9fe754f6bbb1d37b33932.php line 62

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Sandbox\SecurityNotAllowedTestError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. use Twig\TemplateWrapper;
  16. /* @ScoreCms/Public/default/subpage.html.twig */
  17. class __TwigTemplate_98202b51f11473d12f1b34e6a5585f83 extends Template
  18. {
  19.     private Source $source;
  20.     /**
  21.      * @var array<string, Template>
  22.      */
  23.     private array $macros = [];
  24.     public function __construct(Environment $env)
  25.     {
  26.         parent::__construct($env);
  27.         $this->source = $this->getSourceContext();
  28.         $this->blocks = [
  29.             'title' => [$this, 'block_title'],
  30.             'stylesheets' => [$this, 'block_stylesheets'],
  31.             'javascripts' => [$this, 'block_javascripts'],
  32.             'footer_logo' => [$this, 'block_footer_logo'],
  33.             'body' => [$this, 'block_body'],
  34.         ];
  35.     }
  36.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  37.     {
  38.         // line 2
  39.         return $this->load($this->env->getRuntime('Score\CmsBundle\Twig\AppRuntime')->getTemplate(), 2);
  40.     }
  41.     protected function doDisplay(array $context, array $blocks = []): iterable
  42.     {
  43.         $macros = $this->macros;
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ScoreCms/Public/default/subpage.html.twig"));
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ScoreCms/Public/default/subpage.html.twig"));
  48.         // line 3
  49.         $macros["m"] = $this->macros["m"] = $this->load("@ScoreBase/Default/macros.html.twig", 3)->unwrap();
  50.         // line 4
  51.         $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); }));
  52.         // line 2
  53.         yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  54.         
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.     }
  59.     // line 14
  60.     /**
  61.      * @return iterable<null|scalar|\Stringable>
  62.      */
  63.     public function block_title(array $context, array $blocks = []): iterable
  64.     {
  65.         $macros = $this->macros;
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  70.         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);
  71.         yield " | ";
  72.         yield from $this->yieldParentBlock("title", $context, $blocks);
  73.         yield " ";
  74.         
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76.         
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78.         yield from [];
  79.     }
  80.     // line 16
  81.     /**
  82.      * @return iterable<null|scalar|\Stringable>
  83.      */
  84.     public function block_stylesheets(array $context, array $blocks = []): iterable
  85.     {
  86.         $macros = $this->macros;
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  91.         // line 17
  92.         yield "\t";
  93.         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"); }), "
  94. ");
  95.         yield "
  96. \t";
  97.         // line 18
  98.         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); })())]);
  99.         yield "
  100. \t";
  101.         // line 19
  102.         yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  103.         yield "
  104. ";
  105.         
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107.         
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  109.         yield from [];
  110.     }
  111.     // line 22
  112.     /**
  113.      * @return iterable<null|scalar|\Stringable>
  114.      */
  115.     public function block_javascripts(array $context, array $blocks = []): iterable
  116.     {
  117.         $macros = $this->macros;
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  122.         // line 23
  123.         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); })())]);
  124.         yield "
  125. \t";
  126.         // line 24
  127.         yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  128.         yield "
  129. ";
  130.         
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  132.         
  133.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  134.         yield from [];
  135.     }
  136.     // line 27
  137.     /**
  138.      * @return iterable<null|scalar|\Stringable>
  139.      */
  140.     public function block_footer_logo(array $context, array $blocks = []): iterable
  141.     {
  142.         $macros = $this->macros;
  143.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  144.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_logo"));
  145.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_logo"));
  147.         // line 28
  148.         yield "\t";
  149.         yield (string) $this->env->getRuntime('Score\CmsBundle\Twig\AppRuntime')->replaceOptionText("idsk-footer-logo");
  150.         yield "
  151.  ";
  152.         
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  154.         
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  156.         yield from [];
  157.     }
  158.     // line 31
  159.     /**
  160.      * @return iterable<null|scalar|\Stringable>
  161.      */
  162.     public function block_body(array $context, array $blocks = []): iterable
  163.     {
  164.         $macros = $this->macros;
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  169.         // line 32
  170.         yield "
  171. \t<div class=\"container";
  172.         // line 34
  173.         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") : (""));
  174.         yield " cms_seo_";
  175.         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);
  176.         yield "\"> ";
  177.         // line 35
  178.         yield "\t\t<div class=\"row govuk-grid-row\">
  179. \t\t\t<div class=\"col-md-12 govuk-grid-column-full\">
  180. \t\t\t\t";
  181.         // line 37
  182.         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))) {
  183.             yield " ";
  184.             // line 38
  185.             yield "\t\t\t\t\t<h1 class=\"govuk-heading-xl\">";
  186.             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);
  187.             yield "</h1>
  188. \t\t\t\t";
  189.         }
  190.         // line 40
  191.         yield "\t\t\t\t";
  192.         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)))) {
  193.             yield " ";
  194.             // line 41
  195.             yield "\t\t\t\t\t";
  196.             yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@ScoreCms/Public/idsk/_intro_block.html.twig");
  197.             yield "
  198. \t\t\t\t";
  199.         }
  200.         // line 43
  201.         yield "\t\t\t</div>
  202. \t\t</div>
  203. \t\t<div class=\"";
  204.         // line 45
  205.         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);
  206.         yield " row govuk-grid-row\">
  207. \t\t\t";
  208.         // line 47
  209.         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)) {
  210.             // line 48
  211.             yield "\t\t\t\t<div class=\"col-md-12 col-lg-3 govuk-grid-column-full govuk-grid-column-one-quarter-from-desktop\">
  212. \t\t\t\t\t";
  213.             // line 49
  214.             $context['_parent'] = $context;
  215.             $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));
  216.             $context['loop'] = [
  217.               'parent' => $context['_parent'],
  218.               'index0' => 0,
  219.               'index'  => 1,
  220.               'first'  => true,
  221.             ];
  222.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  223.                 $length = count($context['_seq']);
  224.                 $context['loop']['revindex0'] = $length - 1;
  225.                 $context['loop']['revindex'] = $length;
  226.                 $context['loop']['length'] = $length;
  227.                 $context['loop']['last'] = 1 === $length;
  228.             }
  229.             foreach ($context['_seq'] as $context["_key"] => $context["blockJoint"]) {
  230.                 // line 50
  231.                 yield "\t\t\t\t\t\t";
  232.                 if (("left" == CoreExtension::getAttribute($this->env, $this->source, $context["blockJoint"], "place", [], "any", false, false, false, 50))) {
  233.                     // line 51
  234.                     yield "\t\t\t\t\t\t\t";
  235.                     // line 52
  236.                     yield "\t\t\t\t\t\t\t";
  237.                     yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@ScoreCms/Public/default/_block.html.twig", ["blockJoint" => $context["blockJoint"]]);
  238.                     yield "
  239. \t\t\t\t\t\t";
  240.                 }
  241.                 // line 54
  242.                 yield "\t\t\t\t\t";
  243.                 ++$context['loop']['index0'];
  244.                 ++$context['loop']['index'];
  245.                 $context['loop']['first'] = false;
  246.                 if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  247.                     --$context['loop']['revindex0'];
  248.                     --$context['loop']['revindex'];
  249.                     $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  250.                 }
  251.             }
  252.             $_parent = $context['_parent'];
  253.             unset($context['_seq'], $context['_key'], $context['blockJoint'], $context['_parent'], $context['loop']);
  254.             $context = array_intersect_key($context, $_parent);
  255.             $context += $_parent;
  256.             // line 55
  257.             yield "\t\t\t\t</div>
  258. \t\t\t";
  259.         }
  260.         // line 57
  261.         yield "
  262. \t\t\t<div class=\"col ";
  263.         // line 58
  264.         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); })())]);
  265.         yield "\">
  266. \t\t\t";
  267.         // line 59
  268.         $context['_parent'] = $context;
  269.         $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));
  270.         $context['loop'] = [
  271.           'parent' => $context['_parent'],
  272.           'index0' => 0,
  273.           'index'  => 1,
  274.           'first'  => true,
  275.         ];
  276.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  277.             $length = count($context['_seq']);
  278.             $context['loop']['revindex0'] = $length - 1;
  279.             $context['loop']['revindex'] = $length;
  280.             $context['loop']['length'] = $length;
  281.             $context['loop']['last'] = 1 === $length;
  282.         }
  283.         foreach ($context['_seq'] as $context["_key"] => $context["blockJoint"]) {
  284.             yield " ";
  285.             // line 60
  286.             yield "\t\t\t\t";
  287.             if (("center" == CoreExtension::getAttribute($this->env, $this->source, $context["blockJoint"], "place", [], "any", false, false, false, 60))) {
  288.                 // line 61
  289.                 yield "\t\t\t\t\t<div id=\"cms-block-";
  290.                 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);
  291.                 yield "\" class=\"";
  292.                 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 ") : (""));
  293.                 yield " cms-block-c-";
  294.                 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);
  295.                 yield "\">
  296. \t\t\t\t\t\t";
  297.                 // line 62
  298.                 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))) {
  299.                     // line 63
  300.                     yield "\t\t\t\t\t\t\t";
  301.                     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));
  302.                     yield "
  303. \t\t\t\t\t\t";
  304.                 } else {
  305.                     // line 65
  306.                     yield "\t\t\t\t\t\t\t";
  307.                     // line 66
  308.                     yield "\t\t\t\t\t\t\t";
  309.                     yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@ScoreCms/Public/default/_block.html.twig", ["blockJoint" => $context["blockJoint"]]);
  310.                     yield "
  311. \t\t\t\t\t\t";
  312.                 }
  313.                 // line 68
  314.                 yield "\t\t\t\t\t</div>
  315. \t\t\t\t";
  316.             }
  317.             // line 70
  318.             yield "\t\t\t";
  319.             ++$context['loop']['index0'];
  320.             ++$context['loop']['index'];
  321.             $context['loop']['first'] = false;
  322.             if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  323.                 --$context['loop']['revindex0'];
  324.                 --$context['loop']['revindex'];
  325.                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  326.             }
  327.         }
  328.         $_parent = $context['_parent'];
  329.         unset($context['_seq'], $context['_key'], $context['blockJoint'], $context['_parent'], $context['loop']);
  330.         $context = array_intersect_key($context, $_parent);
  331.         $context += $_parent;
  332.         // line 71
  333.         yield "\t\t\t</div>
  334. \t\t\t";
  335.         // line 73
  336.         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)) {
  337.             // line 74
  338.             yield "\t\t\t\t<div class=\"col-md-12  col-lg-3 govuk-grid-column-full govuk-grid-column-one-quarter-from-desktop\">
  339. \t\t\t\t\t";
  340.             // line 75
  341.             $context['_parent'] = $context;
  342.             $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));
  343.             $context['loop'] = [
  344.               'parent' => $context['_parent'],
  345.               'index0' => 0,
  346.               'index'  => 1,
  347.               'first'  => true,
  348.             ];
  349.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  350.                 $length = count($context['_seq']);
  351.                 $context['loop']['revindex0'] = $length - 1;
  352.                 $context['loop']['revindex'] = $length;
  353.                 $context['loop']['length'] = $length;
  354.                 $context['loop']['last'] = 1 === $length;
  355.             }
  356.             foreach ($context['_seq'] as $context["_key"] => $context["blockJoint"]) {
  357.                 // line 76
  358.                 yield "\t\t\t\t\t\t";
  359.                 if (("right" == CoreExtension::getAttribute($this->env, $this->source, $context["blockJoint"], "place", [], "any", false, false, false, 76))) {
  360.                     // line 77
  361.                     yield "\t\t\t\t\t\t";
  362.                     // line 78
  363.                     yield "\t\t\t\t\t\t\t";
  364.                     yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@ScoreCms/Public/default/_block.html.twig", ["blockJoint" => $context["blockJoint"]]);
  365.                     yield "
  366. \t\t\t\t\t\t";
  367.                 }
  368.                 // line 80
  369.                 yield "\t\t\t\t\t";
  370.                 ++$context['loop']['index0'];
  371.                 ++$context['loop']['index'];
  372.                 $context['loop']['first'] = false;
  373.                 if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  374.                     --$context['loop']['revindex0'];
  375.                     --$context['loop']['revindex'];
  376.                     $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  377.                 }
  378.             }
  379.             $_parent = $context['_parent'];
  380.             unset($context['_seq'], $context['_key'], $context['blockJoint'], $context['_parent'], $context['loop']);
  381.             $context = array_intersect_key($context, $_parent);
  382.             $context += $_parent;
  383.             // line 81
  384.             yield "\t\t\t\t</div>
  385. \t\t\t";
  386.         }
  387.         // line 83
  388.         yield "\t\t</div>
  389. \t</div>
  390. ";
  391.         
  392.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  393.         
  394.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  395.         yield from [];
  396.     }
  397.     // line 6
  398.     public function macro_getCenterClassNames($p = null, ...$varargs): string|Markup
  399.     {
  400.         $macros = $this->macros;
  401.         $context = [
  402.             "p" => $p,
  403.             "varargs" => $varargs,
  404.         ] + $this->env->getGlobals();
  405.         $blocks = [];
  406.         return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  407.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  408.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "getCenterClassNames"));
  409.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  410.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "getCenterClassNames"));
  411.             yield (string) ((((($tmp = CoreExtension::getAttribute($this->env, $this->source,             // line 7
  412. (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
  413. (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"))));
  414.             
  415.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  416.             
  417.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  418.             yield from [];
  419.         })())) ? '' : new Markup($tmp, $this->env->getCharset());
  420.     }
  421.     /**
  422.      * @codeCoverageIgnore
  423.      */
  424.     public function getTemplateName(): string
  425.     {
  426.         return "@ScoreCms/Public/default/subpage.html.twig";
  427.     }
  428.     /**
  429.      * @codeCoverageIgnore
  430.      */
  431.     public function isTraitable(): bool
  432.     {
  433.         return false;
  434.     }
  435.     /**
  436.      * @codeCoverageIgnore
  437.      */
  438.     public function getDebugInfo(): array
  439.     {
  440.         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,);
  441.     }
  442.     public function getSourceContext(): Source
  443.     {
  444.         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 %} #}
  445. {% extends cms_template() %}
  446. {% import \"@ScoreBase/Default/macros.html.twig\" as m %}
  447. {% set reactFiles = cms_react_apps(page.blockJoints|map(pb => pb.block.type)) %}
  448. {% macro getCenterClassNames(p) %}{{
  449. \tp.hasLeftBar and p.hasRightBar
  450. \t\t? \"govuk-grid-column-full govuk-grid-column-one-half-from-desktop\"
  451. \t\t: p.hasLeftBar or p.hasRightBar
  452. \t\t\t? \"govuk-grid-column-full govuk-grid-column-three-quarters-from-desktop\"
  453. \t\t\t: \"govuk-grid-column-full\"
  454.  }}{% endmacro %}
  455. {% block title %}{{page.title}} | {{parent()}} {% endblock %}
  456. {% block stylesheets %}
  457. \t{{ page.metatags | filter (mTag => mTag.metatagPattern.type is same as \"head\") | join(\"\\n\") | raw }}
  458. \t{{ m.filterCss(reactFiles) }}
  459. \t{{parent()}}
  460. {% endblock %}
  461. {% block javascripts %}
  462. {{ m.filterJs(reactFiles) }}
  463. \t{{parent()}}
  464. {% endblock %}
  465.  {% block footer_logo %}
  466. \t{{ \x27idsk-footer-logo\x27 | cms_text | raw  }}
  467.  {% endblock %}
  468. {% block body %}
  469. \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 #}
  470. \t\t<div class=\"row govuk-grid-row\">
  471. \t\t\t<div class=\"col-md-12 govuk-grid-column-full\">
  472. \t\t\t\t{% if not (hide_pages_heading is defined and hide_pages_heading) %} {# you can set in fwig globals #}
  473. \t\t\t\t\t<h1 class=\"govuk-heading-xl\">{{ page.name }}</h1>
  474. \t\t\t\t{% endif %}
  475. \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 #}
  476. \t\t\t\t\t{{ include(\x27@ScoreCms/Public/idsk/_intro_block.html.twig\x27) }}
  477. \t\t\t\t{% endif %}
  478. \t\t\t</div>
  479. \t\t</div>
  480. \t\t<div class=\"{{page.layout}} row govuk-grid-row\">
  481. \t\t\t{% if page.hasLeftBar %}
  482. \t\t\t\t<div class=\"col-md-12 col-lg-3 govuk-grid-column-full govuk-grid-column-one-quarter-from-desktop\">
  483. \t\t\t\t\t{% for blockJoint in page.blockJoints %}
  484. \t\t\t\t\t\t{% if \x27left\x27 == blockJoint.place %}
  485. \t\t\t\t\t\t\t{# <h2>{{ blockJoint.block.name }}</h2> #}
  486. \t\t\t\t\t\t\t{{ include(\x27@ScoreCms/Public/default/_block.html.twig\x27,{\x27blockJoint\x27: blockJoint}) }}
  487. \t\t\t\t\t\t{% endif %}
  488. \t\t\t\t\t{% endfor %}
  489. \t\t\t\t</div>
  490. \t\t\t{% endif %}
  491. \t\t\t<div class=\"col {{  _self.getCenterClassNames(page) }}\">
  492. \t\t\t{% for blockJoint in page.blockJoints %} {# sections for wavex #}
  493. \t\t\t\t{% if \x27center\x27 == blockJoint.place %}
  494. \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 }}\">
  495. \t\t\t\t\t\t{% if \x27pageContent\x27 == blockJoint.block.type %}
  496. \t\t\t\t\t\t\t{{ page.content| cms_document_links | raw }}
  497. \t\t\t\t\t\t{% else %}
  498. \t\t\t\t\t\t\t{# <h2>{{ blockJoint.block.name }}</h2>#}
  499. \t\t\t\t\t\t\t{{ include(\x27@ScoreCms/Public/default/_block.html.twig\x27,{\x27blockJoint\x27: blockJoint}) }}
  500. \t\t\t\t\t\t{% endif %}
  501. \t\t\t\t\t</div>
  502. \t\t\t\t{% endif %}
  503. \t\t\t{% endfor %}
  504. \t\t\t</div>
  505. \t\t\t{% if page.hasRightBar %}
  506. \t\t\t\t<div class=\"col-md-12  col-lg-3 govuk-grid-column-full govuk-grid-column-one-quarter-from-desktop\">
  507. \t\t\t\t\t{% for blockJoint in page.blockJoints %}
  508. \t\t\t\t\t\t{% if \x27right\x27 == blockJoint.place %}
  509. \t\t\t\t\t\t{# \t<h2>{{ blockJoint.block.name }}</h2>#}
  510. \t\t\t\t\t\t\t{{ include(\x27@ScoreCms/Public/default/_block.html.twig\x27,{\x27blockJoint\x27: blockJoint}) }}
  511. \t\t\t\t\t\t{% endif %}
  512. \t\t\t\t\t{% endfor %}
  513. \t\t\t\t</div>
  514. \t\t\t{% endif %}
  515. \t\t</div>
  516. \t</div>
  517. {% endblock %}
  518. ", "@ScoreCms/Public/default/subpage.html.twig", "/var/www/zelenyvzdelavacifond.sk/vendor/score/cms/src/Resources/views/Public/default/subpage.html.twig");
  519.     }
  520. }