<?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;
/* pages/default.html.twig */
class __TwigTemplate_9795c19b09153d63c054c1ae7d5d080a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'hero' => [$this, 'block_hero'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
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", "pages/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", "pages/default.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "pages/default.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_hero($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", "hero"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "hero"));
// line 4
if ((twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "cover_hp", [], "any", true, true, false, 4) || twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "cover_video_hp", [], "any", true, true, false, 4))) {
// line 5
echo " ";
echo twig_include($this->env, $context, "pages/blocks/hero-hp-section.html.twig", ["content" => // line 6
($context["content"] ?? null)]);
// line 7
echo "
";
}
// line 9
if (twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "cover", [], "any", true, true, false, 9)) {
// line 10
echo " ";
echo twig_include($this->env, $context, "pages/blocks/hero-section.html.twig", ["content" => // line 11
($context["content"] ?? null)]);
// line 12
echo "
";
}
// line 14
if (twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "coverVideo", [], "any", true, true, false, 14)) {
// line 15
echo " ";
echo twig_include($this->env, $context, "pages/blocks/hero-video-section.html.twig", ["content" => // line 16
($context["content"] ?? null)]);
// line 17
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
public function block_content($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", "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 21
echo "\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "blocks", [], "any", false, false, false, 21));
$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["item"]) {
// line 22
echo "\t\t\t";
echo twig_include($this->env, $context, (("pages/blocks/" . twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 22)) . ".html.twig"), ["content" => // line 23
$context["item"], "index" => twig_get_attribute($this->env, $this->source, // line 24
$context["loop"], "index", [], "any", false, false, false, 24), "global" => // line 25
($context["content"] ?? null)]);
// line 26
echo "
\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "pages/default.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 156 => 27, 141 => 26, 139 => 25, 138 => 24, 137 => 23, 135 => 22, 117 => 21, 107 => 20, 95 => 17, 93 => 16, 91 => 15, 89 => 14, 85 => 12, 83 => 11, 81 => 10, 79 => 9, 75 => 7, 73 => 6, 71 => 5, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block hero %}
{% if content.cover_hp is defined or content.cover_video_hp is defined %}
{{ include ('pages/blocks/hero-hp-section.html.twig', {
content : content
}) }}
{% endif %}
{% if content.cover is defined %}
{{ include ('pages/blocks/hero-section.html.twig', {
content : content
}) }}
{% endif %}
{% if content.coverVideo is defined %}
{{ include ('pages/blocks/hero-video-section.html.twig', {
content : content
}) }}
{% endif %}
{% endblock %}
{% block content %}
\t\t{% for item in content.blocks %}
\t\t\t{{ include('pages/blocks/' ~ item.type ~ '.html.twig', {
\t\t\t\tcontent : item,
\t\t\t\tindex : loop.index,
\t\t\t\tglobal : content
\t\t\t}) }}
\t\t{% endfor %}
{% endblock %}", "pages/default.html.twig", "/home/clients/27e4eb6afe64c67f100a17cbd6809e7c/var/www/sky-corporate/templates/pages/default.html.twig");
}
}