var/cache/website/dev/twig/3b/3bf4032bc3cd8a75bffe3a6ccbc28e97.php line 33
<?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/blocks/news-grid.html.twig */
class __TwigTemplate_a9605d5b5517d18d55ef1a4c83101a12 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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/blocks/news-grid.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/blocks/news-grid.html.twig"));
// line 2
$context["tags"] = twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 2, $this->source); })()), "tags", [], "any", false, false, false, 2);
// line 3
echo "
";
// line 5
$context["locale"] = ((twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 5, $this->source); })()), "request", [], "any", false, false, false, 5), "locale", [], "any", false, false, false, 5), "_"), 0, [], "array", true, true, false, 5)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 5, $this->source); })()), "request", [], "any", false, false, false, 5), "locale", [], "any", false, false, false, 5), "_"), 0, [], "array", false, false, false, 5), "de")) : ("de"));
// line 6
echo "
";
// line 8
$context["news"] = $this->env->getRuntime('App\Twig\AppRuntime')->getNews((isset($context["tags"]) || array_key_exists("tags", $context) ? $context["tags"] : (function () { throw new RuntimeError('Variable "tags" does not exist.', 8, $this->source); })()));
// line 9
echo "
";
// line 11
$context["stories"] = _twig_default_filter($this->env->getRuntime('App\Twig\AppRuntime')->getDataFromSmartContent(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 11, $this->source); })()), "stories", [], "any", false, false, false, 11), (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 11, $this->source); })())), []);
// line 12
echo "
";
// line 14
$context["publications"] = _twig_default_filter($this->env->getRuntime('App\Twig\AppRuntime')->getDataFromSmartContent(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 14, $this->source); })()), "publications", [], "any", false, false, false, 14), (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 14, $this->source); })())), []);
// line 15
echo "
";
// line 17
$context["pages"] = _twig_default_filter($this->env->getRuntime('App\Twig\AppRuntime')->getDataFromSmartContent(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 17, $this->source); })()), "pages", [], "any", false, false, false, 17), (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 17, $this->source); })())), []);
// line 18
echo "
";
// line 20
$context["sorted"] = $this->env->getRuntime('App\Twig\AppRuntime')->sortByDate((isset($context["stories"]) || array_key_exists("stories", $context) ? $context["stories"] : (function () { throw new RuntimeError('Variable "stories" does not exist.', 20, $this->source); })()), (isset($context["publications"]) || array_key_exists("publications", $context) ? $context["publications"] : (function () { throw new RuntimeError('Variable "publications" does not exist.', 20, $this->source); })()), (isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 20, $this->source); })()), (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 20, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 20, $this->source); })()), "contentMixed", [], "any", false, false, false, 20));
// line 21
echo "
";
// line 22
if ((( !twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 22, $this->source); })()), "expandEnabled", [], "any", false, false, false, 22) || twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 22, $this->source); })()), "newsGridExpandButtonLabel", [], "any", false, false, false, 22))) && (twig_length_filter($this->env, (isset($context["sorted"]) || array_key_exists("sorted", $context) ? $context["sorted"] : (function () { throw new RuntimeError('Variable "sorted" does not exist.', 22, $this->source); })())) > twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 22, $this->source); })()), "itemsCount", [], "any", false, false, false, 22)))) {
// line 23
echo " ";
// line 27
echo " ";
$context["sorted"] = twig_slice($this->env, (isset($context["sorted"]) || array_key_exists("sorted", $context) ? $context["sorted"] : (function () { throw new RuntimeError('Variable "sorted" does not exist.', 27, $this->source); })()), 0, twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 27, $this->source); })()), "itemsCount", [], "any", false, false, false, 27));
}
// line 29
echo "
<div class=\"teaser-grid ";
// line 30
if (twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 30, $this->source); })()), "inverted", [], "any", false, false, false, 30)) {
echo "teaser-grid--inverted ";
}
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 30, $this->source); })()), "top", [], "any", false, false, false, 30), "html", null, true);
echo "
";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 31, $this->source); })()), "bottom", [], "any", false, false, false, 31), "html", null, true);
echo "\" x-data=\"teasergrid(";
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["sorted"]) || array_key_exists("sorted", $context) ? $context["sorted"] : (function () { throw new RuntimeError('Variable "sorted" does not exist.', 31, $this->source); })())), "html", null, true);
echo ",";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 31, $this->source); })()), "itemsCount", [], "any", false, false, false, 31), "html", null, true);
echo ",3)\">
<div class=\"teaser-grid__container\">
<div class=\"teaser-grid__teasers\" x-ref=\"teasers\" id=\"teasers\">
";
// line 34
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["sorted"]) || array_key_exists("sorted", $context) ? $context["sorted"] : (function () { throw new RuntimeError('Variable "sorted" does not exist.', 34, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["item"]) {
// line 35
echo " ";
$context["targetBlank"] = "";
// line 36
echo " ";
if ((is_string($__internal_compile_0 = twig_get_attribute($this->env, $this->source, $context["item"], "url", [], "array", false, false, false, 36)) && is_string($__internal_compile_1 = "http") && ('' === $__internal_compile_1 || 0 === strpos($__internal_compile_0, $__internal_compile_1)))) {
// line 37
echo " ";
$context["targetBlank"] = "target=\"_blank\"";
// line 38
echo " ";
}
// line 39
echo "
<a href=\"";
// line 40
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "url", [], "array", false, false, false, 40), "html", null, true);
echo "\"
class=\"story-teaser ";
// line 41
if (twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 41, $this->source); })()), "inverted", [], "any", false, false, false, 41)) {
echo "story-teaser--inverted ";
}
echo "\"
x-show=\"show(";
// line 42
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo ")\" ";
echo twig_escape_filter($this->env, (isset($context["targetBlank"]) || array_key_exists("targetBlank", $context) ? $context["targetBlank"] : (function () { throw new RuntimeError('Variable "targetBlank" does not exist.', 42, $this->source); })()), "html", null, true);
echo ">
<div class=\"story-teaser__media\">
";
// line 45
echo " ";
if (twig_matches("/^\\d+\$/", twig_get_attribute($this->env, $this->source, $context["item"], "image", [], "array", false, false, false, 45))) {
// line 46
echo " ";
$context["image"] = $this->extensions['Sulu\Bundle\MediaBundle\Twig\MediaTwigExtension']->resolveMediaFunction(twig_get_attribute($this->env, $this->source, $context["item"], "image", [], "array", false, false, false, 46), twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 46, $this->source); })()), "request", [], "any", false, false, false, 46), "locale", [], "any", false, false, false, 46), "_"), 0, [], "array", false, false, false, 46));
// line 47
echo " <img src =\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 47, $this->source); })()), "2880x"), "html", null, true);
echo "\" class=\"story-teaser__image\"
srcset =\"";
// line 48
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 48, $this->source); })()), "320x"), "html", null, true);
echo " 320w, ";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 48, $this->source); })()), "640x"), "html", null, true);
echo " 640w, ";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 48, $this->source); })()), "1280x"), "html", null, true);
echo " 1280w, ";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 48, $this->source); })()), "1440x"), "html", null, true);
echo " 1440w, ";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 48, $this->source); })()), "2048x"), "html", null, true);
echo " 2048w\" alt=\"";
echo twig_escape_filter($this->env, twig_striptags(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.', 48, $this->source); })()), "description", [], "any", false, false, false, 48)), "html", null, true);
echo "\"
x-ref=\"image\" sizes=\"(min-width: 1440px) 480px, (min-width: 768px) 33vw, 100vw\">
";
} elseif ( !twig_test_empty(twig_get_attribute($this->env, $this->source, // line 50
$context["item"], "thumbnails", [], "array", false, false, false, 50))) {
// line 51
echo " ";
// line 52
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl($context["item"], "2880x"), "html", null, true);
echo "\" class=\"story-teaser__image\"
srcset=\"";
// line 53
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl($context["item"], "320x"), "html", null, true);
echo " 320w, ";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl($context["item"], "640x"), "html", null, true);
echo " 640w,
";
// line 54
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl($context["item"], "1280x"), "html", null, true);
echo " 1280w, ";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl($context["item"], "1440x"), "html", null, true);
echo " 1440w,
";
// line 55
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->getThumbnailUrl($context["item"], "2048x"), "html", null, true);
echo " 2048w\" alt=\"";
echo twig_escape_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["item"], "description", [], "any", false, false, false, 55)), "html", null, true);
echo "\"
x-ref=\"image\" sizes=\"(min-width: 1440px) 480px, (min-width: 768px) 33vw, 100vw\">
";
}
// line 58
echo " </div>
<div class=\"story-teaser__meta\">
<span class=\"story-teaser__type\"
style=\"float: left\">";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "source", [], "array", false, false, false, 61), "html", null, true);
echo " | </span>
<span class=\"story-teaser__time\"><p>";
// line 62
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "dateGerman", [], "array", false, false, false, 62), "html", null, true);
echo "</span>
</div>
<div class=\"story-teaser__title\">
";
// line 66
echo twig_get_attribute($this->env, $this->source, $context["item"], "title", [], "array", false, false, false, 66);
echo "
</div>
<div class=\"story-teaser__text\">
";
// line 69
echo twig_get_attribute($this->env, $this->source, $context["item"], "description", [], "array", false, false, false, 69);
echo "
</div>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 73
echo " </div>
";
// line 76
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 76, $this->source); })()), "expandEnabled", [], "any", false, false, false, 76) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 76, $this->source); })()), "newsGridExpandButtonLabel", [], "any", false, false, false, 76)))) {
// line 77
echo " <div class=\"teaser-grid__actions\" x-ref=\"actions\" x-show=\"showActions()\" id=\"newsgrid-actions\">
<button class=\"button button--";
// line 78
if (twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 78, $this->source); })()), "inverted", [], "any", false, false, false, 78)) {
echo "grey";
} else {
echo "default ";
}
echo "\"
x-ref=\"loadmore\" @click=\"loadMore\" id=\"moreButton-News\">
\t <span class=\"button__inner\">
";
// line 81
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 81, $this->source); })()), "newsGridExpandButtonLabel", [], "any", false, false, false, 81), "html", null, true);
echo "
</span>
</button>
</div>
";
}
// line 86
echo " </div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "includes/blocks/news-grid.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 257 => 86, 249 => 81, 239 => 78, 236 => 77, 233 => 76, 229 => 73, 219 => 69, 213 => 66, 206 => 62, 202 => 61, 197 => 58, 189 => 55, 183 => 54, 177 => 53, 172 => 52, 170 => 51, 168 => 50, 153 => 48, 148 => 47, 145 => 46, 142 => 45, 135 => 42, 129 => 41, 125 => 40, 122 => 39, 119 => 38, 116 => 37, 113 => 36, 110 => 35, 106 => 34, 96 => 31, 89 => 30, 86 => 29, 82 => 27, 80 => 23, 78 => 22, 75 => 21, 73 => 20, 70 => 18, 68 => 17, 65 => 15, 63 => 14, 60 => 12, 58 => 11, 55 => 9, 53 => 8, 50 => 6, 48 => 5, 45 => 3, 43 => 2,);
}
public function getSourceContext()
{
return new Source("{# Get tags for news #}
{% set tags = content.tags %}
{# Get current locale #}
{% set locale = app.request.locale|split('_')[0]|default('de') %}
{# Get all news from database #}
{% set news = news(tags) %}
{# Get all smart contents from source 1 #}
{% set stories = getDataFromSmartContent(content.stories, locale)|default([]) %}
{# Get all smart contents from source 2 #}
{% set publications = getDataFromSmartContent(content.publications, locale)|default([]) %}
{# Get all smart contents from source 3 #}
{% set pages = getDataFromSmartContent(content.pages, locale)|default([]) %}
{# Sort by date DESC - Mix news and pages #}
{% set sorted = sortByDate(stories, publications, pages, news, content.contentMixed) %}
{% if (not content.expandEnabled or content.newsGridExpandButtonLabel is empty) and sorted|length > content.itemsCount %}
{#
Expanding is disabled, cut the list of items to the configured initial count
so we do not have unreachable image urls being pre-loaded
#}
{% set sorted = sorted|slice(0, content.itemsCount) %}
{% endif %}
<div class=\"teaser-grid {% if content.inverted %}teaser-grid--inverted {% endif %}{{ content.top }}
{{ content.bottom }}\" x-data=\"teasergrid({{ sorted|length }},{{ content.itemsCount }},3)\">
<div class=\"teaser-grid__container\">
<div class=\"teaser-grid__teasers\" x-ref=\"teasers\" id=\"teasers\">
{% for key, item in sorted %}
{% set targetBlank = '' %}
{% if item['url'] starts with 'http' %}
{% set targetBlank = 'target=\"_blank\"' %}
{% endif %}
<a href=\"{{ item['url'] }}\"
class=\"story-teaser {% if content.inverted %}story-teaser--inverted {% endif %}\"
x-show=\"show({{ key }})\" {{ targetBlank }}>
<div class=\"story-teaser__media\">
{# Image ID from News #}
{% if item['image'] matches '/^\\\\d+\$/' %}
{% set image = sulu_resolve_media(item['image'], app.request.locale|split('_')[0]) %}
<img src =\"{{ image|thumbnailUrl('2880x') }}\" class=\"story-teaser__image\"
srcset =\"{{ image|thumbnailUrl('320x') }} 320w, {{ image|thumbnailUrl('640x') }} 640w, {{ image|thumbnailUrl('1280x') }} 1280w, {{ image|thumbnailUrl('1440x') }} 1440w, {{ image|thumbnailUrl('2048x') }} 2048w\" alt=\"{{ image.description|striptags }}\"
x-ref=\"image\" sizes=\"(min-width: 1440px) 480px, (min-width: 768px) 33vw, 100vw\">
{% elseif item['thumbnails'] is not empty %}
{# Thumbnails array from Stories #}
<img src=\"{{ item|thumbnailUrl('2880x') }}\" class=\"story-teaser__image\"
srcset=\"{{ item|thumbnailUrl('320x') }} 320w, {{ item|thumbnailUrl('640x') }} 640w,
{{ item|thumbnailUrl('1280x') }} 1280w, {{ item|thumbnailUrl('1440x') }} 1440w,
{{ item|thumbnailUrl('2048x') }} 2048w\" alt=\"{{ item.description|striptags }}\"
x-ref=\"image\" sizes=\"(min-width: 1440px) 480px, (min-width: 768px) 33vw, 100vw\">
{% endif %}
</div>
<div class=\"story-teaser__meta\">
<span class=\"story-teaser__type\"
style=\"float: left\">{{ item['source'] }} | </span>
<span class=\"story-teaser__time\"><p>{{ item['dateGerman'] }}</span>
</div>
<div class=\"story-teaser__title\">
{{ item['title']|raw }}
</div>
<div class=\"story-teaser__text\">
{{ item['description']|raw }}
</div>
</a>
{% endfor %}
</div>
{# CSS for button and Javascript for Button required??? #}
{% if content.expandEnabled and content.newsGridExpandButtonLabel is not empty %}
<div class=\"teaser-grid__actions\" x-ref=\"actions\" x-show=\"showActions()\" id=\"newsgrid-actions\">
<button class=\"button button--{% if content.inverted %}grey{% else %}default {% endif %}\"
x-ref=\"loadmore\" @click=\"loadMore\" id=\"moreButton-News\">
\t <span class=\"button__inner\">
{{ content.newsGridExpandButtonLabel }}
</span>
</button>
</div>
{% endif %}
</div>
</div>
", "includes/blocks/news-grid.html.twig", "/var/www/dmz-test-pdwebsite.plan-d.cloud/templates/includes/blocks/news-grid.html.twig");
}
}