var/cache/website/dev/twig/54/54742078dbbe7c5de2dc03719f74f0ce.php line 39

  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_304b6590374a02c96c1566c2b57e02fa 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.             'title' => [$this'block_title'],
  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.         // line 2
  40.         $context["is_meta_site"] = ((((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.'2$this->source); })()), "url", [], "any"falsefalsefalse2) == "/impressum") || (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.'2$this->source); })()), "url", [], "any"falsefalsefalse2) == "/datenschutz"))) ? (true) : (false));
  41.         // line 1
  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 4
  50.     public function block_title($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""title"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         echo twig_escape_filter($this->envtwig_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.'4$this->source); })()), "title", [], "any"falsefalsefalse4), "html"nulltrue);
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.     }
  63.     // line 6
  64.     public function block_content($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  71.         // line 7
  72.         echo "    ";
  73.         if (array_key_exists("is_meta_site"$context)) {
  74.             // line 8
  75.             echo "        ";
  76.             if ( !(isset($context["is_meta_site"]) || array_key_exists("is_meta_site"$context) ? $context["is_meta_site"] : (function () { throw new RuntimeError('Variable "is_meta_site" does not exist.'8$this->source); })())) {
  77.                 // line 9
  78.                 echo "            ";
  79.                 $context["media"] = $this->extensions['Sulu\Bundle\MediaBundle\Twig\MediaTwigExtension']->resolveMediaFunction(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.'9$this->source); })()), "image", [], "any"falsefalsefalse9), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'9$this->source); })()), "request", [], "any"falsefalsefalse9), "locale", [], "any"falsefalsefalse9));
  80.                 // line 10
  81.                 echo "            <div class=\"pageImage-container\">
  82.                 ";
  83.                 // line 11
  84.                 $context['_parent'] = $context;
  85.                 $context['_seq'] = twig_ensure_traversable(twig_slice($this->envtwig_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.'11$this->source); })()), "blocks", [], "any"falsefalsefalse11), 01));
  86.                 $context['loop'] = [
  87.                   'parent' => $context['_parent'],
  88.                   'index0' => 0,
  89.                   'index'  => 1,
  90.                   'first'  => true,
  91.                 ];
  92.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  93.                     $length count($context['_seq']);
  94.                     $context['loop']['revindex0'] = $length 1;
  95.                     $context['loop']['revindex'] = $length;
  96.                     $context['loop']['length'] = $length;
  97.                     $context['loop']['last'] = === $length;
  98.                 }
  99.                 foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  100.                     // line 12
  101.                     echo "                    ";
  102.                     $this->loadTemplate((("includes/blocks/" twig_get_attribute($this->env$this->source$context["block"], "type", [], "any"falsefalsefalse12)) . ".html.twig"), "pages/default.html.twig"12)->display(twig_array_merge($context, ["content" =>                     // line 13
  103. $context["block"], "view" => twig_get_attribute($this->env$this->sourcetwig_slice($this->envtwig_get_attribute($this->env$this->source,                     // line 14
  104. (isset($context["view"]) || array_key_exists("view"$context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.'14$this->source); })()), "blocks", [], "any"falsefalsefalse14), 01), twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse14), [], "array"falsefalsefalse14), "parent" =>                     // line 15
  105. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'15$this->source); })()), "image" =>                     // line 16
  106. (isset($context["media"]) || array_key_exists("media"$context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.'16$this->source); })())]));
  107.                     // line 18
  108.                     echo "                ";
  109.                     ++$context['loop']['index0'];
  110.                     ++$context['loop']['index'];
  111.                     $context['loop']['first'] = false;
  112.                     if (isset($context['loop']['length'])) {
  113.                         --$context['loop']['revindex0'];
  114.                         --$context['loop']['revindex'];
  115.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  116.                     }
  117.                 }
  118.                 $_parent $context['_parent'];
  119.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  120.                 $context array_intersect_key($context$_parent) + $_parent;
  121.                 // line 19
  122.                 echo "            </div>
  123.         ";
  124.             } else {
  125.                 // line 21
  126.                 echo "            <div style=\"height:75px !important;\">&nbsp;</div>
  127.         ";
  128.             }
  129.             // line 23
  130.             echo "    ";
  131.         }
  132.         // line 24
  133.         echo "
  134.     <div class=\"page-content grid-container\">
  135.     ";
  136.         // line 26
  137.         $context['_parent'] = $context;
  138.         $context['_seq'] = twig_ensure_traversable(twig_slice($this->envtwig_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.'26$this->source); })()), "blocks", [], "any"falsefalsefalse26), 1null));
  139.         $context['loop'] = [
  140.           'parent' => $context['_parent'],
  141.           'index0' => 0,
  142.           'index'  => 1,
  143.           'first'  => true,
  144.         ];
  145.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  146.             $length count($context['_seq']);
  147.             $context['loop']['revindex0'] = $length 1;
  148.             $context['loop']['revindex'] = $length;
  149.             $context['loop']['length'] = $length;
  150.             $context['loop']['last'] = === $length;
  151.         }
  152.         foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  153.             // line 27
  154.             echo "        ";
  155.             $this->loadTemplate((("includes/blocks/" twig_get_attribute($this->env$this->source$context["block"], "type", [], "any"falsefalsefalse27)) . ".html.twig"), "pages/default.html.twig"27)->display(twig_array_merge($context, ["content" =>             // line 28
  156. $context["block"], "view" => twig_get_attribute($this->env$this->sourcetwig_slice($this->envtwig_get_attribute($this->env$this->source,             // line 29
  157. (isset($context["view"]) || array_key_exists("view"$context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.'29$this->source); })()), "blocks", [], "any"falsefalsefalse29), 1null), twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse29), [], "array"falsefalsefalse29), "parent" =>             // line 30
  158. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'30$this->source); })())]));
  159.             // line 32
  160.             echo "    ";
  161.             ++$context['loop']['index0'];
  162.             ++$context['loop']['index'];
  163.             $context['loop']['first'] = false;
  164.             if (isset($context['loop']['length'])) {
  165.                 --$context['loop']['revindex0'];
  166.                 --$context['loop']['revindex'];
  167.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  168.             }
  169.         }
  170.         $_parent $context['_parent'];
  171.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  172.         $context array_intersect_key($context$_parent) + $_parent;
  173.         // line 33
  174.         echo "    </div>
  175. ";
  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 (  193 => 33,  179 => 32,  177 => 30,  176 => 29,  175 => 28,  173 => 27,  156 => 26,  152 => 24,  149 => 23,  145 => 21,  141 => 19,  127 => 18,  125 => 16,  124 => 15,  123 => 14,  122 => 13,  120 => 12,  103 => 11,  100 => 10,  97 => 9,  94 => 8,  91 => 7,  81 => 6,  62 => 4,  51 => 1,  49 => 2,  36 => 1,);
  192.     }
  193.     public function getSourceContext()
  194.     {
  195.         return new Source("{% extends \"base.html.twig\" %}
  196. {% set is_meta_site = (content.url == '/impressum' or content.url == '/datenschutz') ? true : false  %}
  197. {% block title %}{{ content.title }}{% endblock %}
  198. {% block content %}
  199.     {% if is_meta_site is defined %}
  200.         {% if not is_meta_site %}
  201.             {% set media = sulu_resolve_media(content.image, app.request.locale) %}
  202.             <div class=\"pageImage-container\">
  203.                 {% for block in content.blocks[:1] %}
  204.                     {% include 'includes/blocks/' ~ block.type ~ '.html.twig' with {
  205.                         content: block,
  206.                         view: view.blocks[:1][loop.index0],
  207.                         parent: content,
  208.                         image: media
  209.                     } %}
  210.                 {% endfor %}
  211.             </div>
  212.         {% else %}
  213.             <div style=\"height:75px !important;\">&nbsp;</div>
  214.         {% endif %}
  215.     {% endif %}
  216.     <div class=\"page-content grid-container\">
  217.     {% for block in content.blocks[1:] %}
  218.         {% include 'includes/blocks/' ~ block.type ~ '.html.twig' with {
  219.             content: block,
  220.             view: view.blocks[1:][loop.index0],
  221.             parent: content,
  222.         } %}
  223.     {% endfor %}
  224.     </div>
  225. {% endblock %}""pages/default.html.twig""/var/www/vhosts/previews/nd-haefen/templates/pages/default.html.twig");
  226.     }
  227. }