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

Open in your IDE?
  1. {#
  2.     component: footer-socials
  3.     socialTitle {string}: Titre pour les réseaux
  4.   socialItems: [
  5.     link: {
  6.           title {string}: Titre du lien
  7.           to {string}: Lien
  8.     }
  9.     icon {string}: Icône du lien
  10.   ]
  11.   joinsUsTitle {string}: Titre pour rejoindre l'équipe
  12. #}
  13. {% set joinUsLink = "https://recrutement.miramar-lacigale.com/" %}
  14. {% set props = {
  15.   socialTitle: "footer.rs.title"|trans,
  16.   socialItems: social_media,
  17.   joinUsTitle: "footer.team.title"|trans,
  18.   joinUsLink: joinUsLink
  19. }|merge(props|default({}))  %}
  20. <div data-component="footer-socials" class="FooterSocials-component">
  21.     <div class="l-container">
  22.         <div
  23.             class="l-row">
  24.             {# Socials #}
  25.             <div
  26.                 class="l-column FooterSocials-main">
  27.                 {# Socials text #}
  28.                 <p class="FooterSocials-text">{{ props.socialTitle }}</p>
  29.                 {# Socials list #}
  30.                 <ul class="FooterSocials-list">
  31.                     {% for item in props.socialItems %}
  32.                         {# Socials list item #}
  33.                         <li class="FooterSocials-item">
  34.                             <a class="FooterSocials-itemLink" href="{{ item.link.to }}" title="{{ item.link.title }}" rel="noreferrer" target="_blank">
  35.                                 {% include "component/svg.html.twig" with {
  36.                 props: {
  37.                   name: item.icon
  38.                 }
  39.               } %}
  40.                             </a>
  41.                         </li>
  42.                     {% endfor %}
  43.                 </ul>
  44.             </div>
  45.             {# Join #}
  46.             <div class="l-column FooterSocials-joinUs">
  47.                 <p class="FooterSocials-joinUsText">{{ props.joinUsTitle }}</p>
  48.                 <a href="{{ props.joinUsLink }}" title="{{ props.joinUsTitle }}" class="FooterSocials-joinUsLink" target="blank">
  49.                     {% include "component/svg.html.twig" with {
  50.             props: {
  51.               name: 'arrow-right'
  52.             }
  53.           } %}
  54.                 </a>
  55.             </div>
  56.         </div>
  57.     </div>
  58. </div>