templates/module/Content/__content-accordion-text-tabellen.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     {{ include('includes/backend-kopf.html.twig') }}
  3.     {% set tabContentArray = {1: 'Optional', 2: 'Content'} %}
  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.                 {{ pimcore_areablock("AreablockAccordion", {
  27.                     "allowed": ["AccordionTextWysiwyg","AccordionTablePerDraganddrop"],
  28.                     "toolbar": false,
  29.                     "areablock_toolbar": {
  30.                         "title": "Content Konfiguration",
  31.                         "width": 274,
  32.                         "x": 570,
  33.                         "y": 41,
  34.                         "xAlign": "left",
  35.                         "buttonWidth": 270,
  36.                         "buttonMaxCharacters": 35
  37.                     }
  38.                 }) }}
  39.                 <br /><br />
  40.             </section>
  41.         {% endif %}
  42.     </div>
  43.     {{ include('includes/backend-fuss.html.twig') }}
  44. {% else %}
  45.     {% set abstand_top_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-top') == true)? ' abstand-top' : '' %}
  46.     {% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
  47.     {% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
  48.     <div class="constrainer-maxsize edgepadding{{ abstandClasses }}">
  49.         <section class="bellows">
  50.             {{ pimcore_areablock("AreablockAccordion", {
  51.                 "params": {
  52.                     "AccordionTablePerDraganddrop": {
  53.                         "accordion": 1
  54.                     }
  55.                 }
  56.             }) }}
  57.         </section>
  58.     </div>
  59. {% endif %}