home.html.twig 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. {% extends 'partials/base.html.twig' %}
  2. {% block content %}
  3. <div class="columns large-12 home_top">
  4. {% if page.header.activate_top == true %}
  5. {% set top = page.find(page.header.top) %}
  6. <div class="une row" style="background-image:url('{{top.url}}/{{top.header.media_thumbnail}}'); left:0;">
  7. <div class="columns small-3 bl">
  8. <h1>A la une</h1>
  9. </div>
  10. <div class="columns small-12 small-offset-0">
  11. <div class="row">
  12. <div class="columns medium-6 small-8 small-offset-1 ">
  13. <a href="{{top.url}}">
  14. <mark>{{top.title}}</mark>
  15. <span class="tag" ><span>{{ top.header.taxonomy.tag|first }}</span></span>
  16. </a>
  17. </div>
  18. </div>
  19. </div>
  20. <div class="columns large-12 close_col">
  21. <a href="#" class="close"></a>
  22. </div>
  23. </div>
  24. {% endif %}
  25. <div class="row">
  26. <div id="carousel" class="columns small-12">
  27. {% for image_list in page.header.gallery %}
  28. {% set elem = page.find(image_list.url) %}
  29. <div class='content'>
  30. <a href="{{base_url}}{{image_list.url}}">
  31. <mark>{{elem.title}}</mark>
  32. <img src="{{page.url}}/{{ image_list.image }}" alt="">
  33. </a>
  34. </div>
  35. {% endfor %}
  36. </div>
  37. </div>
  38. </div>
  39. <div class="columns large-4 medium-12 small-12">
  40. </div>
  41. <div class="large-7 medium-12 medium-offset-0 small-10 small-offset-1 intro">
  42. {{ page.content }}
  43. {# {% if lang == "fr" %}
  44. <a class="seemore" href="le-mouvement"> Qui sommes-nous ? </a>
  45. {% else %}
  46. <a class="seemore" href="le-mouvement"> Who are we ? </a>
  47. {% endif %} #}
  48. </div>
  49. <div class="columns small-4 small-offset-1 big_buttons home_button" >
  50. <a href="le-mouvement" style="background:url('{{ url('theme://images/photo_home_qui.jpg') }}') rgba(233, 77, 26, 0.4);">
  51. {% if lang == "fr" %}
  52. <h3 class="inter"> Qui sommes-nous ?</h3>
  53. {% else %}
  54. <h3 class="inter"> Who are we ?</h3>
  55. {% endif %}
  56. {# <img src="{{ url('') }}" alt=""> #}
  57. </a>
  58. </div>
  59. <div class="columns small-3 big_buttons home_button" >
  60. {% if lang == "fr" %}
  61. <a target="_blank" href="le-mouvement#devenir-membre" style="background:url('{{ url('theme://images/photo_home_membre.jpg') }}') rgb( 233, 77, 26);">
  62. <h3 class="inter">Devenir Membre</h3>
  63. {% else %}
  64. <a target="_blank" href="e/en/le-mouvement#become-a-member" style="background:url('{{ url('theme://images/photo_home_membre.jpg') }}') rgb( 233, 77, 26);">
  65. <h3 class="inter">Become a member</h3>
  66. {% endif %}
  67. {# <img src="" alt=""> #}
  68. </a>
  69. </div>
  70. <div class="columns small-3 big_buttons home_button" >
  71. <a target="_blank" href="https://www.helloasso.com/associations/tournons-la-page/formulaires/1" style="background:url('{{ url('theme://images/photo_home_soutenir.jpg') }}') rgb( 233, 77, 26);">
  72. {% if lang == "fr" %}
  73. <h3 class="inter">Nous soutenir</h3>
  74. {% else %}
  75. <h3 class="inter">Make a donation</h3>
  76. {% endif %}
  77. {# <img src="" alt=""> #}
  78. </a>
  79. </div>
  80. <div class="columns small-12">
  81. <br><br>
  82. </div>
  83. <div class="footer columns large-10 large-offset-1">
  84. {% include 'partials/footer_coa.html.twig' %}
  85. </div>
  86. <!-- Actu -->
  87. <div class="post_bottom columns large-10 large-offset-1 medium-12 small-12 ">
  88. <div class="row">
  89. <div class="columns large-10 large-offset-0 medium-10 medium-offset-0 small-12">
  90. <h1 class="inter" >{{ page.find('/actualites').title }}</h1>
  91. </div>
  92. {% for post in page.find('/actualites').children.remove(page.slug).order('date', 'desc').slice(0, 2) %}
  93. {% set source = post.header.media_thumbnail %}
  94. {% if source != null%}
  95. {% set info = "url('"~post.url~"/"~source~"')" %}
  96. {% else %}
  97. {% set info = null %}
  98. {% endif %}
  99. <div class=" columns large-6 medium-6 medium-offset-0 small-8 small-offset-2 recent-posts">
  100. <div class=" row ">
  101. <div class="columns large-12 thumb_news">
  102. <a style="background:{{ info }} rgb( 233, 77, 26);" href="{{ post.url }} ">
  103. <div class="row">
  104. <div class="columns large-8 align-self-bottom">
  105. <mark>{{ post.title }}</mark>
  106. <span class="tag" ><span>{{ post.header.taxonomy.tag|first }}</span></span>
  107. </div>
  108. </div>
  109. </a>
  110. </div>
  111. </div>
  112. </div>
  113. {% endfor %}
  114. {% for post in page.find('/actualites').children.remove(page.slug).order('date', 'desc').slice(2,3) %}
  115. {% set source = post.header.media_thumbnail %}
  116. {% if source != null%}
  117. {% set info = "url('"~post.url~"/"~source~"')" %}
  118. {% else %}
  119. {% set info = null %}
  120. {% endif %}
  121. <div class="columns large-4 medium-4 medium-offset-0 small-8 small-offset-2 recent-posts">
  122. <div class=" row ">
  123. <div class="columns large-12 thumb_news">
  124. <a style="background:{{ info }} rgb( 233, 77, 26);" href="{{ post.url }}">
  125. <div class="row">
  126. <div class="columns large-11 align-self-bottom">
  127. <mark>{{ post.title }}</mark>
  128. <span class="tag" ><span>{{ post.header.taxonomy.tag|first }}</span></span>
  129. </div>
  130. </div>
  131. </a>
  132. </div>
  133. </div>
  134. </div>
  135. {% endfor %}
  136. <div class="columns large-12 medium-12 medium-offset-0 small-8 small-offset-2 ">
  137. {% if lang == "fr" %}
  138. <a class="seemore" href="actualites"> Voir toutes les actualités </a>
  139. {% else %}
  140. <a class="seemore" href="actualites"> See all the news </a>
  141. {% endif %}
  142. </div>
  143. </div>
  144. </div>
  145. {% endblock %}