templates/areas/image-gallery/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="image-gallery {{ pimcore_select('MarginBottom').getData() }}">
  26.     <div class="container">
  27.         <div class="content-container">
  28.             {% if editmode %}
  29.                 {{ pimcore_relations("Gallery", {
  30.                     "title": "Bilder ablegen",
  31.                     "types": ["asset"],
  32.                     "subtypes": {
  33.                         "asset": ["image"]
  34.                     }
  35.                 }) }}
  36.             {% elseif not editmode and not pimcore_relations("Gallery").isEmpty() %}
  37.                 <div class="image-container">
  38.                     {% for image in pimcore_relations("Gallery") %}
  39.                         {{ image.thumbnail('NewsDetailGallery').html | raw }}
  40.                     {% endfor %}
  41.                 </div>
  42.             {% endif %}
  43.         </div>
  44.     </div>
  45. </section>