templates/snippets/footer-new.html.twig line 1

Open in your IDE?
  1. {% extends "layout-snippets.html.twig" %}
  2. {% block snippets %}
  3. {% if editmode %}
  4.     <div uk-alert>
  5.         <h1 class="uk-h1">FOOTER</h1>
  6.     </div>
  7.     <div class="uk-alert-primary" uk-alert>
  8.         {#
  9.         <div><strong>Texte du dessous</strong></div>
  10.         {{ pimcore_wysiwyg('footer-content') }}
  11.         #}
  12.         <div><strong>Lien déclaration de confidentialité</strong></div>
  13.         {{ pimcore_link('declarationConfidentiaite') }}
  14.         <div><strong>Liste de liens (menu)</strong></div>
  15.         {% for row in pimcore_block('linksList').iterator %}
  16.             {{ pimcore_link('menuLink') }}
  17.         {% endfor %}
  18.         <div><strong>infos en bas à droite</strong></div>
  19.         {{ pimcore_wysiwyg('footerInfor') }}
  20.     </div>
  21. {% else %}
  22.     {% set bgColor = false %}
  23.     {% if footerBackgroundColor %}
  24.         {% set bgColor = "style=background-color:"~footerBackgroundColor %}
  25.     {% endif %}
  26.     <footer id="footer" {{ bgColor }}>
  27.         <div class="apk-footer">
  28.             <div class="uk-container apk-container-1400">
  29.                 {% if showFooterText %}
  30.                     <div class="apk-footer-top apk-container-900">
  31.                         {#{ pimcore_wysiwyg('footer-content') }#}
  32.                         {{ showFooterText|raw }}
  33.                     </div>    
  34.                 {% endif %}
  35.                 <div class="apk-footer-bottom">
  36.                     <div class="uk-grid-medium" uk-grid>
  37.                         <div class="uk-width-expand@m uk-text-center">
  38.                             <div class="apk-container-300">
  39.                                 {% if document.property('footerLogo') %}
  40.                                 <a class="apk-footer-logo" href="{{ document.property('orifarmLink') }}" target="_blank">
  41.                                     {{ document.property('footerLogo').thumbnail('footer-logo').html|raw }}    
  42.                                 </a>
  43.                                 {% endif %}
  44.                             </div>
  45.                         </div>
  46.                         <div class="uk-width-auto@m apk-links-menu">
  47.                             <ul>
  48.                                 <li>
  49.                                     {{ pimcore_link('declarationConfidentiaite') }}
  50.                                 </li>
  51.                                 <li class="uk-visible@m">
  52.                                     <span>{{ "Your website name"|trans }} {{ 'now' | date('Y') }} ©</span>
  53.                                 </li>
  54.                             </ul>
  55.                             <ul>
  56.                                 {% for row in pimcore_block('linksList').iterator %}
  57.                                 <li>
  58.                                     {{ pimcore_link('menuLink') }}
  59.                                 </li>
  60.                                 {% endfor %}
  61.                             </ul>
  62.                         </div>
  63.                         <div class="uk-width-expand@m uk-flex-last@m uk-flex uk-flex-bottom uk-flex-right@m">
  64.                             <div class="apk-footer-info">
  65.                                 {{ pimcore_wysiwyg('footerInfor') }}
  66.                             </div>
  67.                         </div>
  68.                         <div class="uk-width-1-1 uk-margin-remove-top uk-hidden@m">
  69.                             <span>{{ "Your website name"|trans }} {{ 'now' | date('Y') }} ©</span>
  70.                         </div>
  71.                         
  72.                     </div>
  73.                 </div>
  74.             </div>
  75.         </div>
  76.     </footer>
  77. {% endif %}
  78. {% endblock snippets %}