<div class="block-slider__slide block-slider__slide--position-{{slide.section.sliderPosition}}" style="background: {{slide.section.sectionBackground|default('transparent') }}; {% if slide.section.sliderHeight is defined and slide.section.sliderHeight %}height: {{slide.section.sliderHeight}}vh; overflow: hidden;{% endif %}">
<div class="block-slider__section block-slider__section--content" style="background: {{slide.section.sliderBackground|default('#F5DB7B') }}; width: {{slide.section.precentCollumn|default('39')}}%; overflow: hidden;{% if slide.section.contentPaddingLeft or slide.section.contentPaddingLeft == 0 %} padding-left: {{slide.section.contentPaddingLeft}}px;{% endif %}
{% if slide.section.contentPaddingRight or slide.section.contentPaddingRight == 0 %} padding-right: {{slide.section.contentPaddingRight}}px;{% endif %}
{% if slide.section.contentPaddingTop or slide.section.contentPaddingTop == 0 %} padding-top: {{slide.section.contentPaddingTop}}px;{% endif %}
{% if slide.section.contentPaddingBottom or slide.section.contentPaddingBottom == 0 %} padding-bottom: {{slide.section.contentPaddingBottom}}px;{% endif %} {% if slide.section.precentCollumn is same as(0) %}padding:0 0;{% endif %}">
{% include "@openform_front_templates/_blocks_sections/_slides/_blocks/_index.html.twig" with {slide: slide} %}
</div>
<div class="block-slider__section" style="width: calc(100% - {{slide.section.precentCollumn|default('39')}}%);">
{% set item = slide.grupped.imageslider[0]|default(null) %}
{% if item %}
{% set img = item.imagePath %} {#iamge to rodzaj kadru#}
{% if img %}
{% if slide and slide.section and slide.section.sectionLink %}<a class="block-slider__bg-link" href="{{slide.section.sectionLink}}">{% endif %}
<img class="block-slider__section__img" loading="lazy" src="{{asset(img)}}" alt="{{ item.Translation[app.request.locale].fileAlt }}" title="{{ item.Translation[app.request.locale].fileTitle }}" style="{{item.textBlockPaddingTop or item.textBlockPaddingTop == 0 ? 'padding-top: ' ~ item.textBlockPaddingTop ~ 'px;'}} {{item.textBlockPaddingBottom or item.textBlockPaddingBottom == 0 ? 'padding-bottom: ' ~ item.textBlockPaddingBottom ~ 'px;'}} {{item.textBlockPaddingLeft or item.textBlockPaddingLeft == 0 ? 'padding-left: ' ~ item.textBlockPaddingLeft ~ 'px;'}} {{item.textBlockPaddingRight or item.textBlockPaddingRight == 0 ? 'padding-right: ' ~ item.textBlockPaddingRight ~ 'px;'}}">
{% 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__section__logo" style="{{item.textBlockPaddingTop or item.textBlockPaddingTop == 0 ? 'padding-top: ' ~ item.textBlockPaddingTop ~ 'px;'}} {{item.textBlockPaddingBottom or item.textBlockPaddingBottom == 0 ? 'padding-bottom: ' ~ item.textBlockPaddingBottom ~ 'px;'}} {{item.textBlockPaddingLeft or item.textBlockPaddingLeft == 0 ? 'padding-left: ' ~ item.textBlockPaddingLeft ~ 'px;'}} {{item.textBlockPaddingRight or item.textBlockPaddingRight == 0 ? 'padding-right: ' ~ item.textBlockPaddingRight ~ 'px;'}}">
<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__section__logo" style="{{item.textBlockPaddingTop or item.textBlockPaddingTop == 0 ? 'padding-top: ' ~ item.textBlockPaddingTop ~ 'px;'}} {{item.textBlockPaddingBottom or item.textBlockPaddingBottom == 0 ? 'padding-bottom: ' ~ item.textBlockPaddingBottom ~ 'px;'}} {{item.textBlockPaddingLeft or item.textBlockPaddingLeft == 0 ? 'padding-left: ' ~ item.textBlockPaddingLeft ~ 'px;'}} {{item.textBlockPaddingRight or item.textBlockPaddingRight == 0 ? 'padding-right: ' ~ item.textBlockPaddingRight ~ 'px;'}}"> style="max-width: calc(100% - {{slide.section.precentCollumn|default('39')}}%); - 15%">
<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>