{% 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">
<div class="item">
<p class="edit-p">H1 HEADLINE TEXT:</p>
{{ pimcore_input('h1', {'placeholder':'H1 HEADLINE' }) }}
</div>
</div>
<div class="content-box flex gap-20">
<div class="item">
<p class="edit-p">Texttyp wählen:</p>
{{ pimcore_select("TextType", {
"reload": true,
"store": [
["lead", "Lead Text"],
["basic", "Fliess Text"]
],
"defaultValue" : "lead"
}) }}
</div>
<div class="item">
<p class="edit-p">Textbox Seite:</p>
{{ pimcore_select("BoxSide", {
"reload": true,
"store": [
["right", "Box rechts"],
["left", "Box links"]
],
"defaultValue" : "left"
}) }}
</div>
<div class="item">
<p class="edit-p">Abstand oben:</p>
{{ pimcore_select("PaddingTop", {
"reload": true,
"store": [
["no-padding-top", "Kein Abstand"],
["default-padding", "Standard Abstand"]
],
"defaultValue" : "default-padding"
}) }}
</div>
<div class="item">
<p class="edit-p">Buttons einfügen:</p>
{{ pimcore_select("ButtonsRow", {
"reload": true,
"store": [
["true", "Mit Buttons"],
["false", "Ohne Buttons"]
],
"defaultValue" : "false"
}) }}
</div>
<div class="item">
<p class="edit-p">Anker Text:</p>
{{ pimcore_input('anchor',{'placeholder':'Anker Text','width':300}) }}
</div>
</div>
</div>
<div class="content flex column gap-20">
<div class="content-box">
<div class="item">
<p class="edit-p">Bilder für den Slider ablegen:</p>
{{ pimcore_relations("SliderImages", {
"reload": true,
"title": "Bilder ablegen",
"types": ["asset"],
"subtypes": {
"asset": ["image"]
}
}) }}
</div>
</div>
<div class="content-box">
<div class="item">
<p class="edit-p">Schattenbild oben ablegen:</p>
{{ pimcore_relation("ShadowImage",{
"reload": false,
"types": ["asset"],
"subtypes": {
"asset": ["image"]
}
}) }}
</div>
<div class="item">
<p class="edit-p">Schattenbild unten ablegen:</p>
{{ pimcore_relation("ShadowImage2",{
"reload": false,
"types": ["asset"],
"subtypes": {
"asset": ["image"]
}
}) }}
</div>
</div>
</div>
</div>
</div>
{% endif %}
<section class="slider-text-box images-slider-text-box {{ pimcore_select("BoxSide").getData() }} {{ pimcore_select("PaddingTop").getData() }}" {% if not pimcore_input('anchor').isEmpty() %}id="{{ pimcore_input('anchor').getData() }}"{% endif %}>
{% if not pimcore_relation("ShadowImage").isEmpty() and not editmode %}
<div class="shadow-image-con images-slider-text-box-shadow">
{{ pimcore_relation("ShadowImage").getElement().getThumbnail('ShadowImage').html({
imgAttributes: {
"class": "shadow-image-top"
}
}) | raw }}
</div>
{% endif %}
{% if not pimcore_relation("ShadowImage2").isEmpty() and not editmode %}
<div class="shadow-image-con images-slider-text-box-shadow images-slider-text-box-shadow-2">
{{ pimcore_relation("ShadowImage2").getElement().getThumbnail('ShadowImage').html({
imgAttributes: {
"class": "shadow-image-top"
}
}) | raw }}
</div>
{% endif %}
{% if not pimcore_input('h1').isEmpty() %}
<h1 class="vertical alt">{{ pimcore_input('h1').getData() }}</h1>
{% endif %}
<div class="swipe-slider-content">
<div class="swiper textSliderSwiperMobile">
<div class="swiper-wrapper">
{% for image in pimcore_relations("SliderImages") %}
<div class="swiper-slide">{{ image.thumbnail('textSliderSwiper').html | raw }}</div>
{% endfor %}
</div>
</div>
</div>
<div class="container {% if pimcore_relations("SliderImages").isEmpty() %}empty-slider-relation{% endif %}">
{# DESKTOP Slider #}
<div class="slider-container flex">
<div class="wrapper">
<div class="swiper sliderTextSwiperDesktop">
<div class="swiper-wrapper">
{% for image in pimcore_relations("SliderImages") %}
<div class="swiper-slide">{{ image.thumbnail('textSliderSwiper').html | raw }}</div>
{% endfor %}
</div>
</div>
<div class="swipe-controls">
<div class="sliderTextSwiperNext"></div>
<div class="sliderTextSwiperPrev"></div>
</div>
</div>
</div>
{# DESKTOP Slider #}
<div class="images-container {% if pimcore_relations("SliderImages").getElements() | length > 1 %}row-reverse{% endif %}">
{% for image in pimcore_relations("SliderImages") %}
{% if pimcore_relations("SliderImages").getElements() | length <= 1 %}
{{ image.thumbnail('textSliderSwiper').getHtml({
'imgAttributes': {
'class': 'big'
},
'pictureAttributes': {
'class': 'big'
}
}) | raw }}
{% else %}
{% if loop.index == 1 %}
{{ image.thumbnail('textSliderSwiper').getHtml({
'imgAttributes': {
'class': 'big'
},
'pictureAttributes': {
'class': 'big'
}
}) | raw }}
{% endif %}
{% if loop.index == 2 %}
{{ image.thumbnail('textSliderSwiper').getHtml({
'imgAttributes': {
'class': 'mid'
},
'pictureAttributes': {
'class': 'mid'
}
}) | raw }}
{% endif %}
{% endif %}
{% endfor %}
</div>
<div class="text-image-box">
<div class="content text-box">
{% if editmode %}
<h2>
{{ pimcore_textarea("h2",{
"nl2br": true,
"height": 120,
"placeholder": "H2 Headline Text"
}) }}
</h2>
{% elseif not editmode and not pimcore_textarea("h2").isEmpty() %}
<h2>{{ pimcore_textarea("h2").getData() | nl2br }}</h2>
{% endif %}
<div class="{{ pimcore_select("TextType").getData() }}">
{% if editmode %}
{{ pimcore_wysiwyg('Content', {
height: 200,
customConfig: '/assets/js/editmode/config.js'
}) }}
{% elseif not pimcore_wysiwyg('Content').isEmpty() %}
{{ pimcore_wysiwyg('Content').getData() | raw }}
{% endif %}
</div>
{{ pimcore_areablock('AreablockContent', {
'allowed': [
'text',
]
}) }}
{% if pimcore_select("ButtonsRow").getData() == "true" %}
<div class="buttons-row flex">
{% for i in pimcore_block('linkblock').iterator %}
<button class="primary">
{{ pimcore_link('Link') }}
<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="#b76e2b" 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="#b76e2b" stroke-width="1"/>
</g>
</g>
</svg>
</button>
{% endfor %}
</div>
{% endif %}
</div>
{% if pimcore_relations("SliderImages").getElements() > 3 %}
<div class="images-container single-image">
{% for image in pimcore_relations("SliderImages") %}
{% if loop.index == 3 %}
{{ image.thumbnail('textSliderSwiper').getHtml({
'imgAttributes': {
'class': 'small'
}
}) | raw }}
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
</section>