templates/areas/download/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="downloads download {{ pimcore_select('MarginBottom').getData() }}">
  26.     <div class="container">
  27.         <div class="content-container">
  28.         {% if editmode %}
  29.         <h2 class="headline">
  30.             {{ pimcore_textarea("headline",{
  31.                     "nl2br": true,
  32.                     "height": 100,
  33.                     "class": "h2 .headline",
  34.                     "placeholder": "HAUPT ÜBERSCHRIFT FÜR DIESE AREA"
  35.                 }) }}
  36.             </h2>
  37.         {% elseif not editmode and not pimcore_textarea('headline').isEmpty() %}
  38.             <h2 class="headline">{{ pimcore_textarea('headline').getData() | nl2br }}</h2>
  39.         {% endif %}
  40.         {% if editmode %}
  41.             <div style="height: 20px;"></div>
  42.             <div class="lead">
  43.                 <p>Download Objekt hier ablegen:</p>
  44.             </div>
  45.             {{ pimcore_relation("downloadTeaser", {
  46.                 "title": "Download Objekte ablegen",
  47.                 "types": ["object"],
  48.                 "subtypes": {
  49.                     "object": ["object"]
  50.                 },
  51.                 "classes": ["Download"]
  52.             }) }}
  53.         {% else %}
  54.         <div class="downloads-teaser flex">
  55.             {% if not pimcore_relation("downloadTeaser").isEmpty() %}
  56.             <div class="teaser flex space-between">
  57.                 <div class="images-container">
  58.                     <a href="{% if pimcore_relation("downloadTeaser").getElement().getPdf() %}{{ pimcore_relation("downloadTeaser").getElement().getPdf() }}{% else %}/assets/pdf/preisliste_stoeckli_2021_web.pdf{% endif %}" target="_blank" class="flex link" title="Download: {{ pimcore_relation("downloadTeaser").getElement().title }}">
  59.                         <img class="file" src="{{ asset('/assets/images/asset.svg') }}" alt="download" width="31" height="41">
  60.                         <img class="sign" src="{{ asset('/assets/images/download-sign.svg') }}" alt="download" width="31" height="41">
  61.                         <p class="label">{{ pimcore_relation("downloadTeaser").getElement().title }}</p>
  62.                     </a>
  63.                 </div>
  64.                 <a href="{% if pimcore_relation("downloadTeaser").getElement().getPdf() %}{{ pimcore_relation("downloadTeaser").getElement().getPdf() }}{% else %}/assets/pdf/preisliste_stoeckli_2021_web.pdf{% endif %}" target="_blank" class="download-link flex center" title="Download: {{ pimcore_relation("downloadTeaser").getElement().title }}">
  65.                     <img src="{{ asset('assets/images/arrows/redArrow.svg') }}" alt="download" width="20" height="24">
  66.                 </a>
  67.             </div>
  68.             {% endif %}
  69.         </div>
  70.         {% endif %}
  71.         </div>
  72.     </div>
  73. </section>