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

Open in your IDE?
  1.     <div class="container 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; 
  3.         {% if slide.section.contentPaddingLeft or slide.section.contentPaddingLeft == 0 %} padding-left: {{slide.section.contentPaddingLeft}}px;{% endif %}
  4.         {% if slide.section.contentPaddingRight or slide.section.contentPaddingRight == 0 %} padding-right: {{slide.section.contentPaddingRight}}px;{% endif %}
  5.         {% if slide.section.contentPaddingTop or slide.section.contentPaddingTop == 0 %} padding-top: {{slide.section.contentPaddingTop}}px;{% endif %}
  6.         {% if slide.section.contentPaddingBottom or slide.section.contentPaddingBottom == 0 %} padding-bottom: {{slide.section.contentPaddingBottom}}px;{% endif %}
  7.         {% if slide.section.precentCollumn is same as(0) %}padding:0 0;{% endif %}">
  8.             
  9.             
  10.             {% include "@openform_front_templates/_blocks_sections/_slides/_blocks/_index.html.twig" with {slide: slide} %}
  11.         </div>
  12.         <div class="block-slider__section" style="width: calc(100% - {{slide.section.precentCollumn|default('39')}}%); overflow: hidden;">
  13.             {% set item = slide.grupped.imageslider[0]|default(null) %}
  14.             {% if item %}
  15.                 {% set img = item.imagePath %} {#iamge to rodzaj kadru#}
  16.                 {% if img %}
  17.                     {% if slide and slide.section and slide.section.sectionLink %}<a href="{{slide.section.sectionLink}}">{% endif %}
  18.                     <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;'}}">
  19.                     {% if slide and slide.section and slide.section.sectionLink %}</a>{% endif %}
  20.                 {% endif %}
  21.             {% 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>