templates/front/blocks/block-slider-slide.twig line 1

Open in your IDE?
  1. {% set s = get_slide_data(slide, app.request.locale|default('pl')) %}
  2. {% if s is not null %}
  3. <li>
  4.     <div class="flexslider-content container mx-auto">
  5.         {% if s.headerHidden %}
  6.             <{{ s.headerLevel|default('H2') }} class="h1 d-none d-md-block {{ s.titleFont|default('') }} text-{{ s.titleColor|default('white') }}">{{ s.title|default('') }}</{{ s.headerLevel|default('H2') }}>
  7.         {% else %}
  8.             <{{ s.headerLevel|default('H2') }} class="h1 {{ s.titleFont|default('') }} text-{{ s.titleColor|default('white') }}">{{ s.title|default('') }}</{{ s.headerLevel|default('H2') }}>
  9.         {% endif %}
  10.         {% if s.descriptionHidden %}
  11.             <span class="d-none d-md-block">
  12.                 {{ s.description|default('')|raw }}
  13.             </span>
  14.         {% else %}
  15.             <span class="d-block">
  16.                 {{ s.description|default('')|raw }}
  17.             </span>
  18.         {% endif %}
  19.         <div class="w-100">
  20.             {% if s.buttonShow|default('no') == 'yes' %}
  21.                 {% if s.buttonHidden %}
  22.                     {% if s.buttonText == "zamawiam" %}
  23.                         <a href="{{ s.link|default('#') }}" rel="nofollow" style="margin-top: 45px;" class="btn d-none d-md-inline-block btn-{{ s.buttonColor|default('primary') }} {{ s.buttonSize|default('') }}">{{ s.buttonText|default() }}</a>
  24.                     {% else %}
  25.                         <a href="{{ s.link|default('#') }}" style="margin-top: 45px;" class="btn d-none d-md-inline-block btn-{{ s.buttonColor|default('primary') }} {{ s.buttonSize|default('') }}">{{ s.buttonText|default() }}</a>
  26.                     {% endif %}
  27.                 {% else %}
  28.                     {% if s.buttonText == "zamawiam" %}
  29.                         <a href="{{ s.link|default('#') }}" rel="nofollow" style="margin-top: 45px;" class="btn btn-{{ s.buttonColor|default('primary') }} {{ s.buttonSize|default('') }}">{{ s.buttonText|default() }}</a>
  30.                     {% else %}
  31.                         <a href="{{ s.link|default('#') }}" style="margin-top: 45px;" class="btn btn-{{ s.buttonColor|default('primary') }} {{ s.buttonSize|default('') }}">{{ s.buttonText|default() }}</a>
  32.                     {% endif %}
  33.                 {% endif %}
  34.             {% endif %}
  35.         </div>
  36.     </div>
  37.     {% if slide.imageMobile is not null %}
  38.         <img src="{{ (CONST_IMAGE_URL ~ slide.imageMobile.fileName|default(''))|imagine_filter('full') }}" class="d-lg-none"/>
  39.     {% endif %}
  40.     {% if s.image is not null %}
  41.         <img src="{{ s.image|default('')|imagine_filter('full') }}" {{ slide.imageMobile is not null ? 'class="d-lg-block d-none"' }}/>
  42.     {% endif %}
  43. </li>
  44. {% endif %}