templates/Includes/img-teaser-slider.html.twig line 1

Open in your IDE?
  1. <div class="teaser-slider js-scrolling-row">
  2.     <div class="row js-scrolling-row__row scrolling-row {{ isCentered | default(false) and items|length < 6 ? 'scrolling-row--centered' : ''}} scrolling-row--invisible-scrollbar">
  3.         {% for item in items %}
  4.             <div class="scrolling-row__item col-5 col-md-2 js-scrolling-row__item">
  5.                 {{ include('Includes/Teaser/img-teaser.html.twig', {
  6.                     title: item.title|default(''),
  7.                     href: item.href|default(''),
  8.                     image: item.image|default(null),
  9.                     badgeText: item.badgeText|default(''),
  10.                     isInNav: item.isInNav|default(false),
  11.                     isSearchTeaser: item.isSearchTeaser|default(false),
  12.                     ratio: item.ratio|default(null),
  13.                     styleModifier: ''
  14.                 }) }}
  15.             </div>
  16.         {% endfor %}
  17.     </div>
  18.     {% if items|length > 6 %}
  19.         <div class="scrolling-row-navigation">
  20.             <button class="teaser-slider__btn scrolling-row__button scrolling-row__button--prev js-scrolling-row__prev"><span class="icon icon-arrow-right" aria-label="Previous"></span></button>
  21.             <button class="teaser-slider__btn scrolling-row__button scrolling-row__button--next js-scrolling-row__next"><span class="icon icon-arrow-right" aria-label="Next"></span></button>
  22.         </div>
  23.     {% endif %}
  24. </div>