{% extends "layout-snippets.html.twig" %}
{% block snippets %}
<footer id="footer">
<div class="sup-footer">
<div uk-grid>
<div class="uk-width-1-2@s uk-width-2-5@m uk-width-1-5@l">
{% if document.property('urlLogoFooter') %}
<div id="logo-footer">
<a href="{{ document.property('urlLogoFooter') }}" target="_blank">
<img src="/static/img/logos/logo-crb.svg" alt="Croix-Rouge de Belgique"/>
</a>
</div>
{% endif %}
<div id="service-footer" class="uk-position-relative">
<p class="uk-margin-remove">{{ pimcore_textarea("footer-service", {"nl2br" : true})|raw }}</p>
</div>
<div id="coordonnees-footer">
{% if document.property('companyMail') %}
<div class="apk-mail">
{{ email_obfuscator(document.property('companyMail'))|raw }}
</div>
{% endif %}
{% if document.property('companyAdresse') %}
<div class="apk-adresse uk-margin-top">
<a href="#" target="_blank">
<span>{{ document.property('companyAdresse') }}</span>
</a>
</div>
{% endif %}
</div>
<div id="numero-vert-footer">
{% if document.property('companyPhone') %}
<div class="apk-phone">
<a href="tel:{{ convert_phone_to_url(document.getProperty('companyPhone')) }}">
<span>{{ document.property('companyPhone') }} {{"(N° gratuit)"|trans}}</span>
</a>
</div>
{% endif %}
</div>
</div>
<div class="uk-width-3-5@m uk-width-4-5@l">
{% if editmode %}
{% for i in pimcore_block('contentblock').iterator %}
<div uk-alert>
<div><span class="uk-text-bold">Liens avec titre (optionnel)</span></div>
<span class="apk-title-footer">{{ pimcore_input("footer-title") }}</span>
{% for i in pimcore_block('quicklink').iterator %}
<div>{{ pimcore_link("quicklink") }}</div>
{% endfor %}
</div>
<div>{{ pimcore_link("quicklink-footer") }}</div>
{% endfor %}
{% else %}
<nav class="uk-nav uk-column-1-2@m uk-column-1-3@l">
<ul>
{% for i in pimcore_block('contentblock').iterator %}
{% if pimcore_block('quicklink').getElements() %}
<li><span class="uk-text-uppercase">{{ pimcore_input("footer-title") }}</span></li>
<ul class="uk-nav-sub">
{% for i in pimcore_block('quicklink').iterator %}
<li class="uk-padding-remove-top"><span>{{ pimcore_link("quicklink") }}</span></li>
{% endfor %}
</ul>
{% else %}
<li><span>{{ pimcore_link("quicklink-footer") }}</span></li>
{% endif %}
{% endfor %}
</ul>
</nav>
<div class="uk-list">
</div>
{% endif %}
</div>
</div>
</div>
</footer>
{% endblock snippets %}