{% set description = '' %}
{% if not pimcore_relation('bgImage').empty %}
{% set description = getImageDescription(pimcore_relation('bgImage').element) %}
{% endif %}
<section class="big-img-text-slide" title="{{ description }}">
<div class="big-img-text-slide__bg js-lazy-img js-lazy-img--bg"
data-lazy-img-background='{{ pimcore_relation('bgImage').empty ? '' : pimcore_relation('bgImage').element.thumbnail('big-img-text-slide' ) }}'></div>
<div class="container">
<div class="big-img-text-slide__content">
{% if editmode %}
<div class="editmode-box editmode-box--info">
<div class="editmode-box__heading">
Background Image
</div>
{{ pimcore_relation('bgImage', {'types': ['asset'], 'subtypes': ['image'], width: 350}) }}
</div>
{% endif %}
{% if editmode or not pimcore_input('headline').empty %}
<h3 class="js-toc__title big-img-text-slide__title h2">
{{ pimcore_input('headline', {'width': 350}) }}
</h3>
{% endif %}
<div class="big-img-text-slide__wysiwyg wysiwyg">
{{ pimcore_wysiwyg('text', {'width': 350}) }}
</div>
{% if editmode or not pimcore_image('slider_image').empty %}
{% if editmode %}
{{ pimcore_image("slider_image", {
"title": "Drag your image here",
"width": 350,
"height": 255,
"thumbnail": "text-slider-small",
'lowQualityPlaceholder': true,
'imgAttributes': {
'class': 'embed-responsive-item',
}
}) }}
{% else %}
<div class="embed-responsive embed-responsive-4by3 mt-2 mb-2">
{{ pimcore_image("slider_image").thumbnail('text-slider-small').html({
'imgAttributes': {
'class': 'js-lazy-img embed-responsive-item',
'lowQualityPlaceholder': true,
}
})|raw }}
</div>
{% endif %}
{% endif %}
{% if pimcore_link('button').href|slice(0, 4)|lower == 'http' %}
{{ pimcore_link('button', {'class': 'btn btn-outline-white big-img-text-slide__btn', 'data-event-tracking-category': 'LP Partnerteaser STT', 'data-event-tracking-action': hostUrl() ~ getMainRequest().pathInfo(), 'data-event-tracking-label': pimcore_link('button').href}) }}
{% else %}
{{ pimcore_link('button', {'class': 'btn btn-outline-white big-img-text-slide__btn'}) }}
{% endif %}
</div>
</div>
</section>