single.twig 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {% extends "base.twig" %}
  2. {% block content %}
  3. <div class="content-wrapper">
  4. <article class="post-type">
  5. <img src="{{ Image(post.image_event).src |resize(600, 600) }}" />
  6. <section class="article-content">
  7. <div class="titre">
  8. <h2>{{post.titre}}</h2>
  9. </div>
  10. <div class="__content">
  11. <div class="__date">
  12. <div class="__day">
  13. <span class="start">
  14. <time><p>du</p>{{post.debut_event}}</time>
  15. </span>
  16. <span class="end">
  17. <time><p>au</p>{{post.fin_event}}</time>
  18. </span>
  19. </div>
  20. </div>
  21. <div class="lieu">{{post.lieu}}</div>
  22. <div class="cat {{post.category.slug}}">
  23. {{post.category.name}}
  24. </div>
  25. </div>
  26. <div class="article-body">
  27. <p>{{post.description}}</p>
  28. </div>
  29. <div class="inscription">
  30. <h2>{{post.titre_inscription}}</h2>
  31. {% for Items in post.meta('inscription') %}
  32. {% for detail in Items.choose %}
  33. {% if detail.acf_fc_layout == 'texte' %}
  34. <p class="texte_details">{{ detail.texte }}</p>
  35. {% endif %}
  36. {% if detail.acf_fc_layout == 'lien' %}
  37. <div class="group_link">
  38. <a href="{{detail.lien.lien_hello_asso}}">{{detail.lien.texte_lien_hello_asso}}</a>
  39. </div>
  40. {% endif %}
  41. {% endfor %}
  42. {% endfor %}
  43. </div>
  44. <div class="voir_event">
  45. <a href="{{post.meta('voir_evenement_facebook').lien_facebook}}">{{post.meta('voir_evenement_facebook').texte}}</a>
  46. </div>
  47. <div class="partager">
  48. <h2>{{post.titre_partage}}</h2>
  49. <a href="{{post.meta('liens_reseaux_sociaux').lien_page_facebook}}">
  50. <img src="{{ Image(post.meta('liens_reseaux_sociaux').logo_facebook).src }}" />
  51. </a>
  52. <a href="{{post.meta('liens_reseaux_sociaux').lien_page_twitter}}">
  53. <img src="{{ Image(post.meta('liens_reseaux_sociaux').logo_twitter).src }}" />
  54. </a>
  55. <a href="{{post.meta('liens_reseaux_sociaux').lien_mail}}">
  56. <img src="{{ Image(post.meta('liens_reseaux_sociaux').logo_mail).src }}" />
  57. </a>
  58. </div>
  59. <div class="tarif">
  60. <h2>{{post.titre_tarif}}</h2>
  61. <p>{{post.type_tarif}}</p>
  62. </div>
  63. </section>
  64. </article>
  65. </div>
  66. <div class="other-posts">
  67. {% for item in other %}
  68. {% include 'components/thumbnails/thumbnails.twig' %}
  69. {% endfor %}
  70. </div>
  71. {% endblock %}