templates/areas/content-timeline/Includes/timelineTeaser.html.twig line 1

Open in your IDE?
  1. <div class="timeline-teaser timeline-teaser--{{ position }} {{ not pimcore_link('button').empty ? 'stretch-link' : '' }} js-fade-in {{ styleModifier | default(null) }}">
  2.     <div class="timeline-teaser__body">
  3.         {% if editmode or not pimcore_input('time').empty %}
  4.             <div class="timeline-teaser__badge">
  5.                 <time>{{ pimcore_input('time', {'placeholder': 'HH:MM Uhr'}) }}</time>
  6.             </div>
  7.         {% endif %}
  8.         {% if editmode or not pimcore_input('subtitle').empty %}
  9.             <div class="timeline-teaser__sub-title">
  10.                 {{ pimcore_input('subtitle') }}
  11.             </div>
  12.         {% endif %}
  13.         {% if editmode or not pimcore_input('title').empty %}
  14.             <h3 class="timeline-teaser__title">
  15.                 {% if not editmode and not pimcore_link('button').empty %}
  16.                 <a href="{{ pimcore_link('button').href }}" target="{{ pimcore_link('button').target }}"
  17.                    class="stretch-link__link">
  18.                     {% endif %}
  19.                     {{ pimcore_input('title') }}
  20.                     {% if not editmode and not pimcore_link('button').empty %}
  21.                 </a>
  22.                 {% endif %}
  23.             </h3>
  24.         {% endif %}
  25.         {% if editmode or not pimcore_wysiwyg('text').empty %}
  26.             <div class="timeline-teaser__content wysiwyg">
  27.                 {{ pimcore_wysiwyg('text') }}
  28.             </div>
  29.         {% endif %}
  30.         {{ pimcore_link('button', {
  31.             'class': 'btn btn-outline-white timeline-teaser__btn'
  32.         }) }}
  33.     </div>
  34.     {% if editmode %}
  35.         <div class="timeline-teaser__embed embed-responsive">
  36.             {{ pimcore_image('image', {
  37.                 thumbnail: 'timeline-teaser',
  38.                 imgAttributes: {
  39.                     class: 'js-lazy-img embed-responsive-item'
  40.                 },
  41.                 lowQualityPlaceholder: true
  42.             }) }}
  43.         </div>
  44.     {% elseif not pimcore_image('image').empty %}
  45.         {% set description = getImageDescription(pimcore_image('image').image) %}
  46.         <div class="timeline-teaser__embed embed-responsive">
  47.             {{ pimcore_image('image').image.thumbnail('timeline-teaser').html({
  48.                 imgAttributes: {
  49.                     class: 'js-lazy-img embed-responsive-item',
  50.                     title: description|default(''),
  51.                     alt: description|default(''),
  52.                 },
  53.                 lowQualityPlaceholder: true
  54.             })|raw }}
  55.         </div>
  56.     {% endif %}
  57. </div>