{% if editmode %}
{{ include('Layout/includes/css.html.twig') }}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/content'
}) }}
{% embed 'Includes/editmode-settings.html.twig' %}
{% block additionalInfo %}
<div>
<div style="border-style: solid;">
<div class="m-2">
Icon:
{{ pimcore_select('info-overlay-icon', {
store: selectableIcons(),
defaultValue: "corona"
}) }}
</div>
<div class="m-2">
<strong>White Icon Badge:</strong>
{{ pimcore_checkbox('info-overlay-white') }}
</div>
<div class="m-2">
<strong>Title:</strong>
{{ pimcore_input('info-overlay-title') }}
</div>
<div class="m-2">
<strong>Text:</strong>
{{ pimcore_wysiwyg('info-overlay-text') }}
</div>
<div class="m-2 w-25">
<strong>Button:</strong>
{{ pimcore_link('info-overlay-link', {
class: 'btn btn-outline-white w-100 vertical-gutter__item'
}) }}
</div>
<div class="m-2 w-50">
{{ pimcore_image('info-overlay-image', {
thumbnail: 'info-overlay-image',
class: 'js-lazy-img embed-responsive-item',
lowQualityPlaceholder: true,
})|raw }}
</div>
</div>
<br>
<div class="mt-2" style="border-style: solid">
<div class="m-2">
<strong>Show map:</strong> {{ pimcore_checkbox('info-overlay-show-map') }}
</div>
<div class="m-2 w-25">
<strong>Map link:</strong> {{ pimcore_link('info-overlay-show-link', {class: 'Info Link'}) }}
</div>
</div>
</div>
{% endblock %}
{% endembed %}
{% else %}
<section class="info-overlay{{ pimcore_checkbox('info-overlay-show-map').checked ? '' : ' js-info-overlay' }}">
{% if pimcore_checkbox('info-overlay-show-map').checked %}
<a href="{{ pimcore_link('info-overlay-show-link').href }}" class="info-overlay__toggle {{ pimcore_checkbox('info-overlay-white').checked ? 'info-overlay__toggle--white' : '' }}">
<span class="icon icon-{{ pimcore_select('info-overlay-icon').data }} info-overlay__icon" aria-label="Corona Info"></span>
</a>
<section class="info-overlay__map">
<div class="embed-responsive embed-responsive-10by7">
<img src="/static/img/maps/info-overlay-map.svg" alt="Steiermark" aria-hidden="true" class="embed-responsive-item">
<div class="embed-responsive-item">
<div class="info-overlay__map-text wyswiyg">
<a href="{{ pimcore_link('info-overlay-show-link').href }}" aria-label="Info Link">{{ pimcore_link('info-overlay-show-link').text }}</a>
</div>
</div>
</div>
</section>
{% else %}
<button class="info-overlay__toggle js-info-overlay__toggle {{ pimcore_checkbox('info-overlay-white').checked ? 'info-overlay__toggle--white' : '' }}">
<span class="icon icon-{{ pimcore_select('info-overlay-icon').data }} info-overlay__icon" aria-label="Corona Info"></span>
</button>
<section class="info-overlay__content js-info-overlay__content">
<div class="vertical-gutter--4">
<h3 class="font-decorative vertical-gutter__item">{{ pimcore_input('info-overlay-title') }}</h3>
<div class="embed-responsive embed-responsive-16by9 vertical-gutter__item">
{{ pimcore_image('info-overlay-image', {
thumbnail: "info-overlay-image",
imgAttributes: {
class: 'js-lazy-img embed-responsive-item'
},
lowQualityPlaceholder: true,
}) }}
</div>
<div class="wysiwyg vertical-gutter__item">
{{ pimcore_wysiwyg('info-overlay-text') }}
</div>
{% if not pimcore_link('info-overlay-link').empty %}
{{ pimcore_link('info-overlay-link', {
class: 'btn btn-outline-white w-100 vertical-gutter__item'
}) }}
{% endif %}
</div>
</section>
{% endif %}
</section>
{% endif %}