templates/module/Content/__content-2column.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     {{ include('includes/backend-kopf.html.twig') }}
  3.     {% set tabContentArray = {1: 'Optional', 2: 'linke Text-Spalte',3: 'rechte Text-Spalte'} %}
  4.     {% set tab = 1 %}
  5.     <div id="content">        
  6.             {% if tabContentArray is defined and tab in tabContentArray|keys %}
  7.                 {{ admin_tabs(tab, tabContentArray) | raw }}
  8.             {% endif %} 
  9.             <section class="tabContent">
  10.                 <p class="hl">Optionale Einstellung:</p>
  11.                 {% set element = 'artikel' %}
  12.                 <div id="{{ element }} ">
  13.                     {{ pimcore_multiselect(element, {
  14.                             'width': 200,
  15.                             'height': 100,
  16.                             'store': [
  17.                                 ['abstand-top', 'Abstand nach oben'],
  18.                                 ['abstand-bottom', 'Abstand nach unten']
  19.                             ]
  20.                         }) }}
  21.                 </div>
  22.             </section>
  23.             {% if tabContentArray is defined and 2 in tabContentArray|keys %}
  24.                 {{ admin_tabs(2, tabContentArray) | raw }}
  25.                 <section class="tabContent">
  26.                     <strong style="display:block;padding-left:37px;margin-bottom:6px;">linke Spalte</strong>
  27.                     <div class="schreiben"><span class="parentbox" style="background-color:#fff">
  28.                         {{ pimcore_wysiwyg("text-wysiwyg-links", {
  29.                                     "height": 100,
  30.                                     "width": 735,
  31.                                     "customConfig": "/bundles/app/static/backend/js/ckeditor/documents/text-wysiwyg.js"
  32.                                 }) 
  33.                             }}
  34.                         </span></div>
  35.                  </section>
  36.             {% endif %}
  37.             {% if tabContentArray is defined and 3 in tabContentArray|keys %}
  38.                 {{ admin_tabs(3, tabContentArray) | raw }}
  39.                 <section class="tabContent">
  40.                     <strong style="display:block;padding-left:37px;margin-bottom:6px;">rechte Spalte</strong>
  41.                     <div class="schreiben"><span class="parentbox" style="background-color:#fff">
  42.                         {{ pimcore_wysiwyg("text-wysiwyg-rechts", {
  43.                                     "height": 100,
  44.                                     "width": 735,
  45.                                     "customConfig": "/bundles/app/static/backend/js/ckeditor/documents/text-wysiwyg.js"
  46.                                 }) 
  47.                             }}
  48.                         </span></div>
  49.                 </section>            
  50.             {% endif %}
  51.     </div>
  52.     {{ include('includes/backend-fuss.html.twig') }}
  53. {% else %}
  54.     {% set abstand_top_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-top') == true)? ' abstand-top' : '' %}
  55.     {% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
  56.     {% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
  57.     <div class="constrainer-inner edgepadding {{ abstandClasses }}">
  58.             <div class="layout-columns-2-multiple">
  59.                 <div class="font-light ">{{ pimcore_wysiwyg("text-wysiwyg-links").getData() | raw }}</div>
  60.                 <div class="font-light ">{{ pimcore_wysiwyg("text-wysiwyg-rechts").getData() | raw }}</div>
  61.             </div>
  62.     </div>
  63. {% endif %}