<section class="wysiwyg-with-medium {{ pimcore_checkbox('textLeft').data ? 'wysiwyg-with-medium--wysiwyg-left' : '' }} container {{ pimcore_checkbox('noTopSpace').data ? '' : 'content-block' }} js-fade-in {{ 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 %}
<div>
<label>
{{ pimcore_checkbox('textLeft') }}
Text Left?
</label>
</div>
<div>
<label>
{{ pimcore_checkbox('noTopSpace') }}
No Top Space?
</label>
</div>
{% endblock %}
{% endembed %}
<div class="row row--gutter-width-0 vertical-gutter vertical-gutter--3">
{% if pimcore_checkbox('textLeft').data %}
{{ include('areas/content-wysiwyg-media/Includes/text-section.html.twig', {'isWysiwygLeft': true}) }}
{% endif %}
<div class="col-md-6 vertical-gutter__item {{ pimcore_checkbox('textLeft').data ? 'offset-xl-1' : '' }}">
<div class="h-100 {{ pimcore_checkbox('textLeft').data ? 'container__break-right-half' : 'container__break-left-half' }}">
<div class="h-100 wysiwyg-with-medium__media js-lightbox">
<button class="wysiwyg-with-medium__zoom-btn">
<span class="icon icon-search" aria-hidden="true"></span>
</button>
{% if editmode %}
<div
class="embed-responsive embed-responsive-9by6 embed-responsive-cover">
{{ pimcore_image('image', {
thumbnail: 'wysiwyg-with-media',
imgAttributes: {
class: 'js-lazy-img embed-responsive-item'
},
lowQualityPlaceholder: true,
}) }}
</div>
{% elseif not pimcore_image('image').empty %}
{% do jsConfig().add('lightbox', true) %}
{% set lightBoxSrc = pimcore_image('image').image.thumbnail('lightbox') %}
{% set description = getImageDescription(pimcore_image('image').image) %}
<a href="{{ lightBoxSrc }}"
data-sub-html="{{ description }}"
class="js-lightbox__item embed-responsive embed-responsive-9by6 embed-responsive-cover">
{{ pimcore_image('image').image.thumbnail('wysiwyg-with-media').html({
imgAttributes: {
class: 'js-lazy-img embed-responsive-item',
title: description|default(''),
alt: description|default(''),
},
lowQualityPlaceholder: true,
})|raw }}
</a>
{% endif %}
</div>
</div>
</div>
{% if not pimcore_checkbox('textLeft').data %}
{{ include('areas/content-wysiwyg-media/Includes/text-section.html.twig', {'isWysiwygLeft': false}) }}
{% endif %}
</div>
</section>