{% if editmode %}
{{ include('includes/backend-kopf.html.twig') }}
{% set tabContentArray = {1: 'Optional', 2: 'Content'} %}
{% set tab = 1 %}
<div id="content">
{% if tabContentArray is defined and tab in tabContentArray|keys %}
{{ admin_tabs(tab, tabContentArray) | raw }}
{% endif %}
<section class="tabContent">
<p class="hl">Optionale Einstellung:</p>
{% set element = 'artikel' %}
<div id="{{ element }} ">
{{ pimcore_multiselect(element, {
'width': 200,
'height': 100,
'store': [
['abstand-top', 'Abstand nach oben'],
['abstand-bottom', 'Abstand nach unten']
]
}) }}
</div>
</section>
{% if tabContentArray is defined and 2 in tabContentArray|keys %}
{{ admin_tabs(2, tabContentArray) | raw }}
<section class="tabContent">
<p class="hl">Optional Headline (H2):</p>
{{ pimcore_areablock("AreablockTop", {
"allowed": ["H2"],
"toolbar": false,
"areablock_toolbar": {
"title": "Content Konfiguration",
"width": 274,
"x": 570,
"y": 41,
"xAlign": "left",
"buttonWidth": 270,
"buttonMaxCharacters": 35
}
})
}}
<br /><br /><hr /><br /><br />
<p class="hl">Bitte Objekt-Ordner Teaser Quer (aus jeweiligen Theme) zuweisen:</p>
<div class="dragdrop"><span class="parentbox">
{{ pimcore_relation('teaserfolder', {
"width": 550,
"reload": true,
"types": ["object"],
"subtypes": {
"document": ["folder"],
"classes": ["teaserhochformat"]
},
})
}}
</span></div>
<br /><br /><br /><br />
<p class="hl">Bitte ordnen Sie Objekte aus dem Ordner Teaser Quer zu (falls Sie mit der Reihenfolge manipulieren möchten)::</p>
<div class="dragdrop pimcore-relations-custom"><span class="parentbox">
{{ pimcore_relations("teaserobjects", {
"width": 550,
"types": ["object"],
"subtypes": {
"object": ["object"]
},
}) }}
</span></div>
</section>
{% endif %}
</div>
{{ include('includes/backend-fuss.html.twig') }}
{% else %}
{% set abstand_top_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-top') == true)? ' abstand-top' : '' %}
{% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
{% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
<div class="{{ abstandClasses }}">
{% set areaBlock = pimcore_areablock("AreablockTop") %}
{% if areaBlock.isEmpty() == false %}
<div class="constrainer-maxsize edgepadding">
{{ areaBlock | raw }}
</div>
{% endif %}
<div class="teaser-horizontal-bg">
<div class="constrainer-maxsize edgepadding">
<div class="layout-columns-2-multiple">
{% for key,element in teaser %}
{% if element.show_button_and_ancor is not empty %}
<a href="{{ element.href_teaser_link }}" target="{{ element.href_teaser_target }}" class="no-underline">
{% else %}
<div>
{% endif %}
<div class="layout-float teaser-horizontal hover">
<div class="image">
<picture>
<source
data-srcset="{{ element.teaser_bild_normalQadrat }} 200w, {{ element.teaser_bild_retinaQuadrat }} 400w"
media="(max-width: 600px)"
/>
<source
data-srcset="{{ element.teaser_bild_normal }} 415w, {{ element.teaser_bild_normal }} 830w"
media="(min-width: 601px) and (max-width: 1023px)"
/>
<source
data-srcset="{{ element.teaser_bild_normalQadrat }} 200w, {{ element.teaser_bild_normalQadrat }} 400w"
media="(min-width: 1024px) and (max-width: 1399px)"
/>
<source
data-srcset="{{ element.teaser_bild_normal }} 415w, {{ element.teaser_bild_normal }} 830w"
media="(min-width: 1400px)"
/>
<img
src=""
data-src="{{ element.teaser_bild_default }}"
class="lazyload"
alt="{{ element.teaser_bild__alttag }}"/>
</picture>
</div>
<div class="centered-flex">
<div>
{% if element.teaser_headline is not empty %}
<h3 class="copy font-bold">{{ element.teaser_headline | raw }} </h3>
{% endif %}
{% if element.teaser_headline_small is defined and element.teaser_headline_small is not empty %}
<h5 style="margin-top: 8px;" class="copy">{{ element.teaser_headline_small | raw }}</h5>
{% endif %}
{% if element.show_button_and_ancor is not empty %}
{% if element.teaser_button_text is not empty %}
<div class="btn-wrp"><button class="btn-small font-light"><span style="transform: translateY(2px); display: block;">{{ element.teaser_button_text | raw }}</span></button></div>
{% else %}
<div class="btn-wrp arrow-button"><button></button></div>
{% endif %}
{% endif %}
</div>
</div>
</div>
{% if element.show_button_and_ancor is not empty %}
</a>
{% else %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
{{ pimcore_areablock("AreablockBottom") }}
{% endif %}