templates/component/footer/footer_corporate.html.twig line 1

Open in your IDE?
  1. {#
  2.     component: footer-corporate
  3.     title {string}: Titre
  4.     to {string}: Lien
  5.   
  6. #}
  7. {% set props = {
  8.   links:[{
  9.     title:"CGV",
  10.     to:"#"
  11.   },{
  12.     title:"Mentions légales",
  13.     to:"#"
  14.   },{
  15.     title:"RGPD",
  16.     to:"#"
  17.   },{
  18.     title:"Presse",
  19.     to:"#"
  20.   },{
  21.     title:"Plan du site",
  22.     to:"#"
  23.   },]
  24. }|merge(props|default({}))  %}
  25. <div data-component="footer-corporate" class="FooterCorporate-component">
  26.   <div class="l-container">
  27.     <div class="l-row">
  28.       <div class="l-column FooterCorporate-main">
  29.         {# Links #}
  30.         <ul class="FooterCorporate-linksList">
  31.                 {% for link in props.links %}
  32.           <li class="FooterCorporate-linkItem">
  33.             <a href="{{ link.to }}" class="FooterCorporate-link" target="{{link.target}}">{{ link.title }}</a>
  34.           </li>
  35.                 {% endfor %}
  36.         </ul>
  37.         {# Logos #}
  38.         <div class="FooterCorporate-banks">
  39.           <div class="FooterCorporate-bank">
  40.             {% include "component/svg.html.twig" with {
  41.               props: {
  42.                 name: 'mastercard'
  43.               }
  44.             } %}
  45.           </div>
  46.           <div class="FooterCorporate-bank">
  47.             {% include "component/svg.html.twig" with {
  48.               props: {
  49.                 name: 'visa'
  50.               }
  51.             } %}
  52.           </div>
  53.         </div>
  54.       </div>
  55.     </div>
  56.   </div>
  57. </div>