templates/areas/history/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     {% for i in pimcore_block("timeline").iterator %}
  3.         Jahr: {{ pimcore_input("jahr") }}<br>
  4.         Content: {{ pimcore_wysiwyg("content") }}
  5.         Bild: {{ pimcore_image("timeline_img") }}
  6.         Art: <br>{{ pimcore_select("timeline_art", {
  7.         "store": [
  8.             ["event", "event"],
  9.             ["location", "location"],
  10.             ["bild", "bild"],
  11.         ],
  12.         "defaultValue": "event",
  13.         "reload": false
  14.     }) }}
  15.     {% endfor %}
  16. {% else %}
  17.     <div class="container-fluid">
  18.         <section class="cd-timeline js-cd-timeline">
  19.             <div class="container p-0 max-width-lg cd-timeline__container">
  20.                 {% for i in pimcore_block("timeline").iterator %}
  21.                     <div class="cd-timeline__block">
  22.                         <div class="cd-timeline__img cd-timeline__img--picture">
  23.                             {% if pimcore_select("timeline_art") == "bild" %}
  24.                                 <img src="/img/cd-icon-picture.svg" alt="Picture">
  25.                             {% elseif pimcore_select("timeline_art") == "location" %}
  26.                                 <img src="/img/cd-icon-location.svg" alt="Picture">
  27.                             {% else %}
  28.                                 <img src="/img/cd-icon-event.svg" alt="Picture">
  29.                             {% endif %}
  30.                         </div>
  31.                         <div class="cd-timeline__content text-component">
  32.                             {% if pimcore_image("timeline_img").getSrc() %}
  33.                             <div class="image-wrapper">
  34.                                 <img src="{{ pimcore_image("timeline_img").getSrc() }}">
  35.                             </div>
  36.                             {% endif %}
  37.                             {{ pimcore_wysiwyg("content") }}
  38.                             <p class="flex justify-between items-center">
  39.                                 <span class="cd-timeline__date">{{ pimcore_input("jahr") }}</span>
  40.                             </p>
  41.                         </div>
  42.                     </div>
  43.                 {% endfor %}
  44.             </div>
  45.         </section>
  46.     </div>
  47. {% endif %}