{% from '@openform_front_templates/_includes/_icons.html.twig' import arrowright %}
<div class="block-slider__slide block-slider__slide--mobile" style="background: {{slide.section.sectionBackground|default('transparent') }}; overflow: hidden;">
<div class="block-slider__section block-slider__section--content block-slider__mobile__section-content" style="background: {{slide.section.sliderBackground|default('#F5DB7B') }}; width: 100%">
{% include "@openform_front_templates/_blocks_sections/_slides/_blocks/_index.html.twig" with {slide: slide} %}
{% if slide.grupped.textbox|default(false) and slide.grupped.textbox is iterable %}
{% for item in slide.grupped.textbox|slice(0,6) %}
{% if item.Translation[app.request.locale].link %}
<a href="{{item.Translation[app.request.locale].link}}" class="block-slider__mobile__slide-box" style="background:{{item.colorTextBackground|default('#E2F5B9')}};" >
<div class="block-slider__mobile__slide-box-content">
<div class="block-slider__mobile__slide-box-title">
{{item.Translation[app.request.locale].title|nl2br}}
</div>
<div class="block-slider__mobile__slide-box-text" >
{{item.Translation[app.request.locale].text|raw}}
</div>
</div>
{% if item.Translation[app.request.locale].link and item.Translation[app.request.locale].buttonLabel %}
<div class="block-text__btns">
<div class="block-text__btns__btn button-read-more button-read-more--black">
<span>{{item.Translation[app.request.locale].buttonLabel}}</span>
{{arrowright()}}
</div>
</div>
{% endif %}
</a>
{% else %}
<div class="block-slider__mobile__slide-box" style="background:{{item.colorTextBackground|default('#E2F5B9')}};" >
<div class="block-slider__mobile__slide-box-content">
<div class="block-slider__mobile__slide-box-title">
{{item.Translation[app.request.locale].title|nl2br}}
</div>
<div class="block-slider__mobile__slide-box-text" >
{{item.Translation[app.request.locale].text|raw}}
</div>
</div>
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
<div class="block-slider__mobile__section-img" style="width: 100%;">
{% set item = slide.grupped.imageslider[0]|default(null) %}
{% if item %}
{% set img = openform_front_util.getImagePathByType(item.Thumb ?? '','slider1') %} {#iamge to rodzaj kadru#}
{% if img %}
{% if slide and slide.section and slide.section.sectionLink %}<a href="{{slide.section.sectionLink}}">{% endif %}
<img class="block-slider__mobile__img" loading="lazy" src="{{asset(img)}}" alt="{{ item.Translation[app.request.locale].fileAlt }}" title="{{ item.Translation[app.request.locale].fileTitle }}">
{% if slide and slide.section and slide.section.sectionLink %}</a>{% endif %}
{% endif %}
{% endif %}
{% set item = slide.grupped.imagelogo[0]|default(null) %}
{% if item %}
{# {% set img = openform_front_util.getImagePathByType(item.Thumb ?? '','logo') %} #}
{% set img = item.imagePath %}
{% if img and item.Translation[app.request.locale].link %}
<a href="{{item.Translation[app.request.locale].link}}" class="block-slider__mobile__logo">
<img loading="lazy" src="{{asset(img)}}" alt="{{ item.Translation[app.request.locale].fileAlt }}">
{% if item.Translation[app.request.locale].fileTitle %}
<span>{{ item.Translation[app.request.locale].fileTitle }}</span>
{% endif %}
</a>
{% elseif img %}
<div class="block-slider__mobile__logo">
<img loading="lazy" src="{{asset(img)}}" alt="{{ item.Translation[app.request.locale].fileAlt }}">
{% if item.Translation[app.request.locale].fileTitle %}
<span>{{ item.Translation[app.request.locale].fileTitle }}</span>
{% endif %}
</div>
{% endif %}
{% endif %}
</div>
</div>