<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* views/themaOverview.html.twig */
class __TwigTemplate_22d77801355b5892e51af957d01c427b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layouts/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "views/themaOverview.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "views/themaOverview.html.twig"));
// line 2
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", false, false, true, 2))) {
// line 3
$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", false, false, true, 3) . " / Themen / Radio Oberland"));
// line 4
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", false, false, true, 4), ["\"" => "'"]) . " / Themen / Radio Oberland")], "method", false, false, true, 4);
// line 5
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:type", "article"], "method", false, false, true, 5);
}
// line 1
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "views/themaOverview.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 7
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 8
echo " ";
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", false, false, true, 8))) {
// line 9
echo " <div class=\"py-10 mb-20 overflow-hidden relative\"
style=\"background-color: ";
// line 10
((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", false, false, true, 10)) ? (print (twig_escape_filter($this->env, (((((("rgb(" . twig_get_attribute($this->env, $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.', 10, $this->source); })()), "color", [], "any", false, false, true, 10), "r", [], "any", false, false, true, 10)) . ",") . twig_get_attribute($this->env, $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.', 10, $this->source); })()), "color", [], "any", false, false, true, 10), "g", [], "any", false, false, true, 10)) . ",") . twig_get_attribute($this->env, $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.', 10, $this->source); })()), "color", [], "any", false, false, true, 10), "b", [], "any", false, false, true, 10)) . ")"), "html", null, true))) : (print ("#ffffff")));
echo "; color: ";
((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", false, false, true, 10)) ? (print (twig_escape_filter($this->env, (((((("rgb(" . twig_get_attribute($this->env, $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.', 10, $this->source); })()), "colorText", [], "any", false, false, true, 10), "r", [], "any", false, false, true, 10)) . ",") . twig_get_attribute($this->env, $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.', 10, $this->source); })()), "colorText", [], "any", false, false, true, 10), "g", [], "any", false, false, true, 10)) . ",") . twig_get_attribute($this->env, $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.', 10, $this->source); })()), "colorText", [], "any", false, false, true, 10), "b", [], "any", false, false, true, 10)) . ")"), "html", null, true))) : (print ("#000000")));
echo "\">
<div class=\"absolute left-0 top-0 bottom-0 right-0 pointer-events-none mix-blend-multiply\"><img src=\"";
// line 11
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/images/waves.webp"), "html", null, true);
echo "\" alt=\"\" class=\"w-full h-full object-cover\"></div>
";
// line 15
echo " <div class=\"container relative\">
<div class=\"grid grid-cols-1 md:grid-cols-3\">
<div class=\"md:col-span-2\">
<div class=\"text-sm px-5 2xl:px-0\">
<div class=\"uppercase\">
Themen »
";
// line 21
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", false, false, true, 21) && (twig_get_attribute($this->env, $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.', 21, $this->source); })()), "parent", [], "any", false, false, true, 21), "type", [], "any", false, false, true, 21) == "object"))) {
// line 22
echo " <a href=\"/themen/";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $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.', 22, $this->source); })()), "parent", [], "any", false, false, true, 22), "key", [], "any", false, false, true, 22), 22, $this->source), "html", null, true);
echo "\" class=\"hover:underline whitespace-nowrap\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $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.', 22, $this->source); })()), "parent", [], "any", false, false, true, 22), "title", [], "any", false, false, true, 22), 22, $this->source), "html", null, true);
echo " »</a>
";
}
// line 24
echo " </div>
<h1 class=\"mt-5 md:mt-10 mb-5 text-4xl md:text-6xl\">";
// line 25
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", false, false, true, 25), 25, $this->source), "html", null, true);
echo "</h1>
</div>
</div>
<div class=\"p-5\">
";
// line 29
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", false, false, true, 29) && twig_get_attribute($this->env, $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.', 29, $this->source); })()), "sponsor", [], "any", false, false, true, 29), "title", [], "any", false, false, true, 29))) {
// line 30
echo " <div class=\"shadow-card bg-white p-5\">
<div class=\"uppercase text-blue-dark font-bold text-xs mb-5\">Dieses Thema wird präsentiert von</div>
";
// line 32
$context["linkWeb"] = (((twig_get_attribute($this->env, $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.', 32, $this->source); })()), "sponsor", [], "any", false, false, true, 32), "linkWeb", [], "any", false, false, true, 32) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $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.', 32, $this->source); })()), "sponsor", [], "any", false, false, true, 32), "linkWeb", [], "any", false, false, true, 32), "href", [], "any", false, false, true, 32))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $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.', 32, $this->source); })()), "sponsor", [], "any", false, false, true, 32), "linkWeb", [], "any", false, false, true, 32), "href", [], "any", false, false, true, 32)) : (""));
// line 33
echo " ";
if ((twig_get_attribute($this->env, $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.', 33, $this->source); })()), "sponsor", [], "any", false, false, true, 33), "logo", [], "any", false, false, true, 33) && !(null === twig_get_attribute($this->env, $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.', 33, $this->source); })()), "sponsor", [], "any", false, false, true, 33), "logo", [], "any", false, false, true, 33)))) {
// line 34
echo " <div>
";
// line 35
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 35, $this->source); })())) {
// line 36
echo " <a href=\"";
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", null, true);
echo "\" target=\"_blank\">
";
}
// line 38
echo " ";
echo twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $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.', 38, $this->source); })()), "sponsor", [], "any", false, false, true, 38), "logo", [], "any", false, false, true, 38), "getThumbnail", ["standardThumbnail"], "method", false, false, true, 38), "html", [], "any", false, false, true, 38), 38, $this->source), ["<img" => "<img class=\"max-w-full inline-block\""]);
echo "
";
// line 39
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 39, $this->source); })())) {
// line 40
echo " </a>
";
}
// line 42
echo " </div>
";
} else {
// line 44
echo " ";
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 44, $this->source); })())) {
// line 45
echo " <a href=\"";
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", null, true);
echo "\" target=\"_blank\">
";
}
// line 47
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $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.', 47, $this->source); })()), "sponsor", [], "any", false, false, true, 47), "title", [], "any", false, false, true, 47), 47, $this->source), "html", null, true);
echo "
";
// line 48
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 48, $this->source); })())) {
// line 49
echo " </a>
";
}
// line 51
echo " ";
}
// line 52
echo " </div>
";
}
// line 54
echo " </div>
</div>
</div>
</div>
<div class=\"container px-5 2xl:px-0\">
<div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5\">
";
// line 60
$context["forcedBereich"] = (isset($context["bereich"]) || array_key_exists("bereich", $context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.', 60, $this->source); })());
// line 61
echo " ";
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["index"] => $context["article"]) {
// line 62
echo " ";
$context["fullHeight"] = false;
// line 63
echo " ";
$this->loadTemplate("includes/themenPreview.html.twig", "views/themaOverview.html.twig", 63)->display($context);
// line 64
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['index'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 65
echo " </div>
";
// line 66
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["subBereich"]) {
// line 67
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subBereich"], "articles", [], "any", false, false, true, 67)) > 0)) {
// line 68
echo " <h3 class=\"mt-10 mb-2 text-3xl\">
<a href=\"/themen/";
// line 69
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["subBereich"], "bereich", [], "any", false, false, true, 69), "key", [], "any", false, false, true, 69), 69, $this->source), "html", null, true);
echo "\" class=\"text-blue-light hover:text-black transition-all font-mont-heavy uppercase\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["subBereich"], "bereich", [], "any", false, false, true, 69), "title", [], "any", false, false, true, 69), 69, $this->source), "html", null, true);
echo "</a>
</h3>
";
// line 71
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["subBereich"], "bereich", [], "any", false, false, true, 71), "sponsor", [], "any", false, false, true, 71) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["subBereich"], "bereich", [], "any", false, false, true, 71), "sponsor", [], "any", false, false, true, 71)))) {
// line 72
echo " <div class=\"font-bold\">präsentiert von ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["subBereich"], "bereich", [], "any", false, false, true, 72), "sponsor", [], "any", false, false, true, 72), "title", [], "any", false, false, true, 72), 72, $this->source), "html", null, true);
echo "</div>
";
}
// line 74
echo " <div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 mt-10\">
";
// line 75
$context["forcedBereich"] = twig_get_attribute($this->env, $this->source, $context["subBereich"], "bereich", [], "any", false, false, true, 75);
// line 76
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["subBereich"], "articles", [], "any", false, false, true, 76));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["index"] => $context["article"]) {
// line 77
echo " ";
$context["fullHeight"] = false;
// line 78
echo " ";
$this->loadTemplate("includes/themenPreview.html.twig", "views/themaOverview.html.twig", 78)->display($context);
// line 79
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['index'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 80
echo " </div>
<div class=\"moreLink text-center mt-5\">
<a href=\"/themen/";
// line 82
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", false, false, true, 82), 82, $this->source), "html", null, true);
echo "\" class=\"btn-default\">weitere Artikel</a>
</div>
";
}
// line 85
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subBereich'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 86
echo " </div>
";
} else {
// line 88
echo " <div class=\"pimcore_area_content\">
<div class=\"py-10 mb-20 overflow-hidden relative\">
<div class=\"absolute left-0 top-0 bottom-0 right-0 pointer-events-none mix-blend-multiply\"><img src=\"";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/images/waves.webp"), "html", null, true);
echo "\" alt=\"\" class=\"w-full h-full object-cover\"></div>
";
// line 92
echo " ";
// line 93
echo " ";
// line 94
echo " <div class=\"container relative\">
<div class=\"grid grid-cols-1 md:grid-cols-3\">
<div class=\"md:col-span-2\">
<div class=\"text-sm px-5 2xl:px-0\">
<h1 class=\"mt-5 md:mt-10 mb-10 text-4xl md:text-6xl\">Wissenswertes</h1>
</div>
</div>
</div>
</div>
</div>
<div class=\"container mt-20 mb-20\">
Leider konnten wir den gewünschten Themenbereich nicht finden. <a href=\"/themen\" class=\"text-blue-light\">Hier geht es zurück zur Übersicht</a>.
</div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "views/themaOverview.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'layouts/layout.html.twig' %}
{% if bereich and bereich.title %}
{% do pimcore_head_title(bereich.title ~ ' / Themen / Radio Oberland') %}
{% do pimcore_head_meta().setProperty('og:title', bereich.title | replace({ '\"': \"'\"}) ~ ' / Themen / Radio Oberland') %}
{% do pimcore_head_meta().setProperty('og:type', 'article') %}
{% endif %}
{% block content %}
{% if bereich and bereich.title %}
<div class=\"py-10 mb-20 overflow-hidden relative\"
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' }}\">
<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>
{# <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>#}
{# <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>#}
{# <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>#}
<div class=\"container relative\">
<div class=\"grid grid-cols-1 md:grid-cols-3\">
<div class=\"md:col-span-2\">
<div class=\"text-sm px-5 2xl:px-0\">
<div class=\"uppercase\">
Themen »
{% if bereich.parent and bereich.parent.type == 'object' %}
<a href=\"/themen/{{ bereich.parent.key }}\" class=\"hover:underline whitespace-nowrap\">{{ bereich.parent.title }} »</a>
{% endif %}
</div>
<h1 class=\"mt-5 md:mt-10 mb-5 text-4xl md:text-6xl\">{{ bereich.title }}</h1>
</div>
</div>
<div class=\"p-5\">
{% if bereich.sponsor and bereich.sponsor.title %}
<div class=\"shadow-card bg-white p-5\">
<div class=\"uppercase text-blue-dark font-bold text-xs mb-5\">Dieses Thema wird präsentiert von</div>
{% set linkWeb = bereich.sponsor.linkWeb and bereich.sponsor.linkWeb.href ? bereich.sponsor.linkWeb.href : '' %}
{% if bereich.sponsor.logo and bereich.sponsor.logo is not null %}
<div>
{% if linkWeb %}
<a href=\"{{ linkWeb }}\" target=\"_blank\">
{% endif %}
{{ bereich.sponsor.logo.getThumbnail('standardThumbnail').html | replace({ '<img': '<img class=\"max-w-full inline-block\"' }) | raw }}
{% if linkWeb %}
</a>
{% endif %}
</div>
{% else %}
{% if linkWeb %}
<a href=\"{{ linkWeb }}\" target=\"_blank\">
{% endif %}
{{ bereich.sponsor.title }}
{% if linkWeb %}
</a>
{% endif %}
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
<div class=\"container px-5 2xl:px-0\">
<div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5\">
{% set forcedBereich = bereich %}
{% for index, article in articles %}
{% set fullHeight = false %}
{% include 'includes/themenPreview.html.twig' %}
{% endfor %}
</div>
{% for subBereich in bereiche %}
{% if subBereich.articles | length > 0 %}
<h3 class=\"mt-10 mb-2 text-3xl\">
<a href=\"/themen/{{ subBereich.bereich.key }}\" class=\"text-blue-light hover:text-black transition-all font-mont-heavy uppercase\">{{ subBereich.bereich.title }}</a>
</h3>
{% if subBereich.bereich.sponsor and subBereich.bereich.sponsor is not null %}
<div class=\"font-bold\">präsentiert von {{ subBereich.bereich.sponsor.title }}</div>
{% endif %}
<div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 mt-10\">
{% set forcedBereich = subBereich.bereich %}
{% for index, article in subBereich.articles %}
{% set fullHeight = false %}
{% include 'includes/themenPreview.html.twig' %}
{% endfor %}
</div>
<div class=\"moreLink text-center mt-5\">
<a href=\"/themen/{{ forcedBereich.key }}\" class=\"btn-default\">weitere Artikel</a>
</div>
{% endif %}
{% endfor %}
</div>
{% else %}
<div class=\"pimcore_area_content\">
<div class=\"py-10 mb-20 overflow-hidden relative\">
<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>
{# <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>#}
{# <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>#}
{# <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>#}
<div class=\"container relative\">
<div class=\"grid grid-cols-1 md:grid-cols-3\">
<div class=\"md:col-span-2\">
<div class=\"text-sm px-5 2xl:px-0\">
<h1 class=\"mt-5 md:mt-10 mb-10 text-4xl md:text-6xl\">Wissenswertes</h1>
</div>
</div>
</div>
</div>
</div>
<div class=\"container mt-20 mb-20\">
Leider konnten wir den gewünschten Themenbereich nicht finden. <a href=\"/themen\" class=\"text-blue-light\">Hier geht es zurück zur Übersicht</a>.
</div>
</div>
{% endif %}
{% endblock %}
", "views/themaOverview.html.twig", "/var/www/vhosts/radio-oberland.de/httpdocs/templates/views/themaOverview.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 2, "do" => 3, "set" => 32, "for" => 61, "include" => 63);
static $filters = array("replace" => 4, "escape" => 10, "raw" => 38, "length" => 67);
static $functions = array("pimcore_head_title" => 3, "pimcore_head_meta" => 4, "asset" => 11);
try {
$this->sandbox->checkSecurity(
['if', 'do', 'set', 'for', 'include'],
['replace', 'escape', 'raw', 'length'],
['pimcore_head_title', 'pimcore_head_meta', 'asset']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}