{% if editmode %}
<div class="uk-container apk-container-1400">
<div uk-alert>
<h1 class="uk-h1">APK BANNER TEXT ABSOLUTE</h1>
</div>
<div class="uk-margin-large-bottom">
<div>Slideshow</div>
{% for i in pimcore_block('contentblock').iterator %}
<div uk-alert>
<div class="uk-text-bold">Image Desktop (Obligatoire)</div>
{{ pimcore_image('banner-image', {width: 400, height: 400}) }}
<div class="uk-text-bold">Image Mobile</div>
{{ pimcore_image('banner-image-mobile', {width: 400, height: 400}) }}
<div class="uk-text-bold">Lien</div>
{{ pimcore_link("banner-link", {"class" : "uk-button"}) }}
</div>
{% endfor %}
{#
<p>{{ pimcore_textarea("absolute-subtitle",{"nl2br" : true}) }}</p>
{{ pimcore_link("absolute-link") }}
{{ pimcore_link("absolute-btn", {"class" : "uk-button"}) }}
#}<hr>
<div class="uk-alert uk-alert-default" uk-alert>
<div>Contenu en absolute</div>
<h2>{{ pimcore_textarea("absolute-title",{"nl2br" : true, "placeholder" : "Titre de la box"}) }}</h2>
<p>{{ pimcore_textarea("absolute-content-top",{"nl2br" : true, "placeholder" : "Sous-titre de la box"}) }}</p>
<hr/>
<p>{{ pimcore_textarea("absolute-subtitle-deux",{"nl2br" : true, "placeholder" : "Titre en dessous"}) }}</p>
{% if document.property('companyPhone') %}
<div class="apk-phone">
<a href="tel:{{ convert_phone_to_url(document.getProperty('companyPhone')) }}">
<span>{{ document.property('companyPhone') }}</span>
</a>
</div>
{% endif %}
</div>
</div>
</div>
{% else %}
<div class="apk-banner-text-absolute-container uk-position-relative">
<div class="apk-container-slideshow">
<div class="uk-position-relative uk-visible-toggle uk-light" tabindex="-1" uk-slideshow="animation: push; autoplay: true; finite: false; autoplay-interval: 6000;">
<div class="uk-slideshow-items">
{% for i in pimcore_block('contentblock').iterator %}
<div>
<div class="uk-visible@m">
{% if not pimcore_link("banner-link").isEmpty() %}
<a href="{{ pimcore_link("banner-link").getHref() }}" target="{{ pimcore_link("banner-link").getTarget() }}">{{ pimcore_image('banner-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}</a>
{% else %}
{{ pimcore_image('banner-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
{% endif %}
</div>
<div class="uk-hidden@m">
{% if not pimcore_link("banner-link").isEmpty() %}
<a href="{{ pimcore_link("banner-link").getHref() }}" target="{{ pimcore_link("banner-link").getTarget() }}">
{% if not pimcore_image("banner-image-mobile").isEmpty() %}
{{ pimcore_image('banner-image-mobile').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
{% else %}
{{ pimcore_image('banner-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
{% endif %}
</a>
{% else %}
{% if not pimcore_image("banner-image-mobile").isEmpty() %}
{{ pimcore_image('banner-image-mobile').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
{% else %}
{{ pimcore_image('banner-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
{% endif %}
{% endif %}
</div>
</div>
{% endfor %}
</div>
<div class="uk-visible@s">
<a class="uk-position-center-left uk-position-small" href uk-slidenav-previous uk-slideshow-item="previous"></a>
<a class="uk-position-center-right uk-position-small" href uk-slidenav-next uk-slideshow-item="next"></a>
</div>
<div class="uk-hidden@s">
<a class="uk-position-bottom-left uk-position-small" href uk-slidenav-previous uk-slideshow-item="previous"></a>
<a class="uk-position-bottom-right uk-position-small" href uk-slidenav-next uk-slideshow-item="next"></a>
</div>
</div>
</div>
<div class="uk-container apk-container-1400 uk-position-relative">
<div class="uk-grid-large uk-position-relative" uk-grid>
<div class="uk-width-2-5@s">
<div class="uk-text-center apk-content-absolute">
{% if not pimcore_textarea("absolute-title").isEmpty %}
<h2>{{ pimcore_textarea("absolute-title",{"nl2br" : true}) }}</h2>
{% endif %}
{% if not pimcore_textarea("absolute-content-top").isEmpty %}
<p class="uk-margin-remove-bottom">{{ pimcore_textarea("absolute-content-top",{"nl2br" : true}) }}</p>
{% endif %}
{% if false %}
{#% if pimcore_website_config('akimediaActivate') %#}
<form method="get" action="{{ path("searchPlasma") }}">
<input style="display: none;" type="checkbox" id="plasma-checkbox" name="plasma" checked>
<div class="section-form-don-question">
<label class="uk-form-label" for="form-stacked-text">{{ "Entrez votre code postal :"|trans }}</label>
<div class="uk-margin">
<input class="uk-input" type="text" id="cp" name="cp"
placeholder="{{ "1000…"|trans }}">
</div>
</div>
<label class="uk-form-label"
for="form-stacked-text">{{ "Entrez vos disponibilités :"|trans }}</label>
<div class="uk-margin">
<div class="uk-grid-small" uk-grid>
<div class="uk-width-auto date-to-date">
<span>{{ "Du"|trans }}</span>
</div>
<div class="uk-width-expand">
<div class="uk-inline">
<span class="uk-form-icon uk-form-icon-flip triggerDatepicker" id="triggerDatepickerDu"><img
src="/static/img/icons/calendar-icon.svg" alt=""/></span>
<input class="uk-input" id="du" name="du"
value="{{ "now"|date("d/m/Y") }}"
placeholder="{{ "jj/mm/aaaa"|trans }}"
data-toggle="datepicker" data-trigger="#triggerDatepickerDu" autocomplete="false">
</div>
</div>
</div>
</div>
<div class="uk-margin">
<div class="uk-grid-small" uk-grid>
<div class="uk-width-auto date-to-date">
<span>{{ "Au"|trans }}</span>
</div>
<div class="uk-width-expand">
<div class="uk-inline">
<span class="uk-form-icon uk-form-icon-flip triggerDatepicker" id="triggerDatepickerAu"><img
src="/static/img/icons/calendar-icon.svg" alt=""/></span>
{% set minCanc = pimcore_website_config('nbjours', 1) %}
{% set nowDateStart = "now"|date_modify('+' ~ minCanc ~ 'day')|date('d/m/Y') %}
<input class="uk-input" id="au" name="au"
value="{{ nowDateStart }}"
placeholder="{{ "jj/mm/aaaa"|trans }}"
data-toggle="datepicker" data-trigger="#triggerDatepickerAu" autocomplete="false">
</div>
</div>
</div>
</div>
<div class="uk-margin-remove-bottom" uk-grid>
<div class="uk-margin-remove-bottom uk-align-center">
<input class="uk-button" value="{{ "Rechercher"|trans }}"
type="submit">
</div>
</div>
</form>
{% else %}
<div class="uk-margin-medium-bottom {{ not pimcore_textarea("absolute-title").isEmpty or not pimcore_textarea("absolute-content-top").isEmpty ? "uk-margin-medium-top" : "" }}">
<a class="uk-button" href="{{ document.property('listeCentresPlasma') }}">
{{ "Je prends rendez-vous"|trans }}
</a>
</div>
{% endif %}
{#
<hr>
<p class="uk-margin-remove-bottom">{{ pimcore_textarea("absolute-subtitle",{"nl2br" : true}) }}</p>
{{ pimcore_link("absolute-link", {"class" : "apk-link"}) }}
<div class="uk-margin-small-top">
{{ pimcore_link("absolute-btn", {"class" : "uk-button"}) }}
</div>
#}
<hr>
<p>{{ pimcore_textarea("absolute-subtitle-deux",{"nl2br" : true}) }}</p>
{% if document.property('companyPhone') %}
<div class="apk-phone">
<a href="tel:{{ convert_phone_to_url(document.getProperty('companyPhone')) }}">
<span>{{ document.property('companyPhone') }}</span>
</a>
</div>
{% endif %}
</div>
</div>
<div class="uk-width-3-5@s uk-flex-first@s">
<div class="apk-content">
<div class="uk-grid-large" uk-grid>
<div class="uk-width-expand@s">
<div class="apk-text-barometre">
<h2>{{"Baromètre Plasma"|trans}}</h2>
<p>{{"Il reste"|trans}} <span id="plasma-plages" class="is-big"></span> {{"plages de rendez-vous possibles sur les 14 prochains jours."|trans}}</p>
<p>{{"Vous voulez nous aider et donner votre plasma,"|trans}}</br> {{"prenez_rendez-vous_plasma"|trans|raw}} {{"dans le site de collecte près de chez vous."|trans}}</p>
</div>
</div>
<div class="uk-width-auto@s apk-image uk-text-center">
<div style="display: none;" id="goutte-tres-critique">
<img src="/static/img/barometre/goutte-plasma-vide-new.svg">
</div>
<div style="display: none;" id="goutte-critique">
<img src="/static/img/barometre/goutte-plasma-presque-vide.svg">
</div>
<div style="display: none;" id="goutte-tres-fragile">
<img src="/static/img/barometre/goutte-plasma-moitie-pleine.svg">
</div>
<div style="display: none;" id="goutte-fragile">
<img src="/static/img/barometre/goutte-plasma-presque-pleine.svg">
</div>
<div style="display: none;" id="goutte-stable">
<img src="/static/img/barometre/goutte-plasma-pleine.svg">
</div>
<h4 class="uk-margin-small-top uk-text-center" id="meteo-type-goutte"></h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}