<section class="{{ classNames|default('content-block container') }} ">
<div class="container">
{{ include('includes/title-blocks/title-block.html.twig', {
'topTitle': toptitle|default(''),
'title': title|default(''),
'titleStyle': 'h4',
'prefix': prefix|default(''),
'editmode': editmode
} , with_context = false) }}
</div>
{% if teasers|default %}
<div class="mixed-teaser-slider js-scroll-slider-teaser" data-scroll-slider-dots="true" data-scroll-slider-arrows="true">
<div class="js-scroll-slider-teaser__area scroll-slider__area">
{% for teaser in teasers %}
<div class="js-scroll-slider-teaser__item scroll-slider__item">
{% if teaser is instanceof('\\Pimcore\\Model\\Document\\Snippet') %}
{{ pimcore_inc(teaser, { 'className': 'no-box-shadow' }) }}
{% elseif isCardTeser|default('') %}
{{ include('teaser/card-teaser.html.twig',{
'image': teaser.image,
'toptitle': elements_dateFormat(teaser.publishDate, 'date-long', 'de'),
'title': teaser.title,
'tag': getCategoriesNames(teaser),
'link': {
'href': getDetailLink(teaser),
'text': 'news.teaser-link.text'|trans,
'target': '_blank'
},
}) }}
{% else %}
{{ include('teaser/ticket-teaser.html.twig', {
'product': teaser,
'className': 'no-box-shadow'
}, with_context = false) }}
{% endif %}
</div>
{% endfor %}
</div>
<div class="js-scroll-slider-teaser__dots scroll-slider__dots d-md-none"></div>
</div>
{% endif %}
</section>