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

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