<div class="container container-md content-block {{ include('Layout/includes/editmode-box-classes.html.twig') }} {{ styleModifier | default(null) }} {{ moveUp | default(false) ? 'img-text-slide--move-up' : '' }} {{ not pimcore_input('anchorTitle').empty ? 'js-anchor-nav__item' : '' }}" {% if not pimcore_input('anchorTitle').empty %}data-anchor-nav-title="{{ pimcore_input('anchorTitle').frontend }}"{% endif %}>
{% embed 'Includes/editmode-settings.html.twig' %}
{% block additionalInfo %}
displayed slide is changing every 24 h.
{% endblock %}
{% endembed %}
{% if editmode %}
{% for i in pimcore_iterate_block(pimcore_block('slides', {limit: 12})) %}
<div class="row row--gutter-width-0">
<div class="col-md-7 order-md-0 order-1">
<div class="img-text-slide__img-wrapper">
<div class="embed-responsive embed-responsive-7by5 {{ editmode ? '' : 'img-text-slide__img' }}">
{% set description = getImageDescription(pimcore_image('image').image, true) %}
{{ pimcore_image('image', {
thumbnail: 'img-text-slide',
imgAttributes: {
class: 'js-lazy-img embed-responsive-item'
},
lowQualityPlaceholder: false,
title: description|default(''),
alt: description|default('')
})|raw }}
</div>
{% do jsConfig().add('lazyImg', true) %}
</div>
</div>
{{ include('areas/media-img-text-slide-rotating/includes/text-section.html.twig') }}
</div>
{% endfor %}
{% else %}
{% set randElements = randomizeBlock(pimcore_block('slides').elements, document) %}
<div class="js-render-template" style="min-height: 1px;">
<template class="js-render-template__template">
<div class="js-img-text-slider img-text-slider">
<div class="swiper-container js-img-text-slider__slider img-text-slider__container">
<div class="swiper-wrapper img-teaser-swiper__wrapper">
{% for element in randElements %}
<div class="swiper-slide">
<div class="row row--gutter-width-0">
<div class="col-md-7 order-md-0 order-1">
<div class="img-text-slide__img-wrapper">
{% if not element.image('image').isEmpty() %}
<div class="embed-responsive embed-responsive-7by5 {{ editmode ? '' : 'img-text-slide__img' }}">
{% set description = getImageDescription(element.image('image')) %}
{{ element.image('image').thumbnail('img-text-slide').html({
imgAttributes: {
class: 'js-lazy-img embed-responsive-item',
title: description|default(''),
alt: description|default(''),
},
lowQualityPlaceholder: false
})|raw }}
</div>
{% endif %}
{% do jsConfig().add('lazyImg', true) %}
</div>
</div>
{{ include('areas/media-img-text-slide-rotating/includes/text-section.html.twig', {
element: element,
}) }}
</div>
</div>
{% endfor %}
</div>
</div>
{% if randElements | length > 1 %}
<div class="swiper-navigation img-text-slider__swiper-navigation img-text-slider__swiper-navigation--left">
<button class="swiper-button swiper-button--prev img-text-slider__btn js-img-text-slider__prev"><span class="icon icon-arrow-right" aria-label="Previous"></span></button>
<button class="swiper-button swiper-button--next img-text-slider__btn js-img-text-slider__next"><span class="icon icon-arrow-right" aria-label="Next"></span></button>
</div>
{% endif %}
</div>
</template>
</div>
{% endif %}
</div>