var/cache/website/dev/twig/19/19011a482546ab595fe70dba35887bffe702d7e7eb89522a8bdbaaa211c1c96e.php line 93

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/homepage.html.twig */
  14. class __TwigTemplate_b76c426f23b42c9bd68457e81891506b3c217e2734da1284929f0261050dbfba 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.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/homepage.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/homepage.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""pages/homepage.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 2
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 3
  54.         echo "\t";
  55.         $this->loadTemplate("elements/home_cover/home_cover.html.twig""pages/homepage.html.twig"3)->display(twig_array_merge($context, ["title" => twig_get_attribute($this->env$this->source,         // line 4
  56. ($context["content"] ?? null), "subtitle", [], "any"falsefalsefalse4), "image" => twig_get_attribute($this->env$this->source,         // line 5
  57. ($context["content"] ?? null), "cover", [], "any"falsefalsefalse5)]));
  58.         // line 7
  59.         echo "\t";
  60.         $context['_parent'] = $context;
  61.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "blocks", [], "any"falsefalsefalse7));
  62.         $context['loop'] = [
  63.           'parent' => $context['_parent'],
  64.           'index0' => 0,
  65.           'index'  => 1,
  66.           'first'  => true,
  67.         ];
  68.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  69.             $length count($context['_seq']);
  70.             $context['loop']['revindex0'] = $length 1;
  71.             $context['loop']['revindex'] = $length;
  72.             $context['loop']['length'] = $length;
  73.             $context['loop']['last'] = === $length;
  74.         }
  75.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  76.             // line 8
  77.             echo "\t\t";
  78.             echo twig_include($this->env$context, (("pages/blocks/" twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse8)) . ".html.twig"), ["content" =>             // line 9
  79. $context["item"], "index" => (twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source,             // line 10
  80. $context["loop"], "index", [], "any"falsefalsefalse10)) - 1), "page" =>             // line 11
  81. ($context["view"] ?? null), "view" =>             // line 12
  82. ($context["content"] ?? null)]);
  83.             // line 13
  84.             echo "
  85. \t";
  86.             ++$context['loop']['index0'];
  87.             ++$context['loop']['index'];
  88.             $context['loop']['first'] = false;
  89.             if (isset($context['loop']['length'])) {
  90.                 --$context['loop']['revindex0'];
  91.                 --$context['loop']['revindex'];
  92.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  93.             }
  94.         }
  95.         $_parent $context['_parent'];
  96.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  97.         $context array_intersect_key($context$_parent) + $_parent;
  98.         
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  100.         
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  102.     }
  103.     public function getTemplateName()
  104.     {
  105.         return "pages/homepage.html.twig";
  106.     }
  107.     public function isTraitable()
  108.     {
  109.         return false;
  110.     }
  111.     public function getDebugInfo()
  112.     {
  113.         return array (  98 => 13,  96 => 12,  95 => 11,  94 => 10,  93 => 9,  91 => 8,  73 => 7,  71 => 5,  70 => 4,  68 => 3,  58 => 2,  35 => 1,);
  114.     }
  115.     public function getSourceContext()
  116.     {
  117.         return new Source("{% extends \"base.html.twig\" %}
  118. {% block content %}
  119. \t{% include 'elements/home_cover/home_cover.html.twig' with {
  120.         title: content.subtitle,
  121.         image: content.cover,
  122.     } %}
  123. \t{% for item in content.blocks %}
  124. \t\t{{ include('pages/blocks/' ~ item.type ~ '.html.twig', {
  125. \t\t\tcontent : item,
  126. \t\t\tindex : loop.index|number_format - 1,
  127. \t\t\tpage : view,
  128. \t\t\tview : content
  129. \t\t}) }}
  130. \t{% endfor %}
  131. {% endblock %}
  132. ""pages/homepage.html.twig""/home/clients/6069f7d890ad1893915d376cf7e5b903/var/www/bn-invest-commercial/templates/pages/homepage.html.twig");
  133.     }
  134. }