var/cache/website/dev/twig/24/24252f406109a2cda1e4869ebb8cc376.php line 151

  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_733ffdd6538d0b32255daae36f67824e 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.             'style' => [$this'block_style'],
  24.             'header' => [$this'block_header'],
  25.             'content' => [$this'block_content'],
  26.             'footer' => [$this'block_footer'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/default.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/default.html.twig"));
  42.         $this->parent $this->loadTemplate("base.html.twig""pages/default.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 2
  50.     public function block_style($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""style"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""style"));
  57.         // line 3
  58.         echo "    <link rel=\"stylesheet\" href=\"";
  59.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/index.css"), "html"nulltrue);
  60.         echo "\">
  61. ";
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.     }
  67.     // line 5
  68.     public function block_header($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  75.         // line 6
  76.         echo "    ";
  77.         $this->loadTemplate("/includes/header-nav.html.twig""pages/default.html.twig"6)->display($context);
  78.         
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  80.         
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  82.     }
  83.     // line 8
  84.     public function block_content($context, array $blocks = [])
  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""content"));
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  91.         // line 9
  92.         echo "    ";
  93.         $context["modal"] = false;
  94.         // line 10
  95.         echo "    ";
  96.         $context['_parent'] = $context;
  97.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'10$this->source); })()), "blocks", [], "any"falsefalsefalse10));
  98.         $context['loop'] = [
  99.           'parent' => $context['_parent'],
  100.           'index0' => 0,
  101.           'index'  => 1,
  102.           'first'  => true,
  103.         ];
  104.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  105.             $length count($context['_seq']);
  106.             $context['loop']['revindex0'] = $length 1;
  107.             $context['loop']['revindex'] = $length;
  108.             $context['loop']['length'] = $length;
  109.             $context['loop']['last'] = === $length;
  110.         }
  111.         foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  112.             // line 11
  113.             echo "         ";
  114.             if ((twig_get_attribute($this->env$this->source$context["block"], "type", [], "any"falsefalsefalse11) == "download-modal")) {
  115.                 // line 12
  116.                 echo "            ";
  117.                 $context["modal"] = true;
  118.                 // line 13
  119.                 echo "        ";
  120.             }
  121.             // line 14
  122.             echo "        ";
  123.             $this->loadTemplate((("includes/blocks/" twig_get_attribute($this->env$this->source$context["block"], "type", [], "any"falsefalsefalse14)) . ".html.twig"), "pages/default.html.twig"14)->display(twig_to_array(["pageTitle" => twig_get_attribute($this->env$this->source,             // line 15
  124. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'15$this->source); })()), "title", [], "any"falsefalsefalse15), "modal" =>             // line 16
  125. (isset($context["modal"]) || array_key_exists("modal"$context) ? $context["modal"] : (function () { throw new RuntimeError('Variable "modal" does not exist.'16$this->source); })()), "content" =>             // line 17
  126. $context["block"], "view" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 18
  127. (isset($context["view"]) || array_key_exists("view"$context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.'18$this->source); })()), "blocks", [], "any"falsefalsefalse18), twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse18), [], "array"falsefalsefalse18)]));
  128.             // line 20
  129.             echo "        ";
  130.             $context["modal"] = false;
  131.             // line 21
  132.             echo "    ";
  133.             ++$context['loop']['index0'];
  134.             ++$context['loop']['index'];
  135.             $context['loop']['first'] = false;
  136.             if (isset($context['loop']['length'])) {
  137.                 --$context['loop']['revindex0'];
  138.                 --$context['loop']['revindex'];
  139.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  140.             }
  141.         }
  142.         $_parent $context['_parent'];
  143.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  144.         $context array_intersect_key($context$_parent) + $_parent;
  145.         
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  147.         
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  149.     }
  150.     // line 23
  151.     public function block_footer($context, array $blocks = [])
  152.     {
  153.         $macros $this->macros;
  154.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  158.         // line 24
  159.         echo "    ";
  160.         echo twig_include($this->env$context"includes/footer.html.twig");
  161.         echo "
  162. ";
  163.         
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165.         
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  167.     }
  168.     // line 26
  169.     public function block_javascripts($context, array $blocks = [])
  170.     {
  171.         $macros $this->macros;
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  173.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  174.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  176.         
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178.         
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180.     }
  181.     public function getTemplateName()
  182.     {
  183.         return "pages/default.html.twig";
  184.     }
  185.     public function isTraitable()
  186.     {
  187.         return false;
  188.     }
  189.     public function getDebugInfo()
  190.     {
  191.         return array (  201 => 26,  188 => 24,  178 => 23,  156 => 21,  153 => 20,  151 => 18,  150 => 17,  149 => 16,  148 => 15,  146 => 14,  143 => 13,  140 => 12,  137 => 11,  119 => 10,  116 => 9,  106 => 8,  95 => 6,  85 => 5,  72 => 3,  62 => 2,  39 => 1,);
  192.     }
  193.     public function getSourceContext()
  194.     {
  195.         return new Source("{% extends \"base.html.twig\" %}
  196. {% block style %}
  197.     <link rel=\"stylesheet\" href=\"{{ asset('assets/index.css') }}\">
  198. {% endblock %}
  199. {% block header %}
  200.     {% include '/includes/header-nav.html.twig' %}
  201. {% endblock %}
  202. {% block content %}
  203.     {% set modal = false %}
  204.     {% for block in content.blocks %}
  205.          {% if block.type == 'download-modal' %}
  206.             {% set modal = true %}
  207.         {% endif %}
  208.         {% include 'includes/blocks/' ~ block.type ~ '.html.twig' with {
  209.             pageTitle: content.title,
  210.             modal: modal,
  211.             content: block,
  212.             view: view.blocks[loop.index0],
  213.         } only %}
  214.         {% set modal = false %}
  215.     {% endfor %}
  216. {% endblock %}
  217. {% block footer %}
  218.     {{ include('includes/footer.html.twig')  }}
  219. {% endblock %}
  220. {% block javascripts %}
  221. {% endblock %}
  222. ""pages/default.html.twig""/var/www/dmz-test-pdwebsite.plan-d.cloud/templates/pages/default.html.twig");
  223.     }
  224. }