{% if editmode %}
{{ include('includes/backend-kopf.html.twig') }}
{% set tabContentArray = {1: 'Optional', 2: 'linke Text-Spalte',3: 'rechte Text-Spalte'} %}
{% 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">
<strong style="display:block;padding-left:37px;margin-bottom:6px;">linke Spalte</strong>
<div class="schreiben"><span class="parentbox" style="background-color:#fff">
{{ pimcore_wysiwyg("text-wysiwyg-links", {
"height": 100,
"width": 735,
"customConfig": "/bundles/app/static/backend/js/ckeditor/documents/text-wysiwyg.js"
})
}}
</span></div>
</section>
{% endif %}
{% if tabContentArray is defined and 3 in tabContentArray|keys %}
{{ admin_tabs(3, tabContentArray) | raw }}
<section class="tabContent">
<strong style="display:block;padding-left:37px;margin-bottom:6px;">rechte Spalte</strong>
<div class="schreiben"><span class="parentbox" style="background-color:#fff">
{{ pimcore_wysiwyg("text-wysiwyg-rechts", {
"height": 100,
"width": 735,
"customConfig": "/bundles/app/static/backend/js/ckeditor/documents/text-wysiwyg.js"
})
}}
</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="constrainer-inner edgepadding {{ abstandClasses }}">
<div class="layout-columns-2-multiple">
<div class="font-light ">{{ pimcore_wysiwyg("text-wysiwyg-links").getData() | raw }}</div>
<div class="font-light ">{{ pimcore_wysiwyg("text-wysiwyg-rechts").getData() | raw }}</div>
</div>
</div>
{% endif %}