templates/snippets/footer.html.twig line 1

Open in your IDE?
  1. {% extends "layout-snippets.html.twig" %}
  2. {% block snippets %}
  3. <footer id="footer">
  4.     <div class="sup-footer">
  5.         <div uk-grid>
  6.             <div class="uk-width-1-2@s uk-width-2-5@m uk-width-1-5@l">
  7.                 {% if document.property('urlLogoFooter') %}
  8.                 <div id="logo-footer">
  9.                     <a href="{{ document.property('urlLogoFooter') }}" target="_blank">
  10.                         <img src="/static/img/logos/logo-crb.svg" alt="Croix-Rouge de Belgique"/>
  11.                     </a>
  12.                 </div>
  13.                 {% endif %}
  14.                 <div id="service-footer" class="uk-position-relative">
  15.                     <p class="uk-margin-remove">{{ pimcore_textarea("footer-service", {"nl2br" : true})|raw }}</p>
  16.                 </div>
  17.                 <div id="coordonnees-footer">
  18.                     {% if document.property('companyMail') %}
  19.                         <div class="apk-mail">
  20.                             {{ email_obfuscator(document.property('companyMail'))|raw }}
  21.                         </div>
  22.                     {% endif %}
  23.                     {% if document.property('companyAdresse') %}
  24.                     <div class="apk-adresse uk-margin-top">
  25.                         <a href="#" target="_blank">
  26.                             <span>{{ document.property('companyAdresse') }}</span>
  27.                         </a>
  28.                     </div>
  29.                     {% endif %}
  30.                 </div>
  31.                 <div id="numero-vert-footer">
  32.                     {% if document.property('companyPhone') %}
  33.                     <div class="apk-phone">
  34.                         <a href="tel:{{ convert_phone_to_url(document.getProperty('companyPhone')) }}">
  35.                             <span>{{ document.property('companyPhone') }} {{"(N° gratuit)"|trans}}</span>
  36.                         </a>
  37.                     </div>
  38.                     {% endif %}
  39.                 </div>
  40.             </div>
  41.             <div class="uk-width-3-5@m uk-width-4-5@l">
  42.                 {% if editmode %}
  43.                     {% for i in pimcore_block('contentblock').iterator %}
  44.                         <div uk-alert>
  45.                             <div><span class="uk-text-bold">Liens avec titre (optionnel)</span></div>
  46.                             <span class="apk-title-footer">{{ pimcore_input("footer-title") }}</span>
  47.                             {% for i in pimcore_block('quicklink').iterator %}
  48.                                 <div>{{ pimcore_link("quicklink") }}</div>
  49.                             {% endfor %}
  50.                         </div>
  51.                         <div>{{ pimcore_link("quicklink-footer") }}</div>
  52.                     {% endfor %}
  53.                 {% else %}
  54.                     <nav class="uk-nav uk-column-1-2@m uk-column-1-3@l">
  55.                         <ul>
  56.                             {% for i in pimcore_block('contentblock').iterator %}
  57.                                 {% if pimcore_block('quicklink').getElements() %}
  58.                                     <li><span class="uk-text-uppercase">{{ pimcore_input("footer-title") }}</span></li>
  59.                                     <ul class="uk-nav-sub">
  60.                                         {% for i in pimcore_block('quicklink').iterator %}
  61.                                             <li class="uk-padding-remove-top"><span>{{ pimcore_link("quicklink") }}</span></li>
  62.                                         {% endfor %}
  63.                                     </ul>
  64.                                 {% else %}
  65.                                     <li><span>{{ pimcore_link("quicklink-footer") }}</span></li>
  66.                                 {% endif %}
  67.                             {% endfor %}
  68.                             
  69.                         </ul>
  70.                     </nav>
  71.                     <div class="uk-list">
  72.                     </div>
  73.                 {% endif %}
  74.             </div>
  75.         </div>
  76.     </div>
  77. </footer>
  78. {% endblock snippets %}