<?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;
/* includes/themenPreview.html.twig */
class __TwigTemplate_28776eb3d3394b080ccdbeb476675cfe extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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", "includes/themenPreview.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/themenPreview.html.twig"));
// line 1
$context["bereichBg"] = "#333333";
// line 2
$context["bereichColor"] = "#ffffff";
// line 3
$context["bereichTitle"] = "";
// line 4
if ((isset($context["forcedBereich"]) || array_key_exists("forcedBereich", $context) ? $context["forcedBereich"] : (function () { throw new RuntimeError('Variable "forcedBereich" does not exist.', 4, $this->source); })())) {
// line 5
echo " ";
$context["bereichTitle"] = 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.', 5, $this->source); })()), "title", [], "any", false, false, true, 5);
// line 6
echo " ";
if ((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.', 6, $this->source); })()), "color", [], "any", false, false, true, 6) && !(null === 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.', 6, $this->source); })()), "color", [], "any", false, false, true, 6)))) {
// line 7
echo " ";
$context["bereichBg"] = (((((("rgb(" . $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["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 7, $this->source); })()), "bereiche", [], "any", false, false, true, 7), 0, [], "array", false, false, true, 7), "color", [], "any", false, false, true, 7), "r", [], "any", false, false, true, 7), 7, $this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 7, $this->source); })()), "color", [], "any", false, false, true, 7), "g", [], "any", false, false, true, 7), 7, $this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 7, $this->source); })()), "color", [], "any", false, false, true, 7), "b", [], "any", false, false, true, 7), 7, $this->source)) . ")");
// line 8
echo " ";
}
// line 9
echo " ";
if ((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.', 9, $this->source); })()), "colorText", [], "any", false, false, true, 9) && !(null === 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.', 9, $this->source); })()), "color", [], "any", false, false, true, 9)))) {
// line 10
echo " ";
$context["bereichColor"] = (((((("rgb(" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 10, $this->source); })()), "colorText", [], "any", false, false, true, 10), "r", [], "any", false, false, true, 10), 10, $this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 10, $this->source); })()), "colorText", [], "any", false, false, true, 10), "g", [], "any", false, false, true, 10), 10, $this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 10, $this->source); })()), "colorText", [], "any", false, false, true, 10), "b", [], "any", false, false, true, 10), 10, $this->source)) . ")");
// line 11
echo " ";
}
} elseif ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, // line 12
(isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 12, $this->source); })()), "bereiche", [], "any", false, false, true, 12)) > 0)) {
// line 13
echo " ";
$context["bereichTitle"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 13, $this->source); })()), "bereiche", [], "any", false, false, true, 13), 0, [], "array", false, false, true, 13), "title", [], "any", false, false, true, 13);
// line 14
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 14, $this->source); })()), "bereiche", [], "any", false, false, true, 14), 0, [], "array", false, false, true, 14), "color", [], "any", false, false, true, 14) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 14, $this->source); })()), "bereiche", [], "any", false, false, true, 14), 0, [], "array", false, false, true, 14), "color", [], "any", false, false, true, 14)))) {
// line 15
echo " ";
$context["bereichBg"] = (((((("rgb(" . $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["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 15, $this->source); })()), "bereiche", [], "any", false, false, true, 15), 0, [], "array", false, false, true, 15), "color", [], "any", false, false, true, 15), "r", [], "any", false, false, true, 15), 15, $this->source)) . ",") . $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["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 15, $this->source); })()), "bereiche", [], "any", false, false, true, 15), 0, [], "array", false, false, true, 15), "color", [], "any", false, false, true, 15), "g", [], "any", false, false, true, 15), 15, $this->source)) . ",") . $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["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 15, $this->source); })()), "bereiche", [], "any", false, false, true, 15), 0, [], "array", false, false, true, 15), "color", [], "any", false, false, true, 15), "b", [], "any", false, false, true, 15), 15, $this->source)) . ")");
// line 16
echo " ";
}
// line 17
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 17, $this->source); })()), "bereiche", [], "any", false, false, true, 17), 0, [], "array", false, false, true, 17), "colorText", [], "any", false, false, true, 17)) {
// line 18
echo " ";
$context["bereichColor"] = (((((("rgb(" . $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["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 18, $this->source); })()), "bereiche", [], "any", false, false, true, 18), 0, [], "array", false, false, true, 18), "colorText", [], "any", false, false, true, 18), "r", [], "any", false, false, true, 18), 18, $this->source)) . ",") . $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["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 18, $this->source); })()), "bereiche", [], "any", false, false, true, 18), 0, [], "array", false, false, true, 18), "colorText", [], "any", false, false, true, 18), "g", [], "any", false, false, true, 18), 18, $this->source)) . ",") . $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["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 18, $this->source); })()), "bereiche", [], "any", false, false, true, 18), 0, [], "array", false, false, true, 18), "colorText", [], "any", false, false, true, 18), "b", [], "any", false, false, true, 18), 18, $this->source)) . ")");
// line 19
echo " ";
}
}
// line 22
echo "<div class=\"shadow-card rounded-md bg-white dark:bg-neutral-900 dark:text-white group ";
if ((isset($context["fullHeight"]) || array_key_exists("fullHeight", $context) ? $context["fullHeight"] : (function () { throw new RuntimeError('Variable "fullHeight" does not exist.', 22, $this->source); })())) {
echo "h-full";
} else {
echo "mb-10";
}
echo "\">
<div class=\"relative\">
<a href=\"/themen/artikel/";
// line 24
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 24, $this->source); })()), "key", [], "any", false, false, true, 24), 24, $this->source), "html", null, true);
echo "\">
<div class=\"relative block overflow-hidden rounded-t-md\" style=\"background-color: ";
// line 25
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["bereichBg"]) || array_key_exists("bereichBg", $context) ? $context["bereichBg"] : (function () { throw new RuntimeError('Variable "bereichBg" does not exist.', 25, $this->source); })()), 25, $this->source), "html", null, true);
echo "\">
<div class=\"w-full aspect-w-4 aspect-h-3 md:aspect-w-16 md:aspect-h-9\" style=\"background: linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));\">
";
// line 27
$context["hasImage"] = (twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 27, $this->source); })()), "image", [], "any", false, false, true, 27) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 27, $this->source); })()), "image", [], "any", false, false, true, 27)));
// line 28
echo " ";
if ((isset($context["hasImage"]) || array_key_exists("hasImage", $context) ? $context["hasImage"] : (function () { throw new RuntimeError('Variable "hasImage" does not exist.', 28, $this->source); })())) {
// line 29
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, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 29, $this->source); })()), "image", [], "any", false, false, true, 29), "getThumbnail", ["themaThumbnail"], "method", false, false, true, 29), "html", [], "any", false, false, true, 29), 29, $this->source), ["<img" => "<img class=\"w-full h-full object-cover group-hover:rotate-2 group-hover:scale-110 duration-1000 transition-all\" style=\"object-position: center 10%\""]);
echo "
";
} else {
// line 31
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/images/waves-small.webp"), "html", null, true);
echo "\" alt=\"\" class=\"w-full h-full object-cover mix-blend-multiply\">
";
}
// line 33
echo " </div>
<div class=\"absolute block top-5 left-5 rounded-md text-xs px-3 pt-2 pb-1 font-mont-heavy uppercase\" style=\"background-color: ";
// line 34
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["bereichBg"]) || array_key_exists("bereichBg", $context) ? $context["bereichBg"] : (function () { throw new RuntimeError('Variable "bereichBg" does not exist.', 34, $this->source); })()), 34, $this->source), "html", null, true);
echo "; color: ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["bereichColor"]) || array_key_exists("bereichColor", $context) ? $context["bereichColor"] : (function () { throw new RuntimeError('Variable "bereichColor" does not exist.', 34, $this->source); })()), 34, $this->source), "html", null, true);
echo ";\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["bereichTitle"]) || array_key_exists("bereichTitle", $context) ? $context["bereichTitle"] : (function () { throw new RuntimeError('Variable "bereichTitle" does not exist.', 34, $this->source); })()), 34, $this->source), "html", null, true);
echo "</div>
</div>
</a>
</div>
<div class=\"relative p-5\">
<div class=\"flex gap-5 justify-between mb-5\">
<div class=\"text-xs text-gray-500\">
";
// line 41
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 41, $this->source); })()), "articleDate", [], "any", false, false, true, 41), 41, $this->source), "d.m.Y"), "html", null, true);
echo "
</div>
<div class=\"text-xs\">
";
// line 44
if ((twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 44, $this->source); })()), "sponsor", [], "any", false, false, true, 44) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 44, $this->source); })()), "sponsor", [], "any", false, false, true, 44), "title", [], "any", false, false, true, 44))) {
// line 45
echo " Werbefinanziert
";
}
// line 47
echo " </div>
</div>
<a href=\"/themen/artikel/";
// line 49
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 49, $this->source); })()), "key", [], "any", false, false, true, 49), 49, $this->source), "html", null, true);
echo "\" class=\"text-xl md:text-2xl text-blue-light hover:text-black dark:hover:text-white transition-all font-mont-heavy\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 49, $this->source); })()), "title", [], "any", false, false, true, 49), 49, $this->source), "html", null, true);
echo "</a>
";
// line 50
if (twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 50, $this->source); })()), "subTitle", [], "any", false, false, true, 50)) {
// line 51
echo " <div class=\"mt-5 mb-5 text-sm\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 51, $this->source); })()), "subTitle", [], "any", false, false, true, 51), 51, $this->source), "html", null, true);
echo "</div>
";
} else {
// line 53
echo " <div class=\"mt-5 mb-5 text-sm\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 53, $this->source); })()), "excerpt", [], "any", false, false, true, 53), 53, $this->source), "html", null, true);
echo "</div>
";
}
// line 55
echo " </div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "includes/themenPreview.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 187 => 55, 181 => 53, 175 => 51, 173 => 50, 167 => 49, 163 => 47, 159 => 45, 157 => 44, 151 => 41, 137 => 34, 134 => 33, 128 => 31, 122 => 29, 119 => 28, 117 => 27, 112 => 25, 108 => 24, 98 => 22, 94 => 19, 91 => 18, 88 => 17, 85 => 16, 82 => 15, 79 => 14, 76 => 13, 74 => 12, 71 => 11, 68 => 10, 65 => 9, 62 => 8, 59 => 7, 56 => 6, 53 => 5, 51 => 4, 49 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% set bereichBg = '#333333' %}
{% set bereichColor = '#ffffff' %}
{% set bereichTitle = '' %}
{% if forcedBereich %}
{% set bereichTitle = forcedBereich.title %}
{% if forcedBereich.color and forcedBereich.color is not null %}
{% set bereichBg = 'rgb(' ~ article.bereiche[0].color.r ~ ',' ~ forcedBereich.color.g ~ ',' ~ forcedBereich.color.b ~ ')' %}
{% endif %}
{% if forcedBereich.colorText and forcedBereich.color is not null %}
{% set bereichColor = 'rgb(' ~ forcedBereich.colorText.r ~ ',' ~ forcedBereich.colorText.g ~ ',' ~ forcedBereich.colorText.b ~ ')' %}
{% endif %}
{% elseif article.bereiche | length > 0 %}
{% set bereichTitle = article.bereiche[0].title %}
{% if article.bereiche[0].color and article.bereiche[0].color is not null %}
{% set bereichBg = 'rgb(' ~ article.bereiche[0].color.r ~ ',' ~ article.bereiche[0].color.g ~ ',' ~ article.bereiche[0].color.b ~ ')' %}
{% endif %}
{% if article.bereiche[0].colorText %}
{% set bereichColor = 'rgb(' ~ article.bereiche[0].colorText.r ~ ',' ~ article.bereiche[0].colorText.g ~ ',' ~ article.bereiche[0].colorText.b ~ ')' %}
{% endif %}
{% endif %}
{#<div class=\"grid grid-cols-1 grid-cols items-start shadow-card rounded-md bg-white group {% if fullHeight %}h-full{% else %}mb-10{% endif %}\">#}
<div class=\"shadow-card rounded-md bg-white dark:bg-neutral-900 dark:text-white group {% if fullHeight %}h-full{% else %}mb-10{% endif %}\">
<div class=\"relative\">
<a href=\"/themen/artikel/{{ article.key }}\">
<div class=\"relative block overflow-hidden rounded-t-md\" style=\"background-color: {{ bereichBg }}\">
<div class=\"w-full aspect-w-4 aspect-h-3 md:aspect-w-16 md:aspect-h-9\" style=\"background: linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));\">
{% set hasImage = article.image and article.image is not null %}
{% if hasImage %}
{{ article.image.getThumbnail('themaThumbnail').html | replace({ '<img': '<img class=\"w-full h-full object-cover group-hover:rotate-2 group-hover:scale-110 duration-1000 transition-all\" style=\"object-position: center 10%\"' }) | raw }}
{% else %}
<img src=\"{{ asset('static/images/waves-small.webp') }}\" alt=\"\" class=\"w-full h-full object-cover mix-blend-multiply\">
{% endif %}
</div>
<div class=\"absolute block top-5 left-5 rounded-md text-xs px-3 pt-2 pb-1 font-mont-heavy uppercase\" style=\"background-color: {{ bereichBg }}; color: {{ bereichColor }};\">{{ bereichTitle }}</div>
</div>
</a>
</div>
<div class=\"relative p-5\">
<div class=\"flex gap-5 justify-between mb-5\">
<div class=\"text-xs text-gray-500\">
{{ article.articleDate | date('d.m.Y') }}
</div>
<div class=\"text-xs\">
{% if article.sponsor and article.sponsor.title %}
Werbefinanziert
{% endif %}
</div>
</div>
<a href=\"/themen/artikel/{{ article.key }}\" class=\"text-xl md:text-2xl text-blue-light hover:text-black dark:hover:text-white transition-all font-mont-heavy\">{{ article.title }}</a>
{% if article.subTitle %}
<div class=\"mt-5 mb-5 text-sm\">{{ article.subTitle }}</div>
{% else %}
<div class=\"mt-5 mb-5 text-sm\">{{ article.excerpt }}</div>
{% endif %}
</div>
</div>
", "includes/themenPreview.html.twig", "/var/www/vhosts/radio-oberland.de/httpdocs/templates/includes/themenPreview.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 4);
static $filters = array("length" => 12, "escape" => 24, "raw" => 29, "replace" => 29, "date" => 41);
static $functions = array("asset" => 31);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['length', 'escape', 'raw', 'replace', 'date'],
['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;
}
}
}