<?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/themaDetail.html.twig */
class __TwigTemplate_80ce0d850f461009287301476ed9885b 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/themaDetail.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/themaDetail.html.twig"));
// line 2
$context["categories"] = [];
// line 3
$context["mainCategory"] = null;
// line 4
if ( !(null === (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 4, $this->source); })()))) {
// line 5
$context["categories"] = twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 5, $this->source); })()), "bereiche", [], "any", false, false, true, 5);
// line 6
$this->env->getFunction('pimcore_head_title')->getCallable()((twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 6, $this->source); })()), "title", [], "any", false, false, true, 6) . " / Themen / Radio Oberland"));
// line 7
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["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 7, $this->source); })()), "title", [], "any", false, false, true, 7), ["\"" => "'"]) . " / Themen / Radio Oberland")], "method", false, false, true, 7);
// line 8
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:description", (twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 8, $this->source); })()), "excerpt", [], "any", false, false, true, 8), ["\"" => "'"]) . " / Themen / Radio Oberland")], "method", false, false, true, 8);
// line 9
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:type", "article"], "method", false, false, true, 9);
}
// line 11
if ((twig_length_filter($this->env, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 11, $this->source); })())) > 0)) {
// line 12
$context["mainCategory"] = twig_get_attribute($this->env, $this->source, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 12, $this->source); })()), 0, [], "array", false, false, true, 12);
}
// line 1
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "views/themaDetail.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 14
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 15
echo " ";
if ( !(null === (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 15, $this->source); })()))) {
// line 16
echo " ";
$context["hasImage"] = (twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 16, $this->source); })()), "image", [], "any", false, false, true, 16) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 16, $this->source); })()), "image", [], "any", false, false, true, 16)));
// line 17
echo " ";
$context["hasHeaderImage"] = (twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 17, $this->source); })()), "imageHeader", [], "any", false, false, true, 17) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 17, $this->source); })()), "imageHeader", [], "any", false, false, true, 17)));
// line 18
echo " ";
$context["ogImage"] = "";
// line 19
echo " ";
if ((isset($context["hasImage"]) || array_key_exists("hasImage", $context) ? $context["hasImage"] : (function () { throw new RuntimeError('Variable "hasImage" does not exist.', 19, $this->source); })())) {
// line 20
echo " ";
$context["thumbnail"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 20, $this->source); })()), "image", [], "any", false, false, true, 20), "getThumbnail", ["standardThumbnail"], "method", false, false, true, 20);
// line 21
echo " ";
$context["ogImage"] = ("https://radio-oberland.de" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["thumbnail"]) || array_key_exists("thumbnail", $context) ? $context["thumbnail"] : (function () { throw new RuntimeError('Variable "thumbnail" does not exist.', 21, $this->source); })()), "path", [], "any", false, false, true, 21), 21, $this->source));
// line 22
echo " ";
}
// line 23
echo " <div class=\"pimcore_area_content\">
<div>
";
// line 25
$context["bereich"] = null;
// line 26
echo " ";
if (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 26, $this->source); })()), "bereiche", [], "any", false, false, true, 26))) {
// line 27
echo " ";
$context["bereich"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 27, $this->source); })()), "bereiche", [], "any", false, false, true, 27), 0, [], "array", false, false, true, 27);
// line 28
echo " ";
}
// line 29
echo " <div class=\"py-5 overflow-hidden relative\"
";
// line 30
if ((isset($context["bereich"]) || array_key_exists("bereich", $context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.', 30, $this->source); })())) {
echo "style=\"background-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.', 30, $this->source); })()), "color", [], "any", false, false, true, 30)) ? (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.', 30, $this->source); })()), "color", [], "any", false, false, true, 30), "r", [], "any", false, false, true, 30)) . ",") . 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.', 30, $this->source); })()), "color", [], "any", false, false, true, 30), "g", [], "any", false, false, true, 30)) . ",") . 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.', 30, $this->source); })()), "color", [], "any", false, false, true, 30), "b", [], "any", false, false, true, 30)) . ")"), "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.', 30, $this->source); })()), "colorText", [], "any", false, false, true, 30)) ? (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.', 30, $this->source); })()), "colorText", [], "any", false, false, true, 30), "r", [], "any", false, false, true, 30)) . ",") . 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.', 30, $this->source); })()), "colorText", [], "any", false, false, true, 30), "g", [], "any", false, false, true, 30)) . ",") . 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.', 30, $this->source); })()), "colorText", [], "any", false, false, true, 30), "b", [], "any", false, false, true, 30)) . ")"), "html", null, true))) : (print ("#000000")));
echo "\">";
}
// line 31
echo " <div class=\"absolute left-0 top-0 bottom-0 right-0 pointer-events-none mix-blend-multiply\"><img src=\"";
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 33
echo " ";
// line 34
echo " ";
// line 35
echo " <div class=\"container relative px-5 text-xs\">
<a href=\"/themen\">Themen</a> »
";
// line 37
if ((((isset($context["bereich"]) || array_key_exists("bereich", $context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.', 37, $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.', 37, $this->source); })()), "parent", [], "any", false, false, true, 37)) && (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.', 37, $this->source); })()), "parent", [], "any", false, false, true, 37), "type", [], "any", false, false, true, 37) == "object"))) {
// line 38
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.', 38, $this->source); })()), "parent", [], "any", false, false, true, 38), "key", [], "any", false, false, true, 38), 38, $this->source), "html", null, true);
echo "\" class=\"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.', 38, $this->source); })()), "parent", [], "any", false, false, true, 38), "title", [], "any", false, false, true, 38), 38, $this->source), "html", null, true);
echo " »</a>
";
}
// line 40
echo " ";
if ((isset($context["bereich"]) || array_key_exists("bereich", $context) ? $context["bereich"] : (function () { throw new RuntimeError('Variable "bereich" does not exist.', 40, $this->source); })())) {
// line 41
echo " <a href=\"/themen/";
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.', 41, $this->source); })()), "key", [], "any", false, false, true, 41), 41, $this->source), "html", null, true);
echo "\" class=\"whitespace-nowrap\">";
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.', 41, $this->source); })()), "title", [], "any", false, false, true, 41), 41, $this->source), "html", null, true);
echo "</a>
";
}
// line 43
echo " </div>
</div>
</div>
";
// line 46
if ((((isset($context["hasHeaderImage"]) || array_key_exists("hasHeaderImage", $context) ? $context["hasHeaderImage"] : (function () { throw new RuntimeError('Variable "hasHeaderImage" does not exist.', 46, $this->source); })()) == false) && ((isset($context["hasImage"]) || array_key_exists("hasImage", $context) ? $context["hasImage"] : (function () { throw new RuntimeError('Variable "hasImage" does not exist.', 46, $this->source); })()) == false))) {
// line 47
echo " ";
// line 48
echo " ";
} else {
// line 49
echo " ";
if ((isset($context["hasHeaderImage"]) || array_key_exists("hasHeaderImage", $context) ? $context["hasHeaderImage"] : (function () { throw new RuntimeError('Variable "hasHeaderImage" does not exist.', 49, $this->source); })())) {
// line 50
echo " ";
$context["image"] = twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 50, $this->source); })()), "imageHeader", [], "any", false, false, true, 50);
// line 51
echo " ";
} else {
// line 52
echo " ";
$context["image"] = twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 52, $this->source); })()), "image", [], "any", false, false, true, 52);
// line 53
echo " ";
}
// line 54
echo " <div class=\"relative\">
<div class=\"container\" style=\"padding: 0\">
<div class=\"relative overflow-hidden\" style=\"max-height: 70vh\">
";
// line 57
if (((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 57, $this->source); })()) && !(null === (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 57, $this->source); })())))) {
// line 58
echo " ";
$context["thumbnail"] = twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 58, $this->source); })()), "getThumbnail", ["standardThumbnail"], "method", false, false, true, 58);
// line 59
echo " ";
$context["ogImage"] = ("https://radio-oberland.de" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["thumbnail"]) || array_key_exists("thumbnail", $context) ? $context["thumbnail"] : (function () { throw new RuntimeError('Variable "thumbnail" does not exist.', 59, $this->source); })()), "path", [], "any", false, false, true, 59), 59, $this->source));
// line 60
echo " ";
echo twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["thumbnail"]) || array_key_exists("thumbnail", $context) ? $context["thumbnail"] : (function () { throw new RuntimeError('Variable "thumbnail" does not exist.', 60, $this->source); })()), "html", [], "any", false, false, true, 60), 60, $this->source), ["<img" => "<img data-parallax=\"-0.5\" class=\"w-full h-full object-cover\" style=\"object-position: center 10%\""]);
echo "
";
}
// line 62
echo " </div>
</div>
</div>
";
}
// line 66
echo " <div class=\"container news-detail-container md:px-5 2xl:px-0\">
<div class=\"grid grid-cols-12 gap-5 border-b-[5px] border-blue-light mb-5 group\">
<div class=\"col-span-12 md:col-span-7 p-5 xl:p-0\">
";
// line 69
if ((isset($context["hasHeaderImage"]) || array_key_exists("hasHeaderImage", $context) ? $context["hasHeaderImage"] : (function () { throw new RuntimeError('Variable "hasHeaderImage" does not exist.', 69, $this->source); })())) {
// line 70
echo " ";
$context["image"] = twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 70, $this->source); })()), "imageHeader", [], "any", false, false, true, 70);
// line 71
echo " ";
} else {
// line 72
echo " ";
$context["image"] = twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 72, $this->source); })()), "image", [], "any", false, false, true, 72);
// line 73
echo " ";
}
// line 74
echo " ";
if (((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 74, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 74, $this->source); })()), "getMetadata", ["copyright"], "method", false, false, true, 74))) {
// line 75
echo " ";
$context["unsplash"] = twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 75, $this->source); })()), "getMetadata", ["unsplash"], "method", false, false, true, 75);
// line 76
echo " <div class=\"text-xs md:pt-5\">Bild ©
";
// line 77
if ((isset($context["unsplash"]) || array_key_exists("unsplash", $context) ? $context["unsplash"] : (function () { throw new RuntimeError('Variable "unsplash" does not exist.', 77, $this->source); })())) {
// line 78
echo " <a href=\"https://unsplash.com/photos/";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["unsplash"]) || array_key_exists("unsplash", $context) ? $context["unsplash"] : (function () { throw new RuntimeError('Variable "unsplash" does not exist.', 78, $this->source); })()), 78, $this->source), "html", null, true);
echo "?utm_source=radio_oberland&utm_medium=referral\" class=\"text-blue\" target=\"_blank\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 78, $this->source); })()), "getMetadata", ["copyright"], "method", false, false, true, 78), 78, $this->source), "html", null, true);
echo "</a>
";
} else {
// line 80
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 80, $this->source); })()), "getMetadata", ["copyright"], "method", false, false, true, 80), 80, $this->source), "html", null, true);
echo "
";
}
// line 82
echo " </div>
";
}
// line 84
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 84, $this->source); })()), "sponsor", [], "any", false, false, true, 84)) {
// line 85
echo " <div class=\"md:hidden shadow-card p-5 mt-5\">
";
// line 86
$context["linkWeb"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 86, $this->source); })()), "sponsor", [], "any", false, false, true, 86), "linkWeb", [], "any", false, false, true, 86) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 86, $this->source); })()), "sponsor", [], "any", false, false, true, 86), "linkWeb", [], "any", false, false, true, 86), "href", [], "any", false, false, true, 86))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 86, $this->source); })()), "sponsor", [], "any", false, false, true, 86), "linkWeb", [], "any", false, false, true, 86), "href", [], "any", false, false, true, 86)) : (""));
// line 87
echo " <span class=\"text-dark-blue font-bold uppercase text-xs\">Dieser Artikel wird präsentiert von</span>
<div class=\"mt-5\">
";
// line 89
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 89, $this->source); })()), "sponsor", [], "any", false, false, true, 89), "logo", [], "any", false, false, true, 89) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 89, $this->source); })()), "sponsor", [], "any", false, false, true, 89), "logo", [], "any", false, false, true, 89)))) {
// line 90
echo " <div>
";
// line 91
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 91, $this->source); })())) {
// line 92
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.', 92, $this->source); })()), 92, $this->source), "html", null, true);
echo "\" target=\"_blank\">
";
}
// line 94
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["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 94, $this->source); })()), "sponsor", [], "any", false, false, true, 94), "logo", [], "any", false, false, true, 94), "getThumbnail", ["standardThumbnail"], "method", false, false, true, 94), "html", [], "any", false, false, true, 94), 94, $this->source), ["<img" => "<img class=\"max-w-full inline-block\""]);
echo "
";
// line 95
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 95, $this->source); })())) {
// line 96
echo " </a>
";
}
// line 98
echo " </div>
";
} else {
// line 100
echo " ";
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 100, $this->source); })())) {
// line 101
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.', 101, $this->source); })()), 101, $this->source), "html", null, true);
echo "\" target=\"_blank\">
";
}
// line 103
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["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 103, $this->source); })()), "sponsor", [], "any", false, false, true, 103), "title", [], "any", false, false, true, 103), 103, $this->source), "html", null, true);
echo "
";
// line 104
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 104, $this->source); })())) {
// line 105
echo " </a>
";
}
// line 107
echo " ";
}
// line 108
echo " </div>
</div>
<div class=\"hidden md:block text-xs mt-5 text-right\">Werbefinanziert</div>
";
}
// line 112
echo " <h1 class=\"fade-in mt-10\">
";
// line 113
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 113, $this->source); })()), "title", [], "any", false, false, true, 113), 113, $this->source), "html", null, true);
echo "
</h1>
<h3 class=\"fade-in delay-100 mb-10\">
";
// line 116
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 116, $this->source); })()), "subTitle", [], "any", false, false, true, 116), 116, $this->source), "html", null, true);
echo "
</h3>
<div class=\"mt-10 mb-10 text-xs flex gap-5\">
<div class=\"text-gray-500\">
";
// line 120
$context["wordCount"] = twig_length_filter($this->env, twig_split_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 120, $this->source); })()), "content", [], "any", false, false, true, 120), 120, $this->source), " "));
// line 121
echo " ";
$context["duration"] = ((isset($context["wordCount"]) || array_key_exists("wordCount", $context) ? $context["wordCount"] : (function () { throw new RuntimeError('Variable "wordCount" does not exist.', 121, $this->source); })()) / 150);
// line 122
echo " <i class=\"icon-uhr-filled text-orange\"></i> Lesedauer ";
if (((isset($context["duration"]) || array_key_exists("duration", $context) ? $context["duration"] : (function () { throw new RuntimeError('Variable "duration" does not exist.', 122, $this->source); })()) < 1)) {
echo "< 1 Minute";
} else {
echo twig_escape_filter($this->env, twig_round($this->sandbox->ensureToStringAllowed((isset($context["duration"]) || array_key_exists("duration", $context) ? $context["duration"] : (function () { throw new RuntimeError('Variable "duration" does not exist.', 122, $this->source); })()), 122, $this->source), 0), "html", null, true);
echo " Minute";
if ((twig_round((isset($context["duration"]) || array_key_exists("duration", $context) ? $context["duration"] : (function () { throw new RuntimeError('Variable "duration" does not exist.', 122, $this->source); })()), 0) != 1)) {
echo "n";
}
}
// line 123
echo " ";
if ((twig_trim_filter(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 123, $this->source); })()), "source", [], "any", false, false, true, 123)) != "")) {
// line 124
echo " <br/>
<i class=\"icon-pen text-orange\"></i> Quelle: ";
// line 125
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 125, $this->source); })()), "source", [], "any", false, false, true, 125), 125, $this->source), "html", null, true);
echo "
";
}
// line 127
echo " </div>
<div class=\"flex-1 text-right text-gray-500\">
<i class=\"icon-uhr text-orange\"></i> ";
// line 129
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 129, $this->source); })()), "articleDate", [], "any", false, false, true, 129), 129, $this->source), "d.m.Y", "Europe/Berlin"), "html", null, true);
echo "
</div>
</div>
<div class=\"mt-10 mb-5 textcontent\">
";
// line 133
if (twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 133, $this->source); })()), "content", [], "any", false, false, true, 133)) {
// line 134
echo " ";
echo $this->extensions['App\Twig\PimcoreObjectExtension']->pimcoreObject($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 134, $this->source); })()), "content", [], "any", false, false, true, 134), 134, $this->source));
echo "
";
}
// line 136
echo " </div>
";
// line 137
if ((twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 137, $this->source); })()), "imageGallery", [], "any", false, false, true, 137) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 137, $this->source); })()), "imageGallery", [], "any", false, false, true, 137), "items", [], "any", false, false, true, 137)) > 0))) {
// line 138
echo " <div class=\"mt-5 mb-10\">
<div class=\"swiper grid-columns-slider custom-swiper\">
<div class=\"swiper-wrapper\">
";
// line 141
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 141, $this->source); })()), "imageGallery", [], "any", false, false, true, 141), "items", [], "any", false, false, true, 141));
foreach ($context['_seq'] as $context["_key"] => $context["col"]) {
// line 142
echo " <div class=\"swiper-slide\">
<div class=\"grid-columns__slide relative\">
";
// line 144
$context["thumbnail"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["col"], "image", [], "any", false, false, true, 144), "thumbnail", ["website"], "method", false, false, true, 144);
// line 145
echo " ";
if (((isset($context["ogImage"]) || array_key_exists("ogImage", $context) ? $context["ogImage"] : (function () { throw new RuntimeError('Variable "ogImage" does not exist.', 145, $this->source); })()) == "")) {
// line 146
echo " ";
$context["ogImage"] = ("https://radio-oberland.de" . $this->sandbox->ensureToStringAllowed((isset($context["thumbnail"]) || array_key_exists("thumbnail", $context) ? $context["thumbnail"] : (function () { throw new RuntimeError('Variable "thumbnail" does not exist.', 146, $this->source); })()), 146, $this->source));
// line 147
echo " ";
}
// line 148
echo " ";
$context["alt"] = "";
// line 149
echo " ";
$context["copyright"] = "";
// line 150
echo " ";
$context["unsplash"] = "";
// line 151
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["col"], "image", [], "any", false, false, true, 151), "hasMetadata", [], "any", false, false, true, 151)) {
// line 152
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["col"], "image", [], "any", false, false, true, 152), "metadata", [], "any", false, false, true, 152));
foreach ($context['_seq'] as $context["_key"] => $context["meta"]) {
// line 153
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["meta"], "name", [], "any", false, false, true, 153) == "copyright")) {
// line 154
echo " ";
$context["copyright"] = twig_get_attribute($this->env, $this->source, $context["meta"], "data", [], "any", false, false, true, 154);
// line 155
echo " ";
}
// line 156
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["meta"], "name", [], "any", false, false, true, 156) == "unsplash")) {
// line 157
echo " ";
$context["unsplash"] = twig_get_attribute($this->env, $this->source, $context["meta"], "data", [], "any", false, false, true, 157);
// line 158
echo " ";
}
// line 159
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["meta"], "name", [], "any", false, false, true, 159) == "title")) {
// line 160
echo " ";
$context["alt"] = twig_get_attribute($this->env, $this->source, $context["meta"], "data", [], "any", false, false, true, 160);
// line 161
echo " ";
}
// line 162
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['meta'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 163
echo " ";
}
// line 164
echo " ";
// line 165
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["thumbnail"]) || array_key_exists("thumbnail", $context) ? $context["thumbnail"] : (function () { throw new RuntimeError('Variable "thumbnail" does not exist.', 165, $this->source); })()), 165, $this->source), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["alt"]) || array_key_exists("alt", $context) ? $context["alt"] : (function () { throw new RuntimeError('Variable "alt" does not exist.', 165, $this->source); })()), 165, $this->source), "html", null, true);
echo "\" width=\"100%\" />
";
// line 166
if ((isset($context["copyright"]) || array_key_exists("copyright", $context) ? $context["copyright"] : (function () { throw new RuntimeError('Variable "copyright" does not exist.', 166, $this->source); })())) {
// line 167
echo " <div class=\"pt-3\">
";
// line 168
if ((isset($context["unsplash"]) || array_key_exists("unsplash", $context) ? $context["unsplash"] : (function () { throw new RuntimeError('Variable "unsplash" does not exist.', 168, $this->source); })())) {
// line 169
echo " <div class=\"text-xs\">
Bild ©
<a href=\"https://unsplash.com/photos/";
// line 171
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["unsplash"]) || array_key_exists("unsplash", $context) ? $context["unsplash"] : (function () { throw new RuntimeError('Variable "unsplash" does not exist.', 171, $this->source); })()), 171, $this->source), "html", null, true);
echo "?utm_source=radio_oberland&utm_medium=referral\" class=\"text-blue\" target=\"_blank\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["copyright"]) || array_key_exists("copyright", $context) ? $context["copyright"] : (function () { throw new RuntimeError('Variable "copyright" does not exist.', 171, $this->source); })()), 171, $this->source), "html", null, true);
echo "}</a>
</div>
";
} else {
// line 174
echo " ";
if ((isset($context["alt"]) || array_key_exists("alt", $context) ? $context["alt"] : (function () { throw new RuntimeError('Variable "alt" does not exist.', 174, $this->source); })())) {
// line 175
echo " <div class=\"font-sm mb-2 text-gray-500\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["alt"]) || array_key_exists("alt", $context) ? $context["alt"] : (function () { throw new RuntimeError('Variable "alt" does not exist.', 175, $this->source); })()), 175, $this->source), "html", null, true);
echo "</div>
";
}
// line 177
echo " <div class=\"text-xs\">Bild © ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["copyright"]) || array_key_exists("copyright", $context) ? $context["copyright"] : (function () { throw new RuntimeError('Variable "copyright" does not exist.', 177, $this->source); })()), 177, $this->source), "html", null, true);
echo "</div>
";
}
// line 179
echo " </div>
";
}
// line 181
echo " </div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['col'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 184
echo " </div>
</div>
</div>
";
}
// line 188
echo " ";
if ((isset($context["ogImage"]) || array_key_exists("ogImage", $context) ? $context["ogImage"] : (function () { throw new RuntimeError('Variable "ogImage" does not exist.', 188, $this->source); })())) {
// line 189
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:image", (isset($context["ogImage"]) || array_key_exists("ogImage", $context) ? $context["ogImage"] : (function () { throw new RuntimeError('Variable "ogImage" does not exist.', 189, $this->source); })())], "method", false, false, true, 189);
// line 190
echo " ";
}
// line 191
echo " </div>
<div class=\"col-span-12 md:col-span-4 md:col-start-9 fade-in delay-300\">
<div class=\"";
// line 193
if ((isset($context["hasImage"]) || array_key_exists("hasImage", $context) ? $context["hasImage"] : (function () { throw new RuntimeError('Variable "hasImage" does not exist.', 193, $this->source); })())) {
echo "md:-translate-y-20";
} else {
echo "mt-10 mb-10";
}
echo " text-sm p-5 md:p-0\">
<div class=\"shadow-card bg-white\">
<div class=\"p-5\">
";
// line 196
if (twig_length_filter($this->env, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 196, $this->source); })()))) {
// line 197
echo " <div class=\"mb-5\">
<div class=\"text-dark-blue font-bold uppercase mb-5\">Themen</div>
";
// line 199
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 199, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 200
echo " ";
$context["parent"] = twig_get_attribute($this->env, $this->source, $context["category"], "parent", [], "any", false, false, true, 200);
// line 201
echo " <div class=\"text-black text-xs uppercase text-no-wrap mr-5\">
";
// line 202
if (((isset($context["parent"]) || array_key_exists("parent", $context) ? $context["parent"] : (function () { throw new RuntimeError('Variable "parent" does not exist.', 202, $this->source); })()) && (twig_get_attribute($this->env, $this->source, (isset($context["parent"]) || array_key_exists("parent", $context) ? $context["parent"] : (function () { throw new RuntimeError('Variable "parent" does not exist.', 202, $this->source); })()), "type", [], "any", false, false, true, 202) == "object"))) {
// line 203
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, $context["category"], "parent", [], "any", false, false, true, 203), "key", [], "any", false, false, true, 203), 203, $this->source), "html", null, true);
echo "\" class=\"text-blue-light hover:text-black\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "parent", [], "any", false, false, true, 203), "title", [], "any", false, false, true, 203), 203, $this->source), "html", null, true);
echo "</a> »
";
}
// line 205
echo " <a href=\"/themen/";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "key", [], "any", false, false, true, 205), 205, $this->source), "html", null, true);
echo "\" class=\"text-blue-light hover:text-black font-bold\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "title", [], "any", false, false, true, 205), 205, $this->source), "html", null, true);
echo "</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 208
echo " </div>
";
}
// line 210
echo " <div>
<span class=\"text-dark-blue font-bold uppercase\">Teilen</span>
<a href=\"javascript:window.copy2clipboard(document.location.href)\" class=\"link inline-block ml-2\" title=\"Link kopieren\"><i class=\"icon-link\"></i></a>
<a href=\"mailto:?subject=Interessante Meldung auf Radio Oberland&body=schau mal hier https://www.radio-oberland.de";
// line 213
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 213, $this->source); })()), "path", [], "any", false, false, true, 213), 213, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 213, $this->source); })()), "key", [], "any", false, false, true, 213), 213, $this->source), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 213, $this->source); })()), "key", [], "any", false, false, true, 213), 213, $this->source), "html", null, true);
echo "\" class=\"link inline-block ml-2\" title=\"Per Mail teilen\"><i class=\"icon-mail\"></i></a>
</div>
";
// line 215
if (twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 215, $this->source); })()), "sponsor", [], "any", false, false, true, 215)) {
// line 216
echo " ";
$context["linkWeb"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 216, $this->source); })()), "sponsor", [], "any", false, false, true, 216), "linkWeb", [], "any", false, false, true, 216) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 216, $this->source); })()), "sponsor", [], "any", false, false, true, 216), "linkWeb", [], "any", false, false, true, 216), "href", [], "any", false, false, true, 216))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 216, $this->source); })()), "sponsor", [], "any", false, false, true, 216), "linkWeb", [], "any", false, false, true, 216), "href", [], "any", false, false, true, 216)) : (""));
// line 217
echo " <div class=\"mt-5\">
<span class=\"text-dark-blue font-bold uppercase\">Dieser Artikel wird präsentiert von</span>
<div class=\"mt-5\">
";
// line 220
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 220, $this->source); })()), "sponsor", [], "any", false, false, true, 220), "logo", [], "any", false, false, true, 220) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 220, $this->source); })()), "sponsor", [], "any", false, false, true, 220), "logo", [], "any", false, false, true, 220)))) {
// line 221
echo " <div>
";
// line 222
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 222, $this->source); })())) {
// line 223
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.', 223, $this->source); })()), 223, $this->source), "html", null, true);
echo "\" target=\"_blank\">
";
}
// line 225
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["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 225, $this->source); })()), "sponsor", [], "any", false, false, true, 225), "logo", [], "any", false, false, true, 225), "getThumbnail", ["standardThumbnail"], "method", false, false, true, 225), "html", [], "any", false, false, true, 225), 225, $this->source), ["<img" => "<img class=\"max-w-full inline-block\""]);
echo "
";
// line 226
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 226, $this->source); })())) {
// line 227
echo " </a>
";
}
// line 229
echo " </div>
";
} else {
// line 231
echo " ";
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 231, $this->source); })())) {
// line 232
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.', 232, $this->source); })()), 232, $this->source), "html", null, true);
echo "\" target=\"_blank\">
";
}
// line 234
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["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 234, $this->source); })()), "sponsor", [], "any", false, false, true, 234), "title", [], "any", false, false, true, 234), 234, $this->source), "html", null, true);
echo "
";
// line 235
if ((isset($context["linkWeb"]) || array_key_exists("linkWeb", $context) ? $context["linkWeb"] : (function () { throw new RuntimeError('Variable "linkWeb" does not exist.', 235, $this->source); })())) {
// line 236
echo " </a>
";
}
// line 238
echo " ";
}
// line 239
echo " </div>
</div>
";
}
// line 242
echo " </div>
</div>
</div>
</div>
";
// line 246
if ((twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 246, $this->source); })()), "snippets", [], "any", false, false, true, 246) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 246, $this->source); })()), "snippets", [], "any", false, false, true, 246)) > 0))) {
// line 247
echo " <div class=\"col-span-12 px-5 md:px-0\">
<div class=\"grid gap-5 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mb-5\">
";
// line 249
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 249, $this->source); })()), "snippets", [], "any", false, false, true, 249));
foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
// line 250
echo " <div>
";
// line 252
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->sandbox->ensureToStringAllowed($context["entry"], 252, $this->source));
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 255
echo " </div>
</div>
";
}
// line 258
echo " </div>
<div class=\"mb-10 p-5 md:p-0\">
";
// line 261
echo " </div>
";
// line 263
echo " ";
// line 264
echo " ";
// line 265
echo " ";
// line 266
echo " ";
// line 267
echo " ";
// line 268
echo " ";
// line 269
echo " ";
// line 270
echo " ";
// line 271
echo " ";
// line 272
echo " ";
// line 273
echo " </div>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"Article\",
\"mainEntityOfPage\": {
\"@type\": \"WebPage\",
\"@id\": \"https://radio-oberland.de";
// line 280
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 280, $this->source); })()), "path", [], "any", false, false, true, 280), 280, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 280, $this->source); })()), "key", [], "any", false, false, true, 280), 280, $this->source), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 280, $this->source); })()), "key", [], "any", false, false, true, 280), 280, $this->source), "html", null, true);
echo "\"
},
\"headline\": \"";
// line 282
echo twig_escape_filter($this->env, twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 282, $this->source); })()), "title", [], "any", false, false, true, 282), 282, $this->source), ["\"" => "'"]), "html", null, true);
echo "\",
\"image\": [],
\"datePublished\": \"";
// line 284
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 284, $this->source); })()), "articleDate", [], "any", false, false, true, 284), 284, $this->source), "c", "Europe/Berlin"), "html", null, true);
echo "\",
\"dateModified\": \"";
// line 285
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 285, $this->source); })()), "modificationDate", [], "any", false, false, true, 285), 285, $this->source), "c", "Europe/Berlin"), "html", null, true);
echo "\",
\"author\": {
\"@type\": \"Person\",
\"name\": \"";
// line 288
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 288, $this->source); })()), "source", [], "any", false, false, true, 288), 288, $this->source), "html", null, true);
echo "\"
},
\"publisher\": {
\"@type\": \"Organization\",
\"name\": \"Radio Oberland\",
\"logo\": {
\"@type\": \"ImageObject\",
\"url\": \"https://radio-oberland.de/favicon.png\"
}
},
\"description\": \"";
// line 298
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["dataObject"]) || array_key_exists("dataObject", $context) ? $context["dataObject"] : (function () { throw new RuntimeError('Variable "dataObject" does not exist.', 298, $this->source); })()), "excerpt", [], "any", false, false, true, 298), 298, $this->source), "html", null, true);
echo "\"
}
</script>
<div class=\"container mt-10\">
<h3 class=\"text-3xl lg:mb-10 px-5 lg:px-0 \">WEITERE ARTIKEL</h3>
<div class=\"swiper customer-slider swiper-initialized swiper-horizontal swiper-pointer-events\" data-breakpoints='{ \"320\": { \"slidesPerView\": \"auto\" }, \"980\": { \"slidesPerView\": 3 } }'>
<div class=\"swiper-wrapper\">
";
// line 306
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["others"]) || array_key_exists("others", $context) ? $context["others"] : (function () { throw new RuntimeError('Variable "others" does not exist.', 306, $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 307
echo " ";
$context["forcedBereich"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["article"], "bereiche", [], "any", false, false, true, 307), 0, [], "array", false, false, true, 307);
// line 308
echo " ";
$context["fullHeight"] = true;
// line 309
echo " <div class=\"swiper-slide themen-slide h-full py-10\">
";
// line 310
$this->loadTemplate("includes/themenPreview.html.twig", "views/themaDetail.html.twig", 310)->display($context);
// line 311
echo " </div>
";
++$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 313
echo " </div>
</div>
</div>
</div>
";
} else {
// line 318
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 320
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 322
echo " ";
// line 323
echo " ";
// line 324
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 Artikel 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/themaDetail.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 874 => 324, 872 => 323, 870 => 322, 866 => 320, 862 => 318, 855 => 313, 840 => 311, 838 => 310, 835 => 309, 832 => 308, 829 => 307, 812 => 306, 801 => 298, 788 => 288, 782 => 285, 778 => 284, 773 => 282, 765 => 280, 756 => 273, 754 => 272, 752 => 271, 750 => 270, 748 => 269, 746 => 268, 744 => 267, 742 => 266, 740 => 265, 738 => 264, 736 => 263, 733 => 261, 729 => 258, 724 => 255, 714 => 252, 711 => 250, 707 => 249, 703 => 247, 701 => 246, 695 => 242, 690 => 239, 687 => 238, 683 => 236, 681 => 235, 676 => 234, 670 => 232, 667 => 231, 663 => 229, 659 => 227, 657 => 226, 652 => 225, 646 => 223, 644 => 222, 641 => 221, 639 => 220, 634 => 217, 631 => 216, 629 => 215, 621 => 213, 616 => 210, 612 => 208, 600 => 205, 592 => 203, 590 => 202, 587 => 201, 584 => 200, 580 => 199, 576 => 197, 574 => 196, 564 => 193, 560 => 191, 557 => 190, 554 => 189, 551 => 188, 545 => 184, 537 => 181, 533 => 179, 527 => 177, 521 => 175, 518 => 174, 510 => 171, 506 => 169, 504 => 168, 501 => 167, 499 => 166, 492 => 165, 490 => 164, 487 => 163, 481 => 162, 478 => 161, 475 => 160, 472 => 159, 469 => 158, 466 => 157, 463 => 156, 460 => 155, 457 => 154, 454 => 153, 449 => 152, 446 => 151, 443 => 150, 440 => 149, 437 => 148, 434 => 147, 431 => 146, 428 => 145, 426 => 144, 422 => 142, 418 => 141, 413 => 138, 411 => 137, 408 => 136, 402 => 134, 400 => 133, 393 => 129, 389 => 127, 384 => 125, 381 => 124, 378 => 123, 367 => 122, 364 => 121, 362 => 120, 355 => 116, 349 => 113, 346 => 112, 340 => 108, 337 => 107, 333 => 105, 331 => 104, 326 => 103, 320 => 101, 317 => 100, 313 => 98, 309 => 96, 307 => 95, 302 => 94, 296 => 92, 294 => 91, 291 => 90, 289 => 89, 285 => 87, 283 => 86, 280 => 85, 277 => 84, 273 => 82, 267 => 80, 259 => 78, 257 => 77, 254 => 76, 251 => 75, 248 => 74, 245 => 73, 242 => 72, 239 => 71, 236 => 70, 234 => 69, 229 => 66, 223 => 62, 217 => 60, 214 => 59, 211 => 58, 209 => 57, 204 => 54, 201 => 53, 198 => 52, 195 => 51, 192 => 50, 189 => 49, 186 => 48, 184 => 47, 182 => 46, 177 => 43, 169 => 41, 166 => 40, 158 => 38, 156 => 37, 152 => 35, 150 => 34, 148 => 33, 143 => 31, 135 => 30, 132 => 29, 129 => 28, 126 => 27, 123 => 26, 121 => 25, 117 => 23, 114 => 22, 111 => 21, 108 => 20, 105 => 19, 102 => 18, 99 => 17, 96 => 16, 93 => 15, 83 => 14, 72 => 1, 69 => 12, 67 => 11, 64 => 9, 62 => 8, 60 => 7, 58 => 6, 56 => 5, 54 => 4, 52 => 3, 50 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layouts/layout.html.twig' %}
{% set categories = [] %}
{% set mainCategory = null %}
{% if dataObject is not null %}
{% set categories = dataObject.bereiche %}
{% do pimcore_head_title(dataObject.title ~ ' / Themen / Radio Oberland') %}
{% do pimcore_head_meta().setProperty('og:title', dataObject.title | replace({ '\"': \"'\"}) ~ ' / Themen / Radio Oberland') %}
{% do pimcore_head_meta().setProperty('og:description', dataObject.excerpt | replace({ '\"': \"'\" }) ~ ' / Themen / Radio Oberland') %}
{% do pimcore_head_meta().setProperty('og:type', 'article') %}
{% endif %}
{% if categories | length > 0 %}
{% set mainCategory = categories[0] %}
{% endif %}
{% block content %}
{% if dataObject is not null %}
{% set hasImage = dataObject.image and dataObject.image is not null %}
{% set hasHeaderImage = dataObject.imageHeader and dataObject.imageHeader is not null %}
{% set ogImage = '' %}
{% if hasImage %}
{% set thumbnail = dataObject.image.getThumbnail('standardThumbnail') %}
{% set ogImage = 'https://radio-oberland.de' ~ thumbnail.path %}
{% endif %}
<div class=\"pimcore_area_content\">
<div>
{% set bereich = null %}
{% if dataObject.bereiche | length %}
{% set bereich = dataObject.bereiche[0] %}
{% endif %}
<div class=\"py-5 overflow-hidden relative\"
{% if bereich %}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' }}\">{% endif %}
<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 px-5 text-xs\">
<a href=\"/themen\">Themen</a> »
{% if bereich and bereich.parent and bereich.parent.type == 'object' %}
<a href=\"/themen/{{ bereich.parent.key }}\" class=\"whitespace-nowrap\">{{ bereich.parent.title }} »</a>
{% endif %}
{% if bereich %}
<a href=\"/themen/{{ bereich.key }}\" class=\"whitespace-nowrap\">{{ bereich.title }}</a>
{% endif %}
</div>
</div>
</div>
{% if hasHeaderImage == false and hasImage == false %}
{# none, wir hatten hier mal ein filler-bild #}
{% else %}
{% if hasHeaderImage %}
{% set image = dataObject.imageHeader %}
{% else %}
{% set image = dataObject.image %}
{% endif %}
<div class=\"relative\">
<div class=\"container\" style=\"padding: 0\">
<div class=\"relative overflow-hidden\" style=\"max-height: 70vh\">
{% if image and image is not null %}
{% set thumbnail = image.getThumbnail('standardThumbnail') %}
{% set ogImage = 'https://radio-oberland.de' ~ thumbnail.path %}
{{ thumbnail.html | replace({ '<img': '<img data-parallax=\"-0.5\" class=\"w-full h-full object-cover\" style=\"object-position: center 10%\"' }) | raw }}
{% endif %}
</div>
</div>
</div>
{% endif %}
<div class=\"container news-detail-container md:px-5 2xl:px-0\">
<div class=\"grid grid-cols-12 gap-5 border-b-[5px] border-blue-light mb-5 group\">
<div class=\"col-span-12 md:col-span-7 p-5 xl:p-0\">
{% if hasHeaderImage %}
{% set image = dataObject.imageHeader %}
{% else %}
{% set image = dataObject.image %}
{% endif %}
{% if image and image.getMetadata('copyright') %}
{% set unsplash = image.getMetadata('unsplash') %}
<div class=\"text-xs md:pt-5\">Bild ©
{% if unsplash %}
<a href=\"https://unsplash.com/photos/{{ unsplash }}?utm_source=radio_oberland&utm_medium=referral\" class=\"text-blue\" target=\"_blank\">{{ image.getMetadata('copyright') }}</a>
{% else %}
{{ image.getMetadata('copyright') }}
{% endif %}
</div>
{% endif %}
{% if dataObject.sponsor %}
<div class=\"md:hidden shadow-card p-5 mt-5\">
{% set linkWeb = dataObject.sponsor.linkWeb and dataObject.sponsor.linkWeb.href ? dataObject.sponsor.linkWeb.href : '' %}
<span class=\"text-dark-blue font-bold uppercase text-xs\">Dieser Artikel wird präsentiert von</span>
<div class=\"mt-5\">
{% if dataObject.sponsor.logo and dataObject.sponsor.logo is not null %}
<div>
{% if linkWeb %}
<a href=\"{{ linkWeb }}\" target=\"_blank\">
{% endif %}
{{ dataObject.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 %}
{{ dataObject.sponsor.title }}
{% if linkWeb %}
</a>
{% endif %}
{% endif %}
</div>
</div>
<div class=\"hidden md:block text-xs mt-5 text-right\">Werbefinanziert</div>
{% endif %}
<h1 class=\"fade-in mt-10\">
{{ dataObject.title }}
</h1>
<h3 class=\"fade-in delay-100 mb-10\">
{{ dataObject.subTitle }}
</h3>
<div class=\"mt-10 mb-10 text-xs flex gap-5\">
<div class=\"text-gray-500\">
{% set wordCount = dataObject.content | split(' ') | length %}
{% set duration = wordCount / 150 %}
<i class=\"icon-uhr-filled text-orange\"></i> Lesedauer {% if duration < 1 %}< 1 Minute{% else %}{{ duration | round(0) }} Minute{% if duration | round(0) != 1 %}n{% endif %}{% endif %}
{% if dataObject.source | trim != '' %}
<br/>
<i class=\"icon-pen text-orange\"></i> Quelle: {{ dataObject.source }}
{% endif %}
</div>
<div class=\"flex-1 text-right text-gray-500\">
<i class=\"icon-uhr text-orange\"></i> {{ dataObject.articleDate | date('d.m.Y', \"Europe/Berlin\") }}
</div>
</div>
<div class=\"mt-10 mb-5 textcontent\">
{% if dataObject.content %}
{{ dataObject.content | pimcoreObject | raw }}
{% endif %}
</div>
{% if dataObject.imageGallery and dataObject.imageGallery.items|length > 0 %}
<div class=\"mt-5 mb-10\">
<div class=\"swiper grid-columns-slider custom-swiper\">
<div class=\"swiper-wrapper\">
{% for col in dataObject.imageGallery.items %}
<div class=\"swiper-slide\">
<div class=\"grid-columns__slide relative\">
{% set thumbnail = col.image.thumbnail('website') %}
{% if ogImage == '' %}
{% set ogImage = 'https://radio-oberland.de' ~ thumbnail %}
{% endif %}
{% set alt = '' %}
{% set copyright = '' %}
{% set unsplash = '' %}
{% if col.image.hasMetadata %}
{% for meta in col.image.metadata %}
{% if meta.name == 'copyright' %}
{% set copyright = meta.data %}
{% endif %}
{% if meta.name == 'unsplash' %}
{% set unsplash = meta.data %}
{% endif %}
{% if meta.name == 'title' %}
{% set alt = meta.data %}
{% endif %}
{% endfor %}
{% endif %}
{# {{ dump(col.image) }}#}
<img src=\"{{ thumbnail }}\" alt=\"{{ alt }}\" width=\"100%\" />
{% if copyright %}
<div class=\"pt-3\">
{% if unsplash %}
<div class=\"text-xs\">
Bild ©
<a href=\"https://unsplash.com/photos/{{ unsplash }}?utm_source=radio_oberland&utm_medium=referral\" class=\"text-blue\" target=\"_blank\">{{ copyright }}}</a>
</div>
{% else %}
{% if alt %}
<div class=\"font-sm mb-2 text-gray-500\">{{ alt }}</div>
{% endif %}
<div class=\"text-xs\">Bild © {{ copyright }}</div>
{% endif %}
</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% if ogImage %}
{% do pimcore_head_meta().setProperty('og:image', ogImage) %}
{% endif %}
</div>
<div class=\"col-span-12 md:col-span-4 md:col-start-9 fade-in delay-300\">
<div class=\"{% if hasImage %}md:-translate-y-20{% else %}mt-10 mb-10{% endif %} text-sm p-5 md:p-0\">
<div class=\"shadow-card bg-white\">
<div class=\"p-5\">
{% if categories | length %}
<div class=\"mb-5\">
<div class=\"text-dark-blue font-bold uppercase mb-5\">Themen</div>
{% for category in categories %}
{% set parent = category.parent %}
<div class=\"text-black text-xs uppercase text-no-wrap mr-5\">
{% if parent and parent.type == 'object' %}
<a href=\"/themen/{{ category.parent.key }}\" class=\"text-blue-light hover:text-black\">{{ category.parent.title }}</a> »
{% endif %}
<a href=\"/themen/{{ category.key }}\" class=\"text-blue-light hover:text-black font-bold\">{{ category.title }}</a>
</div>
{% endfor %}
</div>
{% endif %}
<div>
<span class=\"text-dark-blue font-bold uppercase\">Teilen</span>
<a href=\"javascript:window.copy2clipboard(document.location.href)\" class=\"link inline-block ml-2\" title=\"Link kopieren\"><i class=\"icon-link\"></i></a>
<a href=\"mailto:?subject=Interessante Meldung auf Radio Oberland&body=schau mal hier https://www.radio-oberland.de{{ document.path }}{{ document.key }}/{{ dataObject.key }}\" class=\"link inline-block ml-2\" title=\"Per Mail teilen\"><i class=\"icon-mail\"></i></a>
</div>
{% if dataObject.sponsor %}
{% set linkWeb = dataObject.sponsor.linkWeb and dataObject.sponsor.linkWeb.href ? dataObject.sponsor.linkWeb.href : '' %}
<div class=\"mt-5\">
<span class=\"text-dark-blue font-bold uppercase\">Dieser Artikel wird präsentiert von</span>
<div class=\"mt-5\">
{% if dataObject.sponsor.logo and dataObject.sponsor.logo is not null %}
<div>
{% if linkWeb %}
<a href=\"{{ linkWeb }}\" target=\"_blank\">
{% endif %}
{{ dataObject.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 %}
{{ dataObject.sponsor.title }}
{% if linkWeb %}
</a>
{% endif %}
{% endif %}
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% if dataObject.snippets and dataObject.snippets | length > 0 %}
<div class=\"col-span-12 px-5 md:px-0\">
<div class=\"grid gap-5 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mb-5\">
{% for entry in dataObject.snippets %}
<div>
{# {{ dump(entry) }}#}
{{ render(entry) }}
</div>
{% endfor %}
</div>
</div>
{% endif %}
</div>
<div class=\"mb-10 p-5 md:p-0\">
{# <a href=\"/radio/news\" class=\"font-bold uppercase text-sm\"><i class=\"icon-arrow-left\"></i> Zur Übersicht</a>#}
</div>
{# <div class=\"mt-20 mb-20\">#}
{# <div class=\"h2 font-mont-heavy mt-0 mb-5 fade-in uppercase p-5 xl:p-0\">Weitere Artikel</div>#}
{# <div class=\"vue-app\">#}
{# {% set topics = dataObject.topic|join(',')|url_encode %}#}
{# {% set category = dataObject.category|url_encode %}#}
{# {% set query = 'notId=' ~ dataObject.id ~ '&limit=8&topic=' ~ topics ~ '&category=' ~ dataObject.category %}#}
{# <articles-related query=\"{{ query }}\"></articles-related>#}
{# </div>#}
{# </div>#}
{# {{ dump(document) }}#}
{# {{ dump(dataObject) }}#}
</div>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"Article\",
\"mainEntityOfPage\": {
\"@type\": \"WebPage\",
\"@id\": \"https://radio-oberland.de{{ document.path }}{{ document.key }}/{{ dataObject.key }}\"
},
\"headline\": \"{{ dataObject.title | replace({ '\"': \"'\" }) }}\",
\"image\": [],
\"datePublished\": \"{{ dataObject.articleDate | date(\"c\", \"Europe/Berlin\") }}\",
\"dateModified\": \"{{ dataObject.modificationDate | date(\"c\", \"Europe/Berlin\") }}\",
\"author\": {
\"@type\": \"Person\",
\"name\": \"{{ dataObject.source }}\"
},
\"publisher\": {
\"@type\": \"Organization\",
\"name\": \"Radio Oberland\",
\"logo\": {
\"@type\": \"ImageObject\",
\"url\": \"https://radio-oberland.de/favicon.png\"
}
},
\"description\": \"{{ dataObject.excerpt }}\"
}
</script>
<div class=\"container mt-10\">
<h3 class=\"text-3xl lg:mb-10 px-5 lg:px-0 \">WEITERE ARTIKEL</h3>
<div class=\"swiper customer-slider swiper-initialized swiper-horizontal swiper-pointer-events\" data-breakpoints='{ \"320\": { \"slidesPerView\": \"auto\" }, \"980\": { \"slidesPerView\": 3 } }'>
<div class=\"swiper-wrapper\">
{% for index, article in others %}
{% set forcedBereich = article.bereiche[0] %}
{% set fullHeight = true %}
<div class=\"swiper-slide themen-slide h-full py-10\">
{% include 'includes/themenPreview.html.twig' %}
</div>
{% endfor %}
</div>
</div>
</div>
</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 Artikel nicht finden. <a href=\"/themen\" class=\"text-blue-light\">Hier geht es zurück zur Übersicht</a>.
</div>
</div>
{% endif %}
{% endblock %}
", "views/themaDetail.html.twig", "/var/www/vhosts/radio-oberland.de/httpdocs/templates/views/themaDetail.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 2, "if" => 4, "do" => 6, "for" => 141, "include" => 310);
static $filters = array("replace" => 7, "length" => 11, "escape" => 30, "raw" => 60, "split" => 120, "round" => 122, "trim" => 123, "date" => 129, "pimcoreObject" => 134);
static $functions = array("pimcore_head_title" => 6, "pimcore_head_meta" => 7, "asset" => 31, "render" => 252);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'do', 'for', 'include'],
['replace', 'length', 'escape', 'raw', 'split', 'round', 'trim', 'date', 'pimcoreObject'],
['pimcore_head_title', 'pimcore_head_meta', 'asset', 'render']
);
} 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;
}
}
}