{# render footer-template #}
{% if editmode %}
{{ include('Layout/includes/css.html.twig') }}
{% endif %}
{% if app.request.get('counter', false) %}
<span class="experience-teaser__counter">
{{ app.request.get('counter') }}
</span>
{% endif %}
{% if editmode %}
<div class="editmode-box editmode-box--info mb-5 text-left w-50">
<div class="editmode-box__header">Settings</div>
<div>
<label>
Optional Video
</label>
{{ pimcore_video('video') }}<br>
<label>Image: </label>
{{ pimcore_image('image', {
thumbnail: 'experience-teaser',
imgAttributes: {
class: 'js-lazy-img embed-responsive-item teaser-animation__img'
},
lowQualityPlaceholder: true,
height: 300,
}) }}<br>
<label>Link: </label> {{ pimcore_link('link', {'class': ''}) }}<br>
<label>Subtitle: </label> {{ pimcore_input('subtitle') }}<br>
</div>
</div>
{% else %}
<section class="experience-teaser teaser-animation stretch-link">
{% if not pimcore_image('image').empty %}
{% set description = getImageDescription(pimcore_image('image').image) %}
<div class="experience-teaser__embed embed-responsive">
{{ pimcore_image('image').image.thumbnail('experience-teaser').html({
imgAttributes: {
class: 'js-lazy-img embed-responsive-item teaser-animation__img'
},
lowQualityPlaceholder: true
})|raw }}
{% do jsConfig().add('lazyImg', true) %}
</div>
{% endif %}
<div class="{{ editmode ? '' : 'experience-teaser__content' }}">
<div>
<h3 class="experience-teaser__title h5">
{{ pimcore_link('link', {'class': 'stretch-link__link', 'title': description|default('')}) }}
</h3>
{% if editmode or not pimcore_input('subtitle').empty %}
<div class="experience-teaser__sub-title">
{{ pimcore_input('subtitle') }}
</div>
{% endif %}
{% if not pimcore_video('video').empty %}
<div class="js-lightbox cursor-pointer" data-lightbox-video="true">
<div class="lightbox-video js-lightbox__item lg-html5 stretch-link__interactive" data-html="#video-lightbox-{{ document.id }}" aria-label="{{ 'experience-teaser.Video ansehen'|trans }}">
<span class="icon icon-play-round mr-2" aria-hidden="true"></span> {{ 'experience-teaser.Video ansehen'|trans }}
</div>
</div>
{% endif %}
</div>
</div>
</section>
{% endif %}
{% if not pimcore_video('video').empty and not editmode %}
<div id="video-lightbox-{{ document.id }}" style="display: none;">
{% if pimcore_video('video').type != 'asset' %}
<div class="embed-responsive embed-responsive-16by9">
{% endif %}
{{ pimcore_video('video', {
'attributes' : {
'class' : 'video-js js-video-js embed-responsive-item'
}
}) }}
{% if pimcore_video('video').type != 'asset' %}
</div>
{% endif %}
</div>
{% endif %}