templates/areas/call-to-action/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="zitat {{ pimcore_select('MarginBottom').getData() }}">
  26.     <div class="container big">
  27.         {% if not editmode %}
  28.             <div class="zitat-hexagon hexagon as-hex">
  29.                 {{ include('svg/hexagon.html.twig') }}
  30.             </div>
  31.         {% endif %}
  32.         {% if editmode %}
  33.             <p class="zitat-headline">
  34.                 {{ pimcore_textarea("headline",{
  35.                     "required": true,
  36.                     "nl2br": true,
  37.                     "height": 150,
  38.                     "class": "zitat-headline",
  39.                     "placeholder": "Call-to-action Text"
  40.                 }) }}
  41.             </p>
  42.         {% elseif not editmode and not pimcore_textarea('headline').isEmpty() %}
  43.             <p class="zitat-headline">{{ pimcore_textarea('headline').getData() | nl2br }}</p>
  44.         {% endif %}
  45.         {% if editmode %}
  46.             <div class="zitat-link" style="margin-bottom: 0;">
  47.                 {{ pimcore_link("link",{
  48.                     "required": true,
  49.                     "nl2br": true,
  50.                     "height": 30,
  51.                     "class": "button",
  52.                     "placeholder": "Button text"
  53.                 }) }}
  54.             </div>
  55.         {% elseif not editmode and not pimcore_link('link').isEmpty() %}
  56.             <a href="{{ pimcore_link('link').href }}" class="zitat-link button">
  57.                 <span>{{ pimcore_link('link').getText() }}</span>
  58.                 {{ include('svg/arrow-right.html.twig') }}
  59.             </a>
  60.         {% endif %}
  61.     </div>
  62. </section>