var/cache/dev/twig/6c/6cbeb7b875807b85ffaceedff0d9d094.php line 60

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* includes/themenPreview.html.twig */
  14. class __TwigTemplate_28776eb3d3394b080ccdbeb476675cfe extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/themenPreview.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/themenPreview.html.twig"));
  35.         // line 1
  36.         $context["bereichBg"] = "#333333";
  37.         // line 2
  38.         $context["bereichColor"] = "#ffffff";
  39.         // line 3
  40.         $context["bereichTitle"] = "";
  41.         // line 4
  42.         if ((isset($context["forcedBereich"]) || array_key_exists("forcedBereich"$context) ? $context["forcedBereich"] : (function () { throw new RuntimeError('Variable "forcedBereich" does not exist.'4$this->source); })())) {
  43.             // line 5
  44.             echo "    ";
  45.             $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"falsefalsetrue5);
  46.             // line 6
  47.             echo "    ";
  48.             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"falsefalsetrue6) &&  !(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"falsefalsetrue6)))) {
  49.                 // line 7
  50.                 echo "        ";
  51.                 $context["bereichBg"] = (((((("rgb(" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'7$this->source); })()), "bereiche", [], "any"falsefalsetrue7), 0, [], "array"falsefalsetrue7), "color", [], "any"falsefalsetrue7), "r", [], "any"falsefalsetrue7), 7$this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue7), "g", [], "any"falsefalsetrue7), 7$this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue7), "b", [], "any"falsefalsetrue7), 7$this->source)) . ")");
  52.                 // line 8
  53.                 echo "    ";
  54.             }
  55.             // line 9
  56.             echo "    ";
  57.             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"falsefalsetrue9) &&  !(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"falsefalsetrue9)))) {
  58.                 // line 10
  59.                 echo "        ";
  60.                 $context["bereichColor"] = (((((("rgb(" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue10), "r", [], "any"falsefalsetrue10), 10$this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue10), "g", [], "any"falsefalsetrue10), 10$this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue10), "b", [], "any"falsefalsetrue10), 10$this->source)) . ")");
  61.                 // line 11
  62.                 echo "    ";
  63.             }
  64.         } elseif ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source,         // line 12
  65. (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'12$this->source); })()), "bereiche", [], "any"falsefalsetrue12)) > 0)) {
  66.             // line 13
  67.             echo "    ";
  68.             $context["bereichTitle"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue13), 0, [], "array"falsefalsetrue13), "title", [], "any"falsefalsetrue13);
  69.             // line 14
  70.             echo "    ";
  71.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue14), 0, [], "array"falsefalsetrue14), "color", [], "any"falsefalsetrue14) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue14), 0, [], "array"falsefalsetrue14), "color", [], "any"falsefalsetrue14)))) {
  72.                 // line 15
  73.                 echo "        ";
  74.                 $context["bereichBg"] = (((((("rgb(" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'15$this->source); })()), "bereiche", [], "any"falsefalsetrue15), 0, [], "array"falsefalsetrue15), "color", [], "any"falsefalsetrue15), "r", [], "any"falsefalsetrue15), 15$this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'15$this->source); })()), "bereiche", [], "any"falsefalsetrue15), 0, [], "array"falsefalsetrue15), "color", [], "any"falsefalsetrue15), "g", [], "any"falsefalsetrue15), 15$this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'15$this->source); })()), "bereiche", [], "any"falsefalsetrue15), 0, [], "array"falsefalsetrue15), "color", [], "any"falsefalsetrue15), "b", [], "any"falsefalsetrue15), 15$this->source)) . ")");
  75.                 // line 16
  76.                 echo "    ";
  77.             }
  78.             // line 17
  79.             echo "    ";
  80.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue17), 0, [], "array"falsefalsetrue17), "colorText", [], "any"falsefalsetrue17)) {
  81.                 // line 18
  82.                 echo "        ";
  83.                 $context["bereichColor"] = (((((("rgb(" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'18$this->source); })()), "bereiche", [], "any"falsefalsetrue18), 0, [], "array"falsefalsetrue18), "colorText", [], "any"falsefalsetrue18), "r", [], "any"falsefalsetrue18), 18$this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'18$this->source); })()), "bereiche", [], "any"falsefalsetrue18), 0, [], "array"falsefalsetrue18), "colorText", [], "any"falsefalsetrue18), "g", [], "any"falsefalsetrue18), 18$this->source)) . ",") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'18$this->source); })()), "bereiche", [], "any"falsefalsetrue18), 0, [], "array"falsefalsetrue18), "colorText", [], "any"falsefalsetrue18), "b", [], "any"falsefalsetrue18), 18$this->source)) . ")");
  84.                 // line 19
  85.                 echo "    ";
  86.             }
  87.         }
  88.         // line 22
  89.         echo "<div class=\"shadow-card rounded-md bg-white dark:bg-neutral-900 dark:text-white group ";
  90.         if ((isset($context["fullHeight"]) || array_key_exists("fullHeight"$context) ? $context["fullHeight"] : (function () { throw new RuntimeError('Variable "fullHeight" does not exist.'22$this->source); })())) {
  91.             echo "h-full";
  92.         } else {
  93.             echo "mb-10";
  94.         }
  95.         echo "\">
  96.     <div class=\"relative\">
  97.         <a href=\"/themen/artikel/";
  98.         // line 24
  99.         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"falsefalsetrue24), 24$this->source), "html"nulltrue);
  100.         echo "\">
  101.             <div class=\"relative block overflow-hidden rounded-t-md\" style=\"background-color: ";
  102.         // line 25
  103.         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"nulltrue);
  104.         echo "\">
  105.                 <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));\">
  106.                     ";
  107.         // line 27
  108.         $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"falsefalsetrue27) &&  !(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"falsefalsetrue27)));
  109.         // line 28
  110.         echo "                    ";
  111.         if ((isset($context["hasImage"]) || array_key_exists("hasImage"$context) ? $context["hasImage"] : (function () { throw new RuntimeError('Variable "hasImage" does not exist.'28$this->source); })())) {
  112.             // line 29
  113.             echo "                        ";
  114.             echo twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->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"falsefalsetrue29), "getThumbnail", ["themaThumbnail"], "method"falsefalsetrue29), "html", [], "any"falsefalsetrue29), 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%\""]);
  115.             echo "
  116.                     ";
  117.         } else {
  118.             // line 31
  119.             echo "                        <img src=\"";
  120.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/images/waves-small.webp"), "html"nulltrue);
  121.             echo "\" alt=\"\" class=\"w-full h-full object-cover mix-blend-multiply\">
  122.                     ";
  123.         }
  124.         // line 33
  125.         echo "                </div>
  126.                 <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: ";
  127.         // line 34
  128.         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"nulltrue);
  129.         echo "; color: ";
  130.         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"nulltrue);
  131.         echo ";\">";
  132.         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"nulltrue);
  133.         echo "</div>
  134.             </div>
  135.         </a>
  136.     </div>
  137.     <div class=\"relative p-5\">
  138.         <div class=\"flex gap-5 justify-between mb-5\">
  139.             <div class=\"text-xs text-gray-500\">
  140.                 ";
  141.         // line 41
  142.         echo twig_escape_filter($this->envtwig_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"falsefalsetrue41), 41$this->source), "d.m.Y"), "html"nulltrue);
  143.         echo "
  144.             </div>
  145.             <div class=\"text-xs\">
  146.                 ";
  147.         // line 44
  148.         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"falsefalsetrue44) && twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue44), "title", [], "any"falsefalsetrue44))) {
  149.             // line 45
  150.             echo "                    Werbefinanziert
  151.                 ";
  152.         }
  153.         // line 47
  154.         echo "            </div>
  155.         </div>
  156.         <a href=\"/themen/artikel/";
  157.         // line 49
  158.         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"falsefalsetrue49), 49$this->source), "html"nulltrue);
  159.         echo "\" class=\"text-xl md:text-2xl text-blue-light hover:text-black dark:hover:text-white transition-all font-mont-heavy\">";
  160.         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"falsefalsetrue49), 49$this->source), "html"nulltrue);
  161.         echo "</a>
  162.         ";
  163.         // line 50
  164.         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"falsefalsetrue50)) {
  165.             // line 51
  166.             echo "            <div class=\"mt-5 mb-5 text-sm\">";
  167.             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"falsefalsetrue51), 51$this->source), "html"nulltrue);
  168.             echo "</div>
  169.         ";
  170.         } else {
  171.             // line 53
  172.             echo "            <div class=\"mt-5 mb-5 text-sm\">";
  173.             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"falsefalsetrue53), 53$this->source), "html"nulltrue);
  174.             echo "</div>
  175.         ";
  176.         }
  177.         // line 55
  178.         echo "    </div>
  179. </div>
  180. ";
  181.         
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183.         
  184.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  185.     }
  186.     /**
  187.      * @codeCoverageIgnore
  188.      */
  189.     public function getTemplateName()
  190.     {
  191.         return "includes/themenPreview.html.twig";
  192.     }
  193.     /**
  194.      * @codeCoverageIgnore
  195.      */
  196.     public function isTraitable()
  197.     {
  198.         return false;
  199.     }
  200.     /**
  201.      * @codeCoverageIgnore
  202.      */
  203.     public function getDebugInfo()
  204.     {
  205.         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,);
  206.     }
  207.     public function getSourceContext()
  208.     {
  209.         return new Source("{% set bereichBg = '#333333' %}
  210. {% set bereichColor = '#ffffff' %}
  211. {% set bereichTitle = '' %}
  212. {% if forcedBereich %}
  213.     {% set bereichTitle = forcedBereich.title %}
  214.     {% if forcedBereich.color and forcedBereich.color is not null %}
  215.         {% set bereichBg = 'rgb(' ~ article.bereiche[0].color.r ~ ',' ~ forcedBereich.color.g ~ ',' ~ forcedBereich.color.b ~ ')' %}
  216.     {% endif %}
  217.     {% if forcedBereich.colorText and forcedBereich.color is not null %}
  218.         {% set bereichColor = 'rgb(' ~ forcedBereich.colorText.r ~ ',' ~ forcedBereich.colorText.g ~ ',' ~ forcedBereich.colorText.b ~ ')' %}
  219.     {% endif %}
  220. {% elseif article.bereiche | length > 0 %}
  221.     {% set bereichTitle = article.bereiche[0].title %}
  222.     {% if article.bereiche[0].color and article.bereiche[0].color is not null %}
  223.         {% set bereichBg = 'rgb(' ~ article.bereiche[0].color.r ~ ',' ~ article.bereiche[0].color.g ~ ',' ~ article.bereiche[0].color.b ~ ')' %}
  224.     {% endif %}
  225.     {% if article.bereiche[0].colorText %}
  226.         {% set bereichColor = 'rgb(' ~ article.bereiche[0].colorText.r ~ ',' ~ article.bereiche[0].colorText.g ~ ',' ~ article.bereiche[0].colorText.b ~ ')' %}
  227.     {% endif %}
  228. {% endif %}
  229. {#<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 %}\">#}
  230. <div class=\"shadow-card rounded-md bg-white dark:bg-neutral-900 dark:text-white group {% if fullHeight %}h-full{% else %}mb-10{% endif %}\">
  231.     <div class=\"relative\">
  232.         <a href=\"/themen/artikel/{{ article.key }}\">
  233.             <div class=\"relative block overflow-hidden rounded-t-md\" style=\"background-color: {{ bereichBg }}\">
  234.                 <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));\">
  235.                     {% set hasImage = article.image and article.image is not null %}
  236.                     {% if hasImage %}
  237.                         {{ 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 }}
  238.                     {% else %}
  239.                         <img src=\"{{ asset('static/images/waves-small.webp') }}\" alt=\"\" class=\"w-full h-full object-cover mix-blend-multiply\">
  240.                     {% endif %}
  241.                 </div>
  242.                 <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>
  243.             </div>
  244.         </a>
  245.     </div>
  246.     <div class=\"relative p-5\">
  247.         <div class=\"flex gap-5 justify-between mb-5\">
  248.             <div class=\"text-xs text-gray-500\">
  249.                 {{ article.articleDate | date('d.m.Y') }}
  250.             </div>
  251.             <div class=\"text-xs\">
  252.                 {% if article.sponsor and article.sponsor.title %}
  253.                     Werbefinanziert
  254.                 {% endif %}
  255.             </div>
  256.         </div>
  257.         <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>
  258.         {% if article.subTitle %}
  259.             <div class=\"mt-5 mb-5 text-sm\">{{ article.subTitle }}</div>
  260.         {% else %}
  261.             <div class=\"mt-5 mb-5 text-sm\">{{ article.excerpt }}</div>
  262.         {% endif %}
  263.     </div>
  264. </div>
  265. ""includes/themenPreview.html.twig""/var/www/vhosts/radio-oberland.de/httpdocs/templates/includes/themenPreview.html.twig");
  266.     }
  267.     
  268.     public function checkSecurity()
  269.     {
  270.         static $tags = array("set" => 1"if" => 4);
  271.         static $filters = array("length" => 12"escape" => 24"raw" => 29"replace" => 29"date" => 41);
  272.         static $functions = array("asset" => 31);
  273.         try {
  274.             $this->sandbox->checkSecurity(
  275.                 ['set''if'],
  276.                 ['length''escape''raw''replace''date'],
  277.                 ['asset']
  278.             );
  279.         } catch (SecurityError $e) {
  280.             $e->setSourceContext($this->source);
  281.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  282.                 $e->setTemplateLine($tags[$e->getTagName()]);
  283.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  284.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  285.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  286.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  287.             }
  288.             throw $e;
  289.         }
  290.     }
  291. }