{% set headlineTag = pimcore_select('headline1', {
'store': [
['none', 'none'],
['h1', 'H1'],
['h2', 'H2'],
['h3', 'H3'],
['h4', 'H4'],
['h5', 'H5'],
['h6', 'H6'],
],
'defaultValue': '',
'reload': true,
}) %}
{% if headlineTag.isEmpty() %}
{% do headlineTag.setDataFromResource('h2') %}
{% endif %}
{% set headline1 = headlineTag.data != 'none' ? headlineTag.data|raw : 'span'|raw %}
{% set headline2 = headlineTag.data != 'none' ? '</' ~ headlineTag.data|raw ~ '>' : '</span>'|raw %}
{% if editmode %}
<div class="edit-box">
<h1>KONFIGURATIONEN FÜR DEN AREABRICK:</h1>
<div class="flex gap-20">
<div class="content flex column gap-20">
<div class="content-box flex gap-20">
<div class="item">
<p class="edit-p">Abstand nach unten wählen:</p>
{{ pimcore_select("MarginBottom", {
"reload": true,
"store": [
["regular", "Normal"],
["half", "1/2"],
["small", "1/4"],
["zero", "kein Abstand"],
],
"defaultValue" : "regular"
}) }}
</div>
<div class="item">
<p class="edit-p">Titel-Typ definieren:</p>
{{ headlineTag|raw }}
</div>
</div>
</div>
</div>
</div>
{% endif %}
<section class="cards mulden-teaser {{ pimcore_select('MarginBottom').getData() }}">
<div class="container">
<div class="content-container">
{% if editmode %}
<span class="mulden-title">{{ pimcore_textarea("headline",{
"nl2br": true,
"height": 200,
"placeholder": "HAUPT ÜBERSCHRIFT FÜR DIESE AREA"
}) }}
</span>
{% elseif not editmode and not pimcore_textarea('headline').isEmpty() %}
<{{headline1|raw}} class="mulden-title">
{{ pimcore_textarea('headline').getData() | nl2br }}
{{ headline2|raw }}
{% endif %}
{% if editmode %}
{{ pimcore_relations("Teaser", {
"title": "Cards Objekte ablegen",
"types": ["object"],
"subtypes": {
"object": ["object"]
},
"classes": ["Card"]
}) }}
{% elseif not editmode and not pimcore_relations("Teaser").isEmpty() %}
{% for teaser in pimcore_relations("Teaser") %}
<div class="teaser">
<div class="img-container">
{{ teaser.image.thumbnail('MuldenTeaser').html | raw }}
</div>
<div class="content">
<div class="headline">
{{ teaser.headline | raw }}
</div>
<div class="text lauf">
{{ teaser.text | raw }}
</div>
{% if editmode %}
<p class="card-link" style="margin-bottom: 0;">
{{ teaser.link | raw }}
</p>
{% elseif not editmode and not teaser.link is empty %}
<div class="btn secondary">
{% if teaser.link.target %}
{% set target = teaser.link.target %}
{% else %}
{% set target = '_self' %}
{% endif %}
<a class="flex" href="{{ teaser.link.href }}" target="{{ target }}">
<span>{{ teaser.link.getText() }}
<svg width="15.708" height="10.709" viewBox="0 0 15.708 10.709">
<g transform="translate(0 0.354)">
<g transform="translate(0)">
<path class="line" d="M7.5,18h15" transform="translate(-7.5 -13)" fill="none" stroke="#fff" stroke-linejoin="round" stroke-width="1"/>
<path class="arrow" d="M18,7.5l5.026,5L18,17.5" transform="translate(-8.027 -7.5)" fill="none" stroke="#fff" stroke-width="1"/>
</g>
</g>
</svg>
</span>
</a>
<div class="button-shape">
{{include('svg/button-shape.html.twig')}}
</div>
</div>
{% endif %}
</div>
</div>
{% endfor %}
{% endif %}
</div>
</div>
</section>