pays.html.twig 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {% extends 'partials/base.html.twig' %}
  2. {% block content %}
  3. {% include 'partials/head.html.twig' %}
  4. <div class="columns large-3 medium-3 medium-offset-0 small-10 small-offset-1 side_container">
  5. {% include 'partials/sidebar.html.twig' %}
  6. </div>
  7. <div class="post columns large-9 medium-9 small-12">
  8. <div class="row">
  9. <div class=" columns large-1 medium-1 medium-offset-0 small-10 small-offset-1" style="height:auto;">
  10. <div class="row post_picto_container">
  11. <div class="columns large-12 medium-12 medium-offset-0 small-1 small-offset-8 ">
  12. <div class="post_picto">
  13. <a href="mailto:mail?subject={{ page.title }}&body={{page.url}}">
  14. <img src="{{ url('theme://images/contact.svg') }}" alt="">
  15. </a>
  16. </div>
  17. </div>
  18. <div class="columns large-12 medium-12 small-1">
  19. <div class="post_picto">
  20. <a href="https://www.facebook.com/sharer/sharer.php?u={{page.url}}" target="_blank">
  21. <img src="{{ url('theme://images/f.svg') }}" alt="">
  22. </a>
  23. </div>
  24. </div>
  25. <div class="columns large-12 medium-12 small-1">
  26. <div class="post_picto">
  27. <a href="https://twitter.com/intent/tweet?url={{ page.url }}&text={{ page.title }}" target="_blank">
  28. <img src="{{ url('theme://images/t.svg') }}" alt="">
  29. </a>
  30. </div>
  31. </div>
  32. <div class="columns large-12 medium-12 small-1">
  33. <div class="post_picto">
  34. <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url }}&title={{ page.title }}" target="_blank">
  35. <img src="{{ url('theme://images/in.svg') }}" alt="">
  36. </a>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="columns post_content large-11 large-offset-0 medium-11 medium-offset-0 small-10 small-offset-1">
  42. <div class="row info_post">
  43. {% for cat in page.header.taxonomy.tag %}
  44. {% if cat == "Tribune" %}
  45. {% set source = url('theme://images/trib.svg') %}
  46. {% else %}
  47. {% set source = url('theme://images/com.svg') %}
  48. {% endif %}
  49. <div class=" columns large-12"><span class="post_cat"><img src="{{ source }}" alt=""> {{ cat }}</span>&nbsp;&nbsp;{{ (page.header.date != "") ? "Posté le "~page.header.date~", " : '' }} {{ (page.header.publish_date != "") ? "modifié le "~page.header.publish_date : '' }} {{ (page.header.author != "") ? "par "~page.header.author : '' }}</div>
  50. {% endfor %}
  51. </div>
  52. <p>
  53. {{ page.content }}
  54. </p>
  55. </div>
  56. </div>
  57. </div>
  58. {% endblock %}