src/Package/Openform/Front/Templates/_blocks_sections/_slides/_slide-s10.html.twig line 1

Open in your IDE?
  1.     <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 %}">
  2.         <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 %}
  3.         {% if slide.section.contentPaddingRight or slide.section.contentPaddingRight == 0 %} padding-right: {{slide.section.contentPaddingRight}}px;{% endif %}
  4.         {% if slide.section.contentPaddingTop or slide.section.contentPaddingTop == 0 %} padding-top: {{slide.section.contentPaddingTop}}px;{% endif %}
  5.         {% 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 %}">
  6.             {% include "@openform_front_templates/_blocks_sections/_slides/_blocks/_index.html.twig" with {slide: slide} %}
  7.         </div>
  8.         <div class="block-slider__section" style="width: calc(100% - {{slide.section.precentCollumn|default('39')}}%);">
  9.             {% set item = slide.grupped.imageslider[0]|default(null) %}
  10.             {% if item %}
  11.                 {% set img = item.imagePath %} {#iamge to rodzaj kadru#}
  12.                 {% if img %}
  13.                 {% if slide and slide.section and slide.section.sectionLink %}<a class="block-slider__bg-link" href="{{slide.section.sectionLink}}">{% endif %}
  14.                     <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;'}}">
  15.                 {% if slide and slide.section and slide.section.sectionLink %}</a>{% endif %}
  16.                 {% endif %}
  17.             {% endif %}
  18.                 {% set item = slide.grupped.imagelogo[0]|default(null) %}
  19.                 {% if item %}
  20.                     {# {% set img = openform_front_util.getImagePathByType(item.Thumb ?? '','logo') %} #}
  21.                     {% set img = item.imagePath %}
  22.                         {% if img and item.Translation[app.request.locale].link %}
  23.                             <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;'}}">
  24.                                 <img loading="lazy" src="{{asset(img)}}" alt="{{ item.Translation[app.request.locale].fileAlt }}">
  25.                                 {% if item.Translation[app.request.locale].fileTitle %}
  26.                                     <span>{{ item.Translation[app.request.locale].fileTitle }}</span>
  27.                                 {% endif %}
  28.                             </a>
  29.                         {% elseif img %}
  30.                             <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%">
  31.                                 <img loading="lazy" src="{{asset(img)}}" alt="{{ item.Translation[app.request.locale].fileAlt }}">
  32.                                 {% if item.Translation[app.request.locale].fileTitle %}
  33.                                     <span>{{ item.Translation[app.request.locale].fileTitle }}</span>
  34.                                 {% endif %}
  35.                             </div>
  36.                         {% endif %}
  37.                 {% endif %}
  38.         </div>
  39.     </div>