{% set s = get_slide_data(slide, app.request.locale|default('pl')) %}
{% if s is not null %}
<li>
<div class="flexslider-content container mx-auto">
{% if s.headerHidden %}
<{{ 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') }}>
{% else %}
<{{ s.headerLevel|default('H2') }} class="h1 {{ s.titleFont|default('') }} text-{{ s.titleColor|default('white') }}">{{ s.title|default('') }}</{{ s.headerLevel|default('H2') }}>
{% endif %}
{% if s.descriptionHidden %}
<span class="d-none d-md-block">
{{ s.description|default('')|raw }}
</span>
{% else %}
<span class="d-block">
{{ s.description|default('')|raw }}
</span>
{% endif %}
<div class="w-100">
{% if s.buttonShow|default('no') == 'yes' %}
{% if s.buttonHidden %}
{% if s.buttonText == "zamawiam" %}
<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>
{% else %}
<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>
{% endif %}
{% else %}
{% if s.buttonText == "zamawiam" %}
<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>
{% else %}
<a href="{{ s.link|default('#') }}" style="margin-top: 45px;" class="btn btn-{{ s.buttonColor|default('primary') }} {{ s.buttonSize|default('') }}">{{ s.buttonText|default() }}</a>
{% endif %}
{% endif %}
{% endif %}
</div>
</div>
{% if slide.imageMobile is not null %}
<img src="{{ (CONST_IMAGE_URL ~ slide.imageMobile.fileName|default(''))|imagine_filter('full') }}" class="d-lg-none"/>
{% endif %}
{% if s.image is not null %}
<img src="{{ s.image|default('')|imagine_filter('full') }}" {{ slide.imageMobile is not null ? 'class="d-lg-block d-none"' }}/>
{% endif %}
</li>
{% endif %}