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

Open in your IDE?
  1. {% from '@openform_front_templates/_includes/_icons.html.twig' import arrowright %}
  2. <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 %}">
  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.             {% if slide and slide.section and slide.section.sectionLink %}<a class="block-slider__bg-link" href="{{slide.section.sectionLink}}">{% endif %}
  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.             {% if slide and slide.section and slide.section.sectionLink %}</a>{% endif %}
  10.         {% endif %}
  11.     {% endif %}
  12.     <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 %}">
  13.         <div class="block-slider__section block-slider__section--content" style="width: {{slide.section.precentCollumn|default('39')}}%; background:{{slide.section.sliderBackground|default('#FEFFCF')}};">
  14.         
  15.             {% if slide.grupped.textbox|default(false) and slide.grupped.textbox is iterable  %}
  16.                 {% for item in slide.grupped.textbox|slice(0,6) %}
  17.                     {% if item.Translation[app.request.locale].link %}
  18.                     <a href="{{item.Translation[app.request.locale].link}}" class="slide-box" style="background:{{item.colorTextBackground|default('transparent')}}; {{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.                         <div class="slide-box__content">
  20.                             <div class="slide-box__title">
  21.                                 {{item.Translation[app.request.locale].title|nl2br}}
  22.                             </div>
  23.                             <div class="slide-box__text" >
  24.                                 {{item.Translation[app.request.locale].text|raw}}
  25.                             </div>
  26.                         </div>
  27.                         {% if item.Translation[app.request.locale].link and item.Translation[app.request.locale].buttonLabel %}
  28.                             <div class="block-text__btns">
  29.                                 <div class="block-text__btns__btn button-read-more button-read-more--black">
  30.                                     <span>{{item.Translation[app.request.locale].buttonLabel}}</span>
  31.                                     {{arrowright()}}
  32.                                 </div>
  33.                             </div>
  34.                         {% endif %}
  35.                     </a>
  36.                     {% else %}
  37.                     <div class="slide-box" style="background:{{item.colorTextBackground|default('transparent')}}; {{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;'}}" >
  38.                         <div class="slide-box__content">
  39.                             <div class="slide-box__title">
  40.                                 {{item.Translation[app.request.locale].title|nl2br}}
  41.                             </div>
  42.                             <div class="slide-box__text" >
  43.                                 {{item.Translation[app.request.locale].text|raw}}
  44.                             </div>
  45.                         </div>
  46.                         
  47.                     </div>
  48.                     {% endif %}
  49.                 {% endfor %}
  50.             {% endif %}
  51.            
  52.             
  53.             
  54.           
  55.             
  56.             
  57.         </div>
  58.         <div class="block-slider__section" style="width: calc(100% - {{slide.section.precentCollumn|default('39')}}%);">
  59.             {% set item = slide.grupped.imageslider[0]|default(null) %}
  60.             {% if item %}
  61.                 {% if slide and slide.section and slide.section.sectionLink %}<a class="block-slider__bg-link" href="{{slide.section.sectionLink}}">{% endif %}
  62.                 {% if slide and slide.section and slide.section.sectionLink %}</a>{% endif %}
  63.             {% endif %}
  64.                 {% set item = slide.grupped.imagelogo[0]|default(null) %}
  65.                 {% if item %}
  66.                     {# {% set img = openform_front_util.getImagePathByType(item.Thumb ?? '','logo') %} #}
  67.                     {% set img = item.imagePath %}
  68.                     {% if img and item.Translation[app.request.locale].link %}
  69.                             <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;'}}">
  70.                                 <img loading="lazy" src="{{asset(img)}}" alt="{{ item.Translation[app.request.locale].fileAlt }}">
  71.                                 {% if item.Translation[app.request.locale].fileTitle %}
  72.                                     <span>{{ item.Translation[app.request.locale].fileTitle }}</span>
  73.                                 {% endif %}
  74.                             </a>
  75.                         {% elseif img %}
  76.                             <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;'}}">>
  77.                                 <img loading="lazy" src="{{asset(img)}}" alt="{{ item.Translation[app.request.locale].fileAlt }}">
  78.                                 {% if item.Translation[app.request.locale].fileTitle %}
  79.                                     <span>{{ item.Translation[app.request.locale].fileTitle }}</span>
  80.                                 {% endif %}
  81.                             </div>
  82.                         {% endif %}
  83.                 {% endif %}
  84.                 {% if slide.grupped.titleslider[0]|default(null) or slide.grupped.btncta[0]|default(null) %}
  85.                 
  86.                 <div class="block-slider__section__img-content" style="background: {{item.colorTitleBackground|default('#F5DB7B') }}">
  87.                     {% set item = slide.grupped.titleslider[0]|default(null) %}
  88.                     {% if item %}
  89.                         <div style="color:{{item.colorTitle|default('#231F17')}};background:{{item.colorTitleBackground|default('transparent')}}; {{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;'}}" class="block-slider__section__title">{{item.Translation[app.request.locale].title|raw}}</div>
  90.                     {% endif %}
  91.                     {% set item = slide.grupped.btncta[0]|default(null) %}
  92.                     {% if item %}
  93.                         
  94.                         <a href="{{item.Translation[app.request.locale].link}}" class="block-slider__section__btn block-slider__section__btn--cta" style="color:{{item.colorTitle|default('#FFFFFF')}};background:{{item.colorTitleBackground|default('#231F17')}}; {{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;'}}" ><span>{{item.Translation[app.request.locale].buttonLabel}}</span></a>
  95.                     {% endif %}
  96.                 </div>
  97.                 {% endif %}
  98.         </div>
  99.     </div>
  100. </div>