{% set theme = pimcore_checkbox('theme').checked ? 'dark' : 'light' %}
{% set block = pimcore_block('hero-block') %}
{% if editmode %}
{{ include('layout/includes/css.html.twig') }}
<div class="ms-auto">
{% embed 'includes/editmode-settings.html.twig' %}
{% block settings %}
<div class="row">
<div class="col">
{{ pimcore_checkbox('textRight', {
label: 'Text right',
reload: true,
}) }} <br>
{{ pimcore_checkbox('theme', {
label: 'Dark theme',
}) }} <br>
{{ pimcore_image('hero-image', {
width: 200,
}) }}
</div>
<div class="col">
{% for i in block.iterator %}
{{ pimcore_select('icon', {
'store': [
['people', '<span class="icon icon-people"></span>'],
['network', '<span class="icon icon-network"></span>'],
['country', '<span class="icon icon-country"></span>'],
['clock', '<span class="icon icon-clock"></span>'],
]
}) }}<br>
<strong>{{ pimcore_input('hero-bold', {placeholder: 'Bold Text'}) }}</strong>
{{ pimcore_input('hero-text', {placeholder: 'Text'}) }}
{% endfor %}
</div>
</div>
{% endblock %}
{% endembed %}
</div>
{% endif %}
<div class="hero-portal__slide content-gradient">
<ul class="hero-portal__info-container list-unstyled list-inline">
{% if not editmode %}
{% for i in block.iterator %}
<li class="hero-portal__info list-inline-item">
{% if pimcore_select('icon').getData() %}
<span class="icon icon-{{ pimcore_select('icon').getData() }}" aria-hidden="true"></span>
{% endif %}
<span><strong>{{ pimcore_input('hero-bold').getData() }}</strong> {{ pimcore_input('hero-text').getData() }}</span>
</li>
{% endfor %}
{% endif %}
</ul>
<figure class="hero-portal__figure">
{% if not pimcore_image('hero-image').isEmpty() %}
{{ pimcore_image('hero-image').thumbnail('hero').getHtml({
imgAttributes: {
class: 'hero-portal__img',
loading: 'eager'
}
})|raw }}
{% endif %}
<div class="hero-portal__slide-content {{ pimcore_checkbox('textRight').checked ? 'is-right' }}">
<div class="hero-portal__text-container">
<div class="hero-portal__text-block {{ pimcore_checkbox('theme').checked ? 'hero-portal__text-block--dark' : 'hero-portal__text-block--light' }}">
{{ include('includes/title-blocks/title-block.html.twig', {
className: 'title-block__title--hero',
titleTag: 'h1',
hideIntro: true,
noSubtitleGradient: true,
}) }}
{{ pimcore_link('hero-link', {
class: "img-teaser__btn btn btn-#{theme}",
}) }}
</div>
</div>
</div>
</figure>
</div>