<section class="content-block container container-md js-fade-in {{ styleModifier | default (null) }}">
{% if title|default('false') %}
{{ include('Includes/title-block.html.twig', {
title: title,
}) }}
{% endif %}
{% set items = [
{
'type': 'article',
'areaWide': true,
'article': gridArticles.current
},
{
'type': 'article',
'areaWide': false,
'article': gridArticles.next ?: gridArticles.current
},
{
'type': 'snippet',
'areaWide': false,
'id': 'snipppet-1'
},
{
'type': 'article',
'areaWide': false,
'article': gridArticles.next ?: gridArticles.current
},
{
'type': 'snippet',
'areaWide': false,
'id': 'snipppet-2'
},
{
'type': 'article',
'areaWide': false,
'article': gridArticles.next ?: gridArticles.current
},
{
'type': 'article',
'areaWide': false,
'article': gridArticles.next ?: gridArticles.current
},
{
'type': 'article',
'areaWide': false,
'article': gridArticles.next ?: gridArticles.current
},
{
'type': 'article',
'areaWide': false,
'article': gridArticles.next ?: gridArticles.current
},
{
'type': 'article',
'areaWide': true,
'article': gridArticles.next ?: gridArticles.current
},
{
'type': 'snippet',
'areaWide': false,
'id': 'snipppet-3'
},
{
'type': 'article',
'areaWide': false,
'article': gridArticles.next ?: gridArticles.current
},
{
'type': 'snippet',
'areaWide': false,
'id': 'snipppet-4'
},
{
'type': 'article',
'areaWide': false,
'article': gridArticles.next ?: gridArticles.current
},
{
'type': 'article',
'areaWide': false,
'article': gridArticles.next ?: gridArticles.current
},
{
'type': 'article',
'areaWide': false,
'article': gridArticles.next ?: gridArticles.current
},
{
'type': 'snippet',
'areaWide': false,
'id': 'snipppet-5'
},
{
'type': 'snippet',
'areaWide': false,
'id': 'snipppet-6'
},
{
'type': 'snippet',
'areaWide': false,
'id': 'snipppet-7'
},
] %}
<section class="{{ styleModifier | default(null)}}">
<div class="row vertical-gutter-md--default vertical-gutter--4">
{% for item in items %}
<div class="vertical-gutter__item {{ item.areaWide ? 'col-md-8' : 'col-md-4' }} js-fade-in">
{% if item.type == 'article' and item.article %}
{{ include('Magazine/Includes/articleTeaser.html.twig', item) }}
{% elseif item.type == "snippet" %}
{{ pimcore_snippet(item.id, {'height' : 530}) }}
{% endif %}
{#{% elseif item.teaserType == 'simple-text-teaser' %}
{{ pattern('molecules-simple-text-teaser', item | merge(item)) }}
{% elseif item.teaserType == 'social-media-teaser' %}
{{ pattern('molecules-social-media-teaser', item | merge(item)) }}
{% endif %}#}
</div>
{% endfor %}
</div>
</section>
<div class="text-center mt-4">
<a href="{{ document.property('blogPortal').archiveDocument }}" class="btn btn-primary">
{{ 'magazin.Alle Artikel'|trans }}
</a>
</div>
</section>