single.twig 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. {% extends "base.twig" %}
  2. {% block content %}
  3. {% set group = post.meta('informations') %}
  4. <div class="content-wrapper">
  5. <div class="Btn retour">
  6. <a href="/agenda">Retour</a>
  7. <div class="fleche"></div>
  8. </div>
  9. <article class="row">
  10. <div class="header mobile col-12 d-lg-none d-block">
  11. <h3 class="titre_event">{{ post.title }}</h3>
  12. </div>
  13. <div class="__img_event col-lg-6 col-12">
  14. <img src="{{ Image(post.image_event).src }}" />
  15. </div>
  16. <div class="article-content col-lg-6 col-12 my-3 my-lg-0">
  17. <div class="header d-none d-lg-block">
  18. <h3 class="titre_event">{{ post.title }}</h3>
  19. </div>
  20. <div class="cat {{post.category.slug}}">
  21. | {{post.category.name}} |
  22. </div>
  23. <div class="data">
  24. <div class="__date">
  25. <div class="__day">
  26. {% set start = post.informations_debut_event|date("Ydj") %}
  27. {% set end = post.informations_fin_event|date("Ydj") %}
  28. {% if start == end %}
  29. <span class="start">
  30. Le <time>{{post.informations_debut_event|date("j F Y") }}</time>
  31. de <time>{{post.informations_debut_event|date("G:i")}}</time>
  32. </span>
  33. <span class="end">
  34. à <time>{{post.informations_fin_event|date("G:i")}}</time>
  35. </span>
  36. {% else %}
  37. <span class="start">
  38. Du <time>{{post.informations_debut_event|date("j F Y") }}</time>
  39. à <time>{{post.informations_debut_event|date("G:i")}}</time>
  40. </span>
  41. <span class="end">
  42. <br>Au <time>{{post.informations_fin_event|date("j F Y") }}</time>
  43. à <time>{{post.informations_fin_event|date("G:i")}}</time></br>
  44. </span>
  45. {% endif %}
  46. </div>
  47. </div>
  48. <div class="lieu">{{group.lieu}}</div>
  49. </div>
  50. <div class="wrapper__content">
  51. {{ post.meta('description') }}
  52. </div>
  53. <div class="tarif">
  54. <h3>Tarif</h3>
  55. <p>{{group.type_tarif}}</p>
  56. </div>
  57. <div class="inscription">
  58. {% if group.inscription %}
  59. <h3>Inscription</h3>
  60. {% for Items in group.inscription %}
  61. {% for detail in Items %}
  62. {% if detail.acf_fc_layout == 'en_libre_acces' %}
  63. <p class="texte_details">{{ detail.texte }}</p>
  64. {% endif %}
  65. {% if detail.acf_fc_layout == 'lien_dinscription' %}
  66. <div class="Btn group_link">
  67. <a target="_blank" href="{{detail.url}}">{{detail.texte}}</a>
  68. </div>
  69. {% endif %}
  70. {% endfor %}
  71. {% for detail in Items.type_dinscription %}
  72. {% endfor %}
  73. {% endfor %}
  74. {% endif %}
  75. </div>
  76. <div class="Btn voir_event">
  77. <a href="{{post.meta('voir_evenement_facebook').lien_facebook}}">{{post.meta('voir_evenement_facebook').texte}}</a>
  78. </div>
  79. <div class="partager">
  80. <h3>Partager</h3>
  81. <div class="d-flex">
  82. <a href="https://www.facebook.com/sharer/sharer.php?u={{post.link}}">
  83. <img src="{{theme.link}}/asset/images/fb.svg" />
  84. </a>
  85. <a target="_blank" href="https://twitter.com/intent/tweet?text={{post.link}}">
  86. <img src="{{theme.link}}/asset/images/twitter.svg" />
  87. </a>
  88. <a href="mailto:?subject={{post.link}}" title="Share by Email">
  89. <img src="{{theme.link}}/asset/images/mail.svg" />
  90. </a>
  91. </div>
  92. </div>
  93. </div>
  94. </article>
  95. </div>
  96. {% if other %}
  97. <div class="other">
  98. <div class="header_other">
  99. <h3 class="voir_aussi">Voir aussi</h3>
  100. </div>
  101. <div class="other-posts row">
  102. {% for item in other %}
  103. {% include 'components/thumbnails/thumbnails.twig' with { name : 'other'} %}
  104. {% endfor %}
  105. </div>
  106. </div>
  107. {% endif %}
  108. {% endblock %}