templates/footer.html.twig line 1

Open in your IDE?
  1. <footer class="bgblue cwhite">
  2.     <div class="footer-container p-01em">
  3.         {% if snippets is defined and snippets is not empty %}
  4.             <div class="upper-footer dflex lh24">
  5.                 {% if (snippets.content.adresse or snippets.content.numero or snippets.content.email) %}
  6.                     <div class="uf-left dflex fwrap fdc pb-1-75em">
  7.                         {% if snippets.content.sns_logos %}
  8.                             <div class="icon-container dflex aic">
  9.                                 {% for logo_data in snippets.content.sns_logos %}
  10.                                     <a href="{{ logo_data.sns_link }}" class="dblock"><img src="{{ logo_data.sns_logo.formats['sulu-50x50.svg'] }}" width="{{ logo_data.sns_logo.properties.width }}" height="{{ logo_data.sns_logo.properties.height }}" loading="lazy" alt="{{ logo_data.sns_logo | copyright_or_description_or_title }}"></a>
  11.                                 {% endfor %}
  12.                             </div>
  13.                         {% endif %}
  14.                         <div class="coords">
  15.                             {% if snippets.content.adresse %}
  16.                                 {{ snippets.content.adresse|raw }}
  17.                             {% endif %}
  18.                             {% if snippets.content.numero %}
  19.                                 <a href="" class="dblock mb-1em" id="pqna-phone"></a>
  20.                             {% endif %}
  21.                             {% if snippets.content.email %}
  22.                                 <a href="" class="dblock mb-1em" id="pqna-email"></a>
  23.                             {% endif %}
  24.                         </div>
  25.                     </div>
  26.                 {% endif %}
  27.                 {% if snippets.content.footer_menu %}
  28.                     <div class="uf-right dflex jcsa">
  29.                         {% for menu_element in sulu_navigation_root_tree('footer', 3) %}
  30.                             <div class="footer-menu">
  31.                                 <a href="{{ menu_element.url }}">
  32.                                     <div class="fs18 fw600 mb-1em">{{ menu_element.title }}</div>
  33.                                 </a>
  34.                                 <ul>
  35.                                     {% for children in menu_element.children %}
  36.                                         <li class="mb-1em">
  37.                                             <a href="{{ children.url }}" title="{{ children.title }}">{{ children.title }}</a>
  38.                                         </li>
  39.                                     {% endfor %}
  40.                                 </ul>
  41.                             </div>
  42.                         {% endfor %}
  43.                     </div>
  44.                 {% endif %}
  45.             </div>
  46.             <hr class="solid">
  47.             <div class="middle-footer dflex jcsb fs14 lh20">
  48.                 {% for element in snippets.content.blocks_down %}
  49.                     <div class="mf-block dflex">
  50.                         {% if element.text is defined and element.text is not empty %}
  51.                             <div class="mf-text mb-1em">
  52.                                 {{ element.text|raw }}
  53.                             </div>
  54.                         {% endif %}
  55.                         {% if element.type == "block_with_logos" %}
  56.                             <div class="footer-logos mta dflex fwwrap">
  57.                                 {% for logo in element.logos %}
  58.                                     {% if logo.logo.mimeType is defined and logo.logo.mimeType is not empty %}
  59.                                         {% if logo.logo.mimeType == "image/svg" %}
  60.                                             {% set img = logo.logo.formats['300x.svg'] %}
  61.                                         {% else %}
  62.                                             {% set img = logo.logo.formats['300x.webp'] %}
  63.                                         {% endif %}
  64.                                     {% endif %}
  65.                                     {% if logo.logo.properties is defined and logo.logo.properties is not empty %}
  66.                                         <img src="{{ img }}" width="{{ logo.logo.properties.width }}" height="{{ logo.logo.properties.height }}" alt="{{ logo.logo | copyright_or_description_or_title }}" loading="lazy">
  67.                                     {% endif %}
  68.                                 {% endfor %}
  69.                             </div>
  70.                         {% elseif element.type == "block_CTA" %}
  71.                             <a href="{{ element.link }}" class="CTA footer-CTA tac" target="_blank">{{ element.link_text }}</a>
  72.                         {% endif %}
  73.                     </div>
  74.                 {% endfor %}
  75.             </div>
  76.             <div class="bottom-footer">
  77.                 <ul class="dflex jcsb">
  78.                     {% for item in sulu_navigation_root_tree('bottomfooter', 3) %}
  79.                         <li class="bottom-menu-ele">
  80.                             <a href="{{ sulu_content_path(item.url) }}" title="{{ item.title }}" class="fs14 lh20">{{ item.title }}</a>
  81.                         </li>
  82.                     {% endfor %}
  83.                 </ul>
  84.             </div>
  85.             <hr class="solid">
  86.             <div class="copyright tac fs12 fw400 lh16 mf-text"><span>{{ 'now' | date('Y') }} PQN-A. Tous droits réservés.</span></div>
  87.         {% endif %}
  88.     </div>
  89. </footer>