var/cache/website/dev/twig/49/490db2d6202613457139b07eb7584f89.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* pages/default.html.twig */
  14. class __TwigTemplate_9795c19b09153d63c054c1ae7d5d080a extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'hero' => [$this'block_hero'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/default.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/default.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""pages/default.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_hero($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""hero"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""hero"));
  54.         // line 4
  55.         if ((twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "cover_hp", [], "any"truetruefalse4) || twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "cover_video_hp", [], "any"truetruefalse4))) {
  56.             // line 5
  57.             echo "        ";
  58.             echo twig_include($this->env$context"pages/blocks/hero-hp-section.html.twig", ["content" =>             // line 6
  59. ($context["content"] ?? null)]);
  60.             // line 7
  61.             echo "
  62. ";
  63.         }
  64.         // line 9
  65.         if (twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "cover", [], "any"truetruefalse9)) {
  66.             // line 10
  67.             echo "        ";
  68.             echo twig_include($this->env$context"pages/blocks/hero-section.html.twig", ["content" =>             // line 11
  69. ($context["content"] ?? null)]);
  70.             // line 12
  71.             echo "
  72. ";
  73.         }
  74.         // line 14
  75.         if (twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "coverVideo", [], "any"truetruefalse14)) {
  76.             // line 15
  77.             echo "        ";
  78.             echo twig_include($this->env$context"pages/blocks/hero-video-section.html.twig", ["content" =>             // line 16
  79. ($context["content"] ?? null)]);
  80.             // line 17
  81.             echo "
  82. ";
  83.         }
  84.         
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  86.         
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  88.     }
  89.     // line 20
  90.     public function block_content($context, array $blocks = [])
  91.     {
  92.         $macros $this->macros;
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  97.         // line 21
  98.         echo "\t\t";
  99.         $context['_parent'] = $context;
  100.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "blocks", [], "any"falsefalsefalse21));
  101.         $context['loop'] = [
  102.           'parent' => $context['_parent'],
  103.           'index0' => 0,
  104.           'index'  => 1,
  105.           'first'  => true,
  106.         ];
  107.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  108.             $length count($context['_seq']);
  109.             $context['loop']['revindex0'] = $length 1;
  110.             $context['loop']['revindex'] = $length;
  111.             $context['loop']['length'] = $length;
  112.             $context['loop']['last'] = === $length;
  113.         }
  114.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  115.             // line 22
  116.             echo "\t\t\t";
  117.             echo twig_include($this->env$context, (("pages/blocks/" twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse22)) . ".html.twig"), ["content" =>             // line 23
  118. $context["item"], "index" => twig_get_attribute($this->env$this->source,             // line 24
  119. $context["loop"], "index", [], "any"falsefalsefalse24), "global" =>             // line 25
  120. ($context["content"] ?? null)]);
  121.             // line 26
  122.             echo "
  123. \t\t";
  124.             ++$context['loop']['index0'];
  125.             ++$context['loop']['index'];
  126.             $context['loop']['first'] = false;
  127.             if (isset($context['loop']['length'])) {
  128.                 --$context['loop']['revindex0'];
  129.                 --$context['loop']['revindex'];
  130.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  131.             }
  132.         }
  133.         $_parent $context['_parent'];
  134.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  135.         $context array_intersect_key($context$_parent) + $_parent;
  136.         // line 27
  137.         echo 
  138. ";
  139.         
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  141.         
  142.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  143.     }
  144.     public function getTemplateName()
  145.     {
  146.         return "pages/default.html.twig";
  147.     }
  148.     public function isTraitable()
  149.     {
  150.         return false;
  151.     }
  152.     public function getDebugInfo()
  153.     {
  154.         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,);
  155.     }
  156.     public function getSourceContext()
  157.     {
  158.         return new Source("{% extends \"base.html.twig\" %}
  159. {% block hero %}
  160. {% if content.cover_hp is defined or content.cover_video_hp is defined %}
  161.         {{ include ('pages/blocks/hero-hp-section.html.twig', {
  162.             content : content
  163.         }) }}
  164. {% endif %}
  165. {% if content.cover is defined %}
  166.         {{ include ('pages/blocks/hero-section.html.twig', {
  167.             content : content
  168.         }) }}
  169. {% endif %}
  170. {% if content.coverVideo is defined %}
  171.         {{ include ('pages/blocks/hero-video-section.html.twig', {
  172.             content : content
  173.         }) }}
  174. {% endif %}
  175. {% endblock %}
  176. {% block content %}
  177. \t\t{% for item in content.blocks %}
  178. \t\t\t{{ include('pages/blocks/' ~ item.type ~ '.html.twig', {
  179. \t\t\t\tcontent : item,
  180. \t\t\t\tindex : loop.index,
  181. \t\t\t\tglobal : content
  182. \t\t\t}) }}
  183. \t\t{% endfor %} 
  184. {% endblock %}""pages/default.html.twig""/home/clients/27e4eb6afe64c67f100a17cbd6809e7c/var/www/sky-corporate/templates/pages/default.html.twig");
  185.     }
  186. }