{% 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>
</div>
</div>
</div>
{% endif %}
<section class="content-header {{ pimcore_select('MarginBottom').getData() }}">
{% if editmode %}
<div class="container" style="z-index: 10;position: relative;">
{{ pimcore_relation("HeaderImage",{
"types": ["asset"],
"subtypes": {
"asset": ["image"]
}
}) }}
</div>
{% elseif not editmode and not pimcore_relation("HeaderImage").isEmpty() %}
<div class="bg">
{{ pimcore_relation("HeaderImage").getElement().thumbnail('ContentHeaderBackground').getHtml({'imgAttributes': {
'class': 'content-header-image'
}}) | raw }}
</div>
{% endif %}
<div class="container content-header-container">
{% if editmode %}
<h1>{{ pimcore_textarea("headline",{
"nl2br": true,
"height": 100,
"placeholder": "HAUPT ÜBERSCHRIFT FÜR DIESE AREA"
}) }}
</h1>
{% elseif not editmode and not pimcore_textarea('headline').isEmpty() %}
<h1>{{ pimcore_textarea('headline').getData() | nl2br }}</h1>
{% endif %}
<div class="content-container lead">
{% if editmode %}
<p>{{ pimcore_textarea("intro",{
"nl2br": true,
"height": 200,
"class": "content-intro-text",
"placeholder": "Quisque velit nisi, pretium ut lacinia in, elementum id enim. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Pellentesque in ipsum id orci porta dapibus. Nulla quis lorem ut libero malesuada feugiat."
}) }}
</p>
{% elseif not editmode and not pimcore_textarea('intro').isEmpty() %}
<p>{{ pimcore_textarea('intro').getData() | nl2br }}</p>
{% endif %}
</div>
{% if editmode %}
{{ pimcore_relations("ContentSlider", {
"title": "Bilder oder Videos ablegen",
"types": ["asset"],
"subtypes": {
"asset": ["image", "video"]
}
}) }}
{% else %}
{% if pimcore_relations("ContentSlider") | length > 1 %}
<div class="swiper contentSwiper content-item">
<div class="swiper-wrapper">
{% for image in pimcore_relations("ContentSlider") %}
<div class="swiper-slide">
{% if image.type != "video" %}
{{ image.thumbnail('NewsDetailSwiper').html | raw }}
{% else %}
<div class="video-container">
<video class="video" style="width: 100%;" controls playsinline autoplay muted>
<source src="{{ image.getFullPath() }}" type="video/mp4">
</video>
</div>
{% endif %}
</div>
{% endfor %}
</div>
<div class="swiper-pagination"></div>
</div>
{% else %}
{% for image in pimcore_relations("ContentSlider") %}
{% if image.type != "video" %}
{{ image.thumbnail('NewsDetailSwiper').getHtml({'imgAttributes': {
"class" : "content-header-single-image"
}}) | raw }}
{% else %}
<div class="video-container">
<video class="video" style="width: 100%;" controls playsinline autoplay muted>
<source src="{{ image.getFullPath() }}" type="video/mp4">
</video>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
</div>
</section>