templates/areas/headline-text/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     <div class="edit-box">
  3.         <h1>KONFIGURATIONEN FÜR DEN AREABRICK:</h1>
  4.         <div class="flex gap-20">
  5.             <div class="content flex column gap-20">
  6.                 <div class="content-box flex gap-20">
  7.                     <div class="item">
  8.                         <p class="edit-p">Abstand nach unten wählen:</p>
  9.                         {{ pimcore_select("MarginBottom", {
  10.                             "reload": true,
  11.                             "store": [
  12.                                 ["regular", "Normal"],
  13.                                 ["half", "1/2"],
  14.                                 ["small", "1/4"],
  15.                                 ["zero", "kein Abstand"],
  16.                             ],
  17.                             "defaultValue" : "regular"
  18.                         }) }}
  19.                     </div>
  20.                 </div>
  21.             </div>
  22.         </div>
  23.     </div>
  24. {% endif %}
  25. <section class="headline-text {{ pimcore_select('MarginBottom').getData() }}">
  26.     <div class="container">
  27.         {% if editmode %}
  28.             <h1>{{ pimcore_textarea("headline_h1",{
  29.                     "nl2br": true,
  30.                     "height": 200,
  31.                     "placeholder": "HAUPT ÜBERSCHRIFT FÜR DIESE AREA"
  32.                 }) }}
  33.             </h1>
  34.         {% elseif not editmode and not pimcore_textarea('headline_h1').isEmpty() %}
  35.             <h1>{{ pimcore_textarea('headline_h1').getData() | nl2br }}</h1>
  36.         {% endif %}
  37.         <div class="content-container">
  38.             {% if editmode %}
  39.                 <h3>{{ pimcore_textarea("headline",{
  40.                         "nl2br": true,
  41.                         "height": 100,
  42.                         "placeholder": "HAUPT ÜBERSCHRIFT FÜR DIESE AREA"
  43.                     }) }}
  44.                 </h3>
  45.             {% elseif not editmode and not pimcore_textarea('headline').isEmpty() %}
  46.                 <h3>{{ pimcore_textarea('headline').getData() | nl2br }}</h3>
  47.             {% endif %}
  48.             {% if editmode %}
  49.                 <div class="lauf">
  50.                     {{ pimcore_wysiwyg('Content', {
  51.                         height: 300,
  52.                         customConfig: '/assets/js/editmode/config.js'
  53.                     }) }}
  54.                 </div>
  55.             {% elseif not pimcore_wysiwyg('Content').isEmpty() %}
  56.                 <div class="lauf">
  57.                     {{ pimcore_wysiwyg('Content').getData() | raw }}
  58.                 </div>
  59.             {% endif %}
  60.         </div>
  61.     </div>
  62. </section>