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

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