share_rs.html.twig 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. {% if page == 'moments' %}
  2. {% set class = "d-flex d-lg-block moment" %}
  3. {% else %}
  4. {% set class = "d-flex d-md-block" %}
  5. {% endif %}
  6. {% set url = url('<current>') %}
  7. {% set title = label[0]['#context']['value'] %}
  8. <div class="__rs {{class}}">
  9. <div class="__mail">
  10. <a target="_blank" href="mailto:?Subject= {{title}} {{url}}">
  11. <img src="/themes/custom/popsu_colloque/images/mail.svg" alt="Mail">
  12. </a>
  13. </div>
  14. <div class="__facebook">
  15. <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u={{url}}">
  16. <img src="/themes/custom/popsu_colloque/images/facebook.svg" alt="facebook">
  17. </a>
  18. </div>
  19. <div class="__twitter">
  20. <a target="_blank" href="https://twitter.com/intent/tweet?text={{title}}%20{{url}}%20@popsu_colloque">
  21. <img src="/themes/custom/popsu_colloque/images/twitter.svg" alt="twitter">
  22. </a>
  23. </div>
  24. <div class="__linkedin">
  25. <a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url={{url}}/&title=&summary=&source=">
  26. <img src="/themes/custom/popsu_colloque/images/linkedin.svg" alt="linkedin">
  27. </a>
  28. </div>
  29. </div>