templates/areas/wysiwygheading/full.html.twig line 1

Open in your IDE?
  1. {% if mode == "editmode" %}
  2.     <div class="my-3 flex flex-wrap overflow-hidden">
  3.         <div class="w-full overflow-hidden {{ azz }} list-{{ azzColor }}">
  4.             Text:<br />
  5.             <small><b>Hinweis:</b> Eingefügte Links können mit der Klasse 'morelink' versehen werden.
  6.             Dazu den Link mit rechter Maustaste bearbeiten und bei
  7.             'Erweitert / Formatvorlagenklasse' -> <i>morelink</i> eintragen.
  8.             <br />
  9.             Eingefügte Tabellen werden mit einem Standard-Style versehen. Um eine unformatierte Tabelle
  10.             zu erhalten, auf die Tabellen-Eigenschaften klicken und bei 'Erweitert / Stylesheet Klasse'
  11.             den Wert <i>nocss</i> eintragen.</small>
  12.                 {{ pimcore_wysiwyg("text") }}
  13.         </div>
  14.         <div class="w-full overflow-hidden">
  15.             {% include 'bullet-points.html.twig' with { 'name': 'bullets', 'description': 'Aufzählungszeichen' } %}
  16.         </div>
  17.         <div class="w-full overflow-hidden">
  18.             {% include 'color-selector.html.twig' with { 'name': 'bulletColor', 'description': 'Aufzählungszeichen-Farbe', 'default': 'stwh-rot-2024' } %}
  19.         </div>
  20.         <div class="w-6/12 overflow-hidden">
  21.             Hintergrundbild für die Sektion:
  22.         </div>
  23.         <div class="w-6/12 overflow-hidden">
  24.             {{ pimcore_image("secionPicture") }}
  25.         </div>
  26.     </div>
  27.     <hr />
  28.     <div class="my-3 flex flex-wrap overflow-hidden">
  29.         <div class="w-1/4 overflow-hidden">
  30.             Button-Link (optional):
  31.         </div>
  32.         <div class="w-1/4 overflow-hidden">
  33.             {{ pimcore_link("buttonlink") }}
  34.         </div>
  35.         <div class="w-2/4 overflow-hidden">
  36.             {% include 'color-selector.html.twig' with { 'name': 'buttoncolor', 'description': 'Button-Farbe', 'type': 'button' } %}
  37.         </div>
  38.     </div>
  39.     <hr />
  40. {% else %}
  41.     <div class="container mx-auto px-5">
  42.         <div class="flex flex-wrap">
  43.             {% set bordy = '' %}
  44.             {% set borderColor = pimcore_select('headline-divider-color').getData() %}
  45.             {% if pimcore_checkbox('hasDivider').isChecked() %}
  46.                 {% set bordy = 'border-b-2 pb-2 border-' ~ borderColor %}
  47.             {% endif %}
  48.             {% if pimcore_textarea("headline") != '' %}
  49.                 {% set seo = pimcore_select("seo").getData() %}
  50.                 <{{ seo }} class="text-{{ pimcore_select("seoHeadlineColor").getData() }} block mb-5 md:mb-10 text-2xl md:text-4xl lg:text-5xl font-bold {{ bordy }}">
  51.                     {{ pimcore_textarea("headline")|nl2br }}
  52.                 </{{ seo }}>
  53.             {% endif %}
  54.             <div class="w-full lg:mx-auto">
  55.                 <div class="text-lg {{ azz }} list-{{ azzColor }}">
  56.                     {{ pimcore_wysiwyg("text") }}
  57.                 </div>
  58.             </div>
  59.             {% if pimcore_link("buttonlink") != '' %}
  60.                 {% include 'widgets/button.html.twig' with { name: 'buttonlink', backColor: pimcore_select('buttoncolor').getData() } %}
  61.             {% endif %}
  62.         </div>
  63.     </div>
  64. {% endif %}