var/cache/dev/twig/26/264cb73e3e94c3a048328cba0f4504ea.php line 70

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. /* views/themaOverview.html.twig */
  14. class __TwigTemplate_22d77801355b5892e51af957d01c427b 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layouts/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""views/themaOverview.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""views/themaOverview.html.twig"));
  40.         // line 2
  41.         if (((isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'2$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'2$this->source); })()), "title", [], "any"falsefalsetrue2))) {
  42.             // line 3
  43.             $this->env->getFunction('pimcore_head_title')->getCallable()((twig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'3$this->source); })()), "title", [], "any"falsefalsetrue3) . " / Themen / Radio Oberland"));
  44.             // line 4
  45.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:title", (twig_replace_filter(twig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'4$this->source); })()), "title", [], "any"falsefalsetrue4), ["\"" => "'"]) . " / Themen / Radio Oberland")], "method"falsefalsetrue4);
  46.             // line 5
  47.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:type""article"], "method"falsefalsetrue5);
  48.         }
  49.         // line 1
  50.         $this->parent $this->loadTemplate("layouts/layout.html.twig""views/themaOverview.html.twig"1);
  51.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  52.         
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  54.         
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  56.     }
  57.     // line 7
  58.     public function block_content($context, array $blocks = [])
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  65.         // line 8
  66.         echo "    ";
  67.         if (((isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'8$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'8$this->source); })()), "title", [], "any"falsefalsetrue8))) {
  68.             // line 9
  69.             echo "        <div class=\"py-10 mb-20 overflow-hidden relative\"
  70.              style=\"background-color: ";
  71.             // line 10
  72.             ((twig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'10$this->source); })()), "color", [], "any"falsefalsetrue10)) ? (print (twig_escape_filter($this->env, (((((("rgb(" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'10$this->source); })()), "color", [], "any"falsefalsetrue10), "r", [], "any"falsefalsetrue10)) . ",") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'10$this->source); })()), "color", [], "any"falsefalsetrue10), "g", [], "any"falsefalsetrue10)) . ",") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'10$this->source); })()), "color", [], "any"falsefalsetrue10), "b", [], "any"falsefalsetrue10)) . ")"), "html"nulltrue))) : (print ("#ffffff")));
  73.             echo "; color: ";
  74.             ((twig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'10$this->source); })()), "colorText", [], "any"falsefalsetrue10)) ? (print (twig_escape_filter($this->env, (((((("rgb(" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'10$this->source); })()), "colorText", [], "any"falsefalsetrue10), "r", [], "any"falsefalsetrue10)) . ",") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'10$this->source); })()), "colorText", [], "any"falsefalsetrue10), "g", [], "any"falsefalsetrue10)) . ",") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'10$this->source); })()), "colorText", [], "any"falsefalsetrue10), "b", [], "any"falsefalsetrue10)) . ")"), "html"nulltrue))) : (print ("#000000")));
  75.             echo "\">
  76.             <div class=\"absolute left-0 top-0 bottom-0 right-0 pointer-events-none mix-blend-multiply\"><img src=\"";
  77.             // line 11
  78.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/images/waves.webp"), "html"nulltrue);
  79.             echo "\" alt=\"\" class=\"w-full h-full object-cover\"></div>
  80. ";
  81.             // line 15
  82.             echo "            <div class=\"container relative\">
  83.                 <div class=\"grid grid-cols-1 md:grid-cols-3\">
  84.                     <div class=\"md:col-span-2\">
  85.                         <div class=\"text-sm px-5 2xl:px-0\">
  86.                             <div class=\"uppercase\">
  87.                                 Themen &raquo;
  88.                                 ";
  89.             // line 21
  90.             if ((twig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'21$this->source); })()), "parent", [], "any"falsefalsetrue21) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'21$this->source); })()), "parent", [], "any"falsefalsetrue21), "type", [], "any"falsefalsetrue21) == "object"))) {
  91.                 // line 22
  92.                 echo "                                    <a href=\"/themen/";
  93.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'22$this->source); })()), "parent", [], "any"falsefalsetrue22), "key", [], "any"falsefalsetrue22), 22$this->source), "html"nulltrue);
  94.                 echo "\" class=\"hover:underline whitespace-nowrap\">";
  95.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'22$this->source); })()), "parent", [], "any"falsefalsetrue22), "title", [], "any"falsefalsetrue22), 22$this->source), "html"nulltrue);
  96.                 echo " &raquo;</a>
  97.                                 ";
  98.             }
  99.             // line 24
  100.             echo "                            </div>
  101.                             <h1 class=\"mt-5 md:mt-10 mb-5 text-4xl md:text-6xl\">";
  102.             // line 25
  103.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'25$this->source); })()), "title", [], "any"falsefalsetrue25), 25$this->source), "html"nulltrue);
  104.             echo "</h1>
  105.                         </div>
  106.                     </div>
  107.                     <div class=\"p-5\">
  108.                         ";
  109.             // line 29
  110.             if ((twig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'29$this->source); })()), "sponsor", [], "any"falsefalsetrue29) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'29$this->source); })()), "sponsor", [], "any"falsefalsetrue29), "title", [], "any"falsefalsetrue29))) {
  111.                 // line 30
  112.                 echo "                            <div class=\"shadow-card bg-white p-5\">
  113.                                 <div class=\"uppercase text-blue-dark font-bold text-xs mb-5\">Dieses Thema wird präsentiert von</div>
  114.                                 ";
  115.                 // line 32
  116.                 $context["linkWeb"] = (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'32$this->source); })()), "sponsor", [], "any"falsefalsetrue32), "linkWeb", [], "any"falsefalsetrue32) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'32$this->source); })()), "sponsor", [], "any"falsefalsetrue32), "linkWeb", [], "any"falsefalsetrue32), "href", [], "any"falsefalsetrue32))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'32$this->source); })()), "sponsor", [], "any"falsefalsetrue32), "linkWeb", [], "any"falsefalsetrue32), "href", [], "any"falsefalsetrue32)) : (""));
  117.                 // line 33
  118.                 echo "                                ";
  119.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'33$this->source); })()), "sponsor", [], "any"falsefalsetrue33), "logo", [], "any"falsefalsetrue33) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'33$this->source); })()), "sponsor", [], "any"falsefalsetrue33), "logo", [], "any"falsefalsetrue33)))) {
  120.                     // line 34
  121.                     echo "                                    <div>
  122.                                         ";
  123.                     // line 35
  124.                     if ((isset($context["linkWeb"]) || array_key_exists("linkWeb"$context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.'35$this->source); })())) {
  125.                         // line 36
  126.                         echo "                                        <a href=\"";
  127.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["linkWeb"]) || array_key_exists("linkWeb"$context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.'36$this->source); })()), 36$this->source), "html"nulltrue);
  128.                         echo "\" target=\"_blank\">
  129.                                             ";
  130.                     }
  131.                     // line 38
  132.                     echo "                                            ";
  133.                     echo twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'38$this->source); })()), "sponsor", [], "any"falsefalsetrue38), "logo", [], "any"falsefalsetrue38), "getThumbnail", ["standardThumbnail"], "method"falsefalsetrue38), "html", [], "any"falsefalsetrue38), 38$this->source), ["<img" => "<img class=\"max-w-full inline-block\""]);
  134.                     echo "
  135.                                             ";
  136.                     // line 39
  137.                     if ((isset($context["linkWeb"]) || array_key_exists("linkWeb"$context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.'39$this->source); })())) {
  138.                         // line 40
  139.                         echo "                                        </a>
  140.                                         ";
  141.                     }
  142.                     // line 42
  143.                     echo "                                    </div>
  144.                                 ";
  145.                 } else {
  146.                     // line 44
  147.                     echo "                                    ";
  148.                     if ((isset($context["linkWeb"]) || array_key_exists("linkWeb"$context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.'44$this->source); })())) {
  149.                         // line 45
  150.                         echo "                                        <a href=\"";
  151.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["linkWeb"]) || array_key_exists("linkWeb"$context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.'45$this->source); })()), 45$this->source), "html"nulltrue);
  152.                         echo "\" target=\"_blank\">
  153.                                     ";
  154.                     }
  155.                     // line 47
  156.                     echo "                                    ";
  157.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'47$this->source); })()), "sponsor", [], "any"falsefalsetrue47), "title", [], "any"falsefalsetrue47), 47$this->source), "html"nulltrue);
  158.                     echo "
  159.                                     ";
  160.                     // line 48
  161.                     if ((isset($context["linkWeb"]) || array_key_exists("linkWeb"$context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.'48$this->source); })())) {
  162.                         // line 49
  163.                         echo "                                        </a>
  164.                                     ";
  165.                     }
  166.                     // line 51
  167.                     echo "                                ";
  168.                 }
  169.                 // line 52
  170.                 echo "                            </div>
  171.                         ";
  172.             }
  173.             // line 54
  174.             echo "                    </div>
  175.                 </div>
  176.             </div>
  177.         </div>
  178.         <div class=\"container px-5 2xl:px-0\">
  179.             <div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5\">
  180.                 ";
  181.             // line 60
  182.             $context["forcedBereich"] = (isset($context["bereich"]) || array_key_exists("bereich"$context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.'60$this->source); })());
  183.             // line 61
  184.             echo "                ";
  185.             $context['_parent'] = $context;
  186.             $context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'61$this->source); })()));
  187.             $context['loop'] = [
  188.               'parent' => $context['_parent'],
  189.               'index0' => 0,
  190.               'index'  => 1,
  191.               'first'  => true,
  192.             ];
  193.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  194.                 $length count($context['_seq']);
  195.                 $context['loop']['revindex0'] = $length 1;
  196.                 $context['loop']['revindex'] = $length;
  197.                 $context['loop']['length'] = $length;
  198.                 $context['loop']['last'] = === $length;
  199.             }
  200.             foreach ($context['_seq'] as $context["index"] => $context["article"]) {
  201.                 // line 62
  202.                 echo "                    ";
  203.                 $context["fullHeight"] = false;
  204.                 // line 63
  205.                 echo "                    ";
  206.                 $this->loadTemplate("includes/themenPreview.html.twig""views/themaOverview.html.twig"63)->display($context);
  207.                 // line 64
  208.                 echo "                ";
  209.                 ++$context['loop']['index0'];
  210.                 ++$context['loop']['index'];
  211.                 $context['loop']['first'] = false;
  212.                 if (isset($context['loop']['length'])) {
  213.                     --$context['loop']['revindex0'];
  214.                     --$context['loop']['revindex'];
  215.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  216.                 }
  217.             }
  218.             $_parent $context['_parent'];
  219.             unset($context['_seq'], $context['_iterated'], $context['index'], $context['article'], $context['_parent'], $context['loop']);
  220.             $context array_intersect_key($context$_parent) + $_parent;
  221.             // line 65
  222.             echo "            </div>
  223.             ";
  224.             // line 66
  225.             $context['_parent'] = $context;
  226.             $context['_seq'] = twig_ensure_traversable((isset($context["bereiche"]) || array_key_exists("bereiche"$context) ? $context["bereiche"] : (function () { throw new RuntimeError('Variable "bereiche" does not exist.'66$this->source); })()));
  227.             $context['loop'] = [
  228.               'parent' => $context['_parent'],
  229.               'index0' => 0,
  230.               'index'  => 1,
  231.               'first'  => true,
  232.             ];
  233.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  234.                 $length count($context['_seq']);
  235.                 $context['loop']['revindex0'] = $length 1;
  236.                 $context['loop']['revindex'] = $length;
  237.                 $context['loop']['length'] = $length;
  238.                 $context['loop']['last'] = === $length;
  239.             }
  240.             foreach ($context['_seq'] as $context["_key"] => $context["subBereich"]) {
  241.                 // line 67
  242.                 echo "                ";
  243.                 if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["subBereich"], "articles", [], "any"falsefalsetrue67)) > 0)) {
  244.                     // line 68
  245.                     echo "                    <h3 class=\"mt-10 mb-2 text-3xl\">
  246.                         <a href=\"/themen/";
  247.                     // line 69
  248.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["subBereich"], "bereich", [], "any"falsefalsetrue69), "key", [], "any"falsefalsetrue69), 69$this->source), "html"nulltrue);
  249.                     echo "\" class=\"text-blue-light hover:text-black transition-all font-mont-heavy uppercase\">";
  250.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["subBereich"], "bereich", [], "any"falsefalsetrue69), "title", [], "any"falsefalsetrue69), 69$this->source), "html"nulltrue);
  251.                     echo "</a>
  252.                     </h3>
  253.                     ";
  254.                     // line 71
  255.                     if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["subBereich"], "bereich", [], "any"falsefalsetrue71), "sponsor", [], "any"falsefalsetrue71) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["subBereich"], "bereich", [], "any"falsefalsetrue71), "sponsor", [], "any"falsefalsetrue71)))) {
  256.                         // line 72
  257.                         echo "                        <div class=\"font-bold\">präsentiert von ";
  258.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["subBereich"], "bereich", [], "any"falsefalsetrue72), "sponsor", [], "any"falsefalsetrue72), "title", [], "any"falsefalsetrue72), 72$this->source), "html"nulltrue);
  259.                         echo "</div>
  260.                     ";
  261.                     }
  262.                     // line 74
  263.                     echo "                    <div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 mt-10\">
  264.                         ";
  265.                     // line 75
  266.                     $context["forcedBereich"] = twig_get_attribute($this->env$this->source$context["subBereich"], "bereich", [], "any"falsefalsetrue75);
  267.                     // line 76
  268.                     echo "                        ";
  269.                     $context['_parent'] = $context;
  270.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["subBereich"], "articles", [], "any"falsefalsetrue76));
  271.                     $context['loop'] = [
  272.                       'parent' => $context['_parent'],
  273.                       'index0' => 0,
  274.                       'index'  => 1,
  275.                       'first'  => true,
  276.                     ];
  277.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  278.                         $length count($context['_seq']);
  279.                         $context['loop']['revindex0'] = $length 1;
  280.                         $context['loop']['revindex'] = $length;
  281.                         $context['loop']['length'] = $length;
  282.                         $context['loop']['last'] = === $length;
  283.                     }
  284.                     foreach ($context['_seq'] as $context["index"] => $context["article"]) {
  285.                         // line 77
  286.                         echo "                            ";
  287.                         $context["fullHeight"] = false;
  288.                         // line 78
  289.                         echo "                            ";
  290.                         $this->loadTemplate("includes/themenPreview.html.twig""views/themaOverview.html.twig"78)->display($context);
  291.                         // line 79
  292.                         echo "                        ";
  293.                         ++$context['loop']['index0'];
  294.                         ++$context['loop']['index'];
  295.                         $context['loop']['first'] = false;
  296.                         if (isset($context['loop']['length'])) {
  297.                             --$context['loop']['revindex0'];
  298.                             --$context['loop']['revindex'];
  299.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  300.                         }
  301.                     }
  302.                     $_parent $context['_parent'];
  303.                     unset($context['_seq'], $context['_iterated'], $context['index'], $context['article'], $context['_parent'], $context['loop']);
  304.                     $context array_intersect_key($context$_parent) + $_parent;
  305.                     // line 80
  306.                     echo "                    </div>
  307.                     <div class=\"moreLink text-center mt-5\">
  308.                         <a href=\"/themen/";
  309.                     // line 82
  310.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["forcedBereich"]) || array_key_exists("forcedBereich"$context) ? $context["forcedBereich"] : (function () { throw new RuntimeError('Variable "forcedBereich" does not exist.'82$this->source); })()), "key", [], "any"falsefalsetrue82), 82$this->source), "html"nulltrue);
  311.                     echo "\" class=\"btn-default\">weitere Artikel</a>
  312.                     </div>
  313.                 ";
  314.                 }
  315.                 // line 85
  316.                 echo "            ";
  317.                 ++$context['loop']['index0'];
  318.                 ++$context['loop']['index'];
  319.                 $context['loop']['first'] = false;
  320.                 if (isset($context['loop']['length'])) {
  321.                     --$context['loop']['revindex0'];
  322.                     --$context['loop']['revindex'];
  323.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  324.                 }
  325.             }
  326.             $_parent $context['_parent'];
  327.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subBereich'], $context['_parent'], $context['loop']);
  328.             $context array_intersect_key($context$_parent) + $_parent;
  329.             // line 86
  330.             echo "        </div>
  331.     ";
  332.         } else {
  333.             // line 88
  334.             echo "        <div class=\"pimcore_area_content\">
  335.             <div class=\"py-10 mb-20 overflow-hidden relative\">
  336.                 <div class=\"absolute left-0 top-0 bottom-0 right-0 pointer-events-none mix-blend-multiply\"><img src=\"";
  337.             // line 90
  338.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/images/waves.webp"), "html"nulltrue);
  339.             echo "\" alt=\"\" class=\"w-full h-full object-cover\"></div>
  340.                 ";
  341.             // line 92
  342.             echo "                ";
  343.             // line 93
  344.             echo "                ";
  345.             // line 94
  346.             echo "                <div class=\"container relative\">
  347.                     <div class=\"grid grid-cols-1 md:grid-cols-3\">
  348.                         <div class=\"md:col-span-2\">
  349.                             <div class=\"text-sm px-5 2xl:px-0\">
  350.                                 <h1 class=\"mt-5 md:mt-10 mb-10 text-4xl md:text-6xl\">Wissenswertes</h1>
  351.                             </div>
  352.                         </div>
  353.                     </div>
  354.                 </div>
  355.             </div>
  356.             <div class=\"container mt-20 mb-20\">
  357.                 Leider konnten wir den gewünschten Themenbereich nicht finden. <a href=\"/themen\" class=\"text-blue-light\">Hier geht es zurück zur Übersicht</a>.
  358.             </div>
  359.         </div>
  360.     ";
  361.         }
  362.         
  363.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  364.         
  365.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  366.     }
  367.     /**
  368.      * @codeCoverageIgnore
  369.      */
  370.     public function getTemplateName()
  371.     {
  372.         return "views/themaOverview.html.twig";
  373.     }
  374.     /**
  375.      * @codeCoverageIgnore
  376.      */
  377.     public function isTraitable()
  378.     {
  379.         return false;
  380.     }
  381.     /**
  382.      * @codeCoverageIgnore
  383.      */
  384.     public function getDebugInfo()
  385.     {
  386.         return array (  360 => 94,  358 => 93,  356 => 92,  352 => 90,  348 => 88,  344 => 86,  330 => 85,  324 => 82,  320 => 80,  306 => 79,  303 => 78,  300 => 77,  282 => 76,  280 => 75,  277 => 74,  271 => 72,  269 => 71,  262 => 69,  259 => 68,  256 => 67,  239 => 66,  236 => 65,  222 => 64,  219 => 63,  216 => 62,  198 => 61,  196 => 60,  188 => 54,  184 => 52,  181 => 51,  177 => 49,  175 => 48,  170 => 47,  164 => 45,  161 => 44,  157 => 42,  153 => 40,  151 => 39,  146 => 38,  140 => 36,  138 => 35,  135 => 34,  132 => 33,  130 => 32,  126 => 30,  124 => 29,  117 => 25,  114 => 24,  106 => 22,  104 => 21,  96 => 15,  92 => 11,  86 => 10,  83 => 9,  80 => 8,  70 => 7,  59 => 1,  56 => 5,  54 => 4,  52 => 3,  50 => 2,  37 => 1,);
  387.     }
  388.     public function getSourceContext()
  389.     {
  390.         return new Source("{% extends 'layouts/layout.html.twig' %}
  391. {% if bereich and bereich.title %}
  392.     {% do pimcore_head_title(bereich.title ~ ' / Themen / Radio Oberland') %}
  393.     {% do pimcore_head_meta().setProperty('og:title', bereich.title | replace({ '\"': \"'\"}) ~ ' / Themen / Radio Oberland') %}
  394.     {% do pimcore_head_meta().setProperty('og:type', 'article') %}
  395. {% endif %}
  396. {% block content %}
  397.     {% if bereich and bereich.title %}
  398.         <div class=\"py-10 mb-20 overflow-hidden relative\"
  399.              style=\"background-color: {{ bereich.color ? 'rgb(' ~ bereich.color.r ~ ',' ~ bereich.color.g ~ ',' ~ bereich.color.b ~ ')' : '#ffffff' }}; color: {{ bereich.colorText ? 'rgb(' ~ bereich.colorText.r ~ ',' ~ bereich.colorText.g ~ ',' ~ bereich.colorText.b ~ ')' : '#000000' }}\">
  400.             <div class=\"absolute left-0 top-0 bottom-0 right-0 pointer-events-none mix-blend-multiply\"><img src=\"{{ asset('static/images/waves.webp') }}\" alt=\"\" class=\"w-full h-full object-cover\"></div>
  401. {#            <div class=\"absolute left-0 top-0 bottom-0\" style=\"background: rgba(0, 0, 0, 0.05); transform: skewX(5deg); transform-origin: bottom left; width: 60%;\"></div>#}
  402. {#            <div class=\"absolute left-0 top-0 bottom-0\" style=\"background: rgba(0, 0, 0, 0.05); transform: skewX(5deg); transform-origin: bottom left; width: 40%;\"></div>#}
  403. {#            <div class=\"absolute left-0 top-0 bottom-0\" style=\"background: rgba(0, 0, 0, 0.05); transform: skewX(5deg); transform-origin: bottom left; width: 35%;\"></div>#}
  404.             <div class=\"container relative\">
  405.                 <div class=\"grid grid-cols-1 md:grid-cols-3\">
  406.                     <div class=\"md:col-span-2\">
  407.                         <div class=\"text-sm px-5 2xl:px-0\">
  408.                             <div class=\"uppercase\">
  409.                                 Themen &raquo;
  410.                                 {% if bereich.parent and bereich.parent.type == 'object' %}
  411.                                     <a href=\"/themen/{{ bereich.parent.key }}\" class=\"hover:underline whitespace-nowrap\">{{ bereich.parent.title }} &raquo;</a>
  412.                                 {% endif %}
  413.                             </div>
  414.                             <h1 class=\"mt-5 md:mt-10 mb-5 text-4xl md:text-6xl\">{{ bereich.title }}</h1>
  415.                         </div>
  416.                     </div>
  417.                     <div class=\"p-5\">
  418.                         {% if bereich.sponsor and bereich.sponsor.title %}
  419.                             <div class=\"shadow-card bg-white p-5\">
  420.                                 <div class=\"uppercase text-blue-dark font-bold text-xs mb-5\">Dieses Thema wird präsentiert von</div>
  421.                                 {% set linkWeb = bereich.sponsor.linkWeb and bereich.sponsor.linkWeb.href ? bereich.sponsor.linkWeb.href : '' %}
  422.                                 {% if bereich.sponsor.logo and bereich.sponsor.logo is not null %}
  423.                                     <div>
  424.                                         {% if linkWeb %}
  425.                                         <a href=\"{{ linkWeb }}\" target=\"_blank\">
  426.                                             {% endif %}
  427.                                             {{ bereich.sponsor.logo.getThumbnail('standardThumbnail').html | replace({ '<img': '<img class=\"max-w-full inline-block\"' }) | raw }}
  428.                                             {% if linkWeb %}
  429.                                         </a>
  430.                                         {% endif %}
  431.                                     </div>
  432.                                 {% else %}
  433.                                     {% if linkWeb %}
  434.                                         <a href=\"{{ linkWeb }}\" target=\"_blank\">
  435.                                     {% endif %}
  436.                                     {{ bereich.sponsor.title }}
  437.                                     {% if linkWeb %}
  438.                                         </a>
  439.                                     {% endif %}
  440.                                 {% endif %}
  441.                             </div>
  442.                         {% endif %}
  443.                     </div>
  444.                 </div>
  445.             </div>
  446.         </div>
  447.         <div class=\"container px-5 2xl:px-0\">
  448.             <div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5\">
  449.                 {% set forcedBereich = bereich %}
  450.                 {% for index, article in articles %}
  451.                     {% set fullHeight = false %}
  452.                     {% include 'includes/themenPreview.html.twig' %}
  453.                 {% endfor %}
  454.             </div>
  455.             {% for subBereich in bereiche %}
  456.                 {% if subBereich.articles | length > 0 %}
  457.                     <h3 class=\"mt-10 mb-2 text-3xl\">
  458.                         <a href=\"/themen/{{ subBereich.bereich.key }}\" class=\"text-blue-light hover:text-black transition-all font-mont-heavy uppercase\">{{ subBereich.bereich.title }}</a>
  459.                     </h3>
  460.                     {% if subBereich.bereich.sponsor and subBereich.bereich.sponsor is not null %}
  461.                         <div class=\"font-bold\">präsentiert von {{ subBereich.bereich.sponsor.title }}</div>
  462.                     {% endif %}
  463.                     <div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 mt-10\">
  464.                         {% set forcedBereich = subBereich.bereich %}
  465.                         {% for index, article in subBereich.articles %}
  466.                             {% set fullHeight = false %}
  467.                             {% include 'includes/themenPreview.html.twig' %}
  468.                         {% endfor %}
  469.                     </div>
  470.                     <div class=\"moreLink text-center mt-5\">
  471.                         <a href=\"/themen/{{ forcedBereich.key }}\" class=\"btn-default\">weitere Artikel</a>
  472.                     </div>
  473.                 {% endif %}
  474.             {% endfor %}
  475.         </div>
  476.     {% else %}
  477.         <div class=\"pimcore_area_content\">
  478.             <div class=\"py-10 mb-20 overflow-hidden relative\">
  479.                 <div class=\"absolute left-0 top-0 bottom-0 right-0 pointer-events-none mix-blend-multiply\"><img src=\"{{ asset('static/images/waves.webp') }}\" alt=\"\" class=\"w-full h-full object-cover\"></div>
  480.                 {#            <div class=\"absolute left-0 top-0 bottom-0\" style=\"background: rgba(0, 0, 0, 0.05); transform: skewX(5deg); transform-origin: bottom left; width: 60%;\"></div>#}
  481.                 {#            <div class=\"absolute left-0 top-0 bottom-0\" style=\"background: rgba(0, 0, 0, 0.05); transform: skewX(5deg); transform-origin: bottom left; width: 40%;\"></div>#}
  482.                 {#            <div class=\"absolute left-0 top-0 bottom-0\" style=\"background: rgba(0, 0, 0, 0.05); transform: skewX(5deg); transform-origin: bottom left; width: 35%;\"></div>#}
  483.                 <div class=\"container relative\">
  484.                     <div class=\"grid grid-cols-1 md:grid-cols-3\">
  485.                         <div class=\"md:col-span-2\">
  486.                             <div class=\"text-sm px-5 2xl:px-0\">
  487.                                 <h1 class=\"mt-5 md:mt-10 mb-10 text-4xl md:text-6xl\">Wissenswertes</h1>
  488.                             </div>
  489.                         </div>
  490.                     </div>
  491.                 </div>
  492.             </div>
  493.             <div class=\"container mt-20 mb-20\">
  494.                 Leider konnten wir den gewünschten Themenbereich nicht finden. <a href=\"/themen\" class=\"text-blue-light\">Hier geht es zurück zur Übersicht</a>.
  495.             </div>
  496.         </div>
  497.     {% endif %}
  498. {% endblock %}
  499. ""views/themaOverview.html.twig""/var/www/vhosts/radio-oberland.de/httpdocs/templates/views/themaOverview.html.twig");
  500.     }
  501.     
  502.     public function checkSecurity()
  503.     {
  504.         static $tags = array("if" => 2"do" => 3"set" => 32"for" => 61"include" => 63);
  505.         static $filters = array("replace" => 4"escape" => 10"raw" => 38"length" => 67);
  506.         static $functions = array("pimcore_head_title" => 3"pimcore_head_meta" => 4"asset" => 11);
  507.         try {
  508.             $this->sandbox->checkSecurity(
  509.                 ['if''do''set''for''include'],
  510.                 ['replace''escape''raw''length'],
  511.                 ['pimcore_head_title''pimcore_head_meta''asset']
  512.             );
  513.         } catch (SecurityError $e) {
  514.             $e->setSourceContext($this->source);
  515.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  516.                 $e->setTemplateLine($tags[$e->getTagName()]);
  517.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  518.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  519.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  520.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  521.             }
  522.             throw $e;
  523.         }
  524.     }
  525. }