modules.html.twig 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {% extends 'partials/base.html.twig' %}
  2. {% block content %}
  3. {% include 'partials/head.html.twig' %}
  4. {# <div class="columns medium-12 medium-offset-0 small-11 small-offset-1 ss_menu">
  5. <div class="row">
  6. {% for module in page.header.sections %}
  7. <div class="">
  8. <a href="#{{module.title|hyphenize}}" >{{module.title}}</a>
  9. </div>
  10. {% endfor %}
  11. </div>
  12. </div> #}
  13. <div class="columns large-3 medium-3 medium-offset-0 small-10 small-offset-1 side_container">
  14. <div class="row">
  15. {% for module in page.header.sections %}
  16. <div class="columns small-12 ss_menu">
  17. <a href="#{{module.title|hyphenize}}" >{{module.title}}</a>
  18. </div>
  19. {% endfor %}
  20. <div class="columns small-12 extra_content">
  21. {% if lang == "fr" %}
  22. <h4>Consultez aussi</h4>
  23. {% else %}
  24. <h4>Consult Also</h4>
  25. {% endif %}
  26. </div>
  27. <div class="columns small-12 extra_content">
  28. {% if lang == "fr" %}
  29. <a href="{{page.find('/home/lappel').url}}" >L'appel</a>
  30. {% else %}
  31. <a href="{{page.find('/home/lappel').url}}" >Our plea</a>
  32. {% endif %}
  33. </div>
  34. <div class="columns small-12 extra_content">
  35. {% if lang == "fr" %}
  36. <a href="{{page.find('/home/5-questions').url}}" >5 questions pour comprendre la mobilisation</a>
  37. {% else %}
  38. <a href="{{page.find('/home/5-questions').url}}" >5 questions to understand mobilisation</a>
  39. {% endif %}
  40. </div>
  41. {# <div class="columns small-12 extra_content">
  42. {% if lang == "fr" %}
  43. <a href="{{page.find('/membres-en-danger').url}}" >Nos membres en danger</a>
  44. {% else %}
  45. <a href="{{page.find('/membres-en-danger').url}}" >Our members in danger</a>
  46. {% endif %}
  47. </div> #}
  48. {# <div class="columns small-12 extra_content">
  49. {% if lang == "fr" %}
  50. <a href="{{page.find('/podium').url}}" >Podiums des dictateurs au pouvoir</a>
  51. {% else %}
  52. <a href="{{page.find('/podium').url}}" >Dictators podium</a>
  53. {% endif %}
  54. </div> #}
  55. </div>
  56. {% include 'partials/sidebar.html.twig' %}
  57. </div>
  58. <div class="post columns large-9 medium-9 small-12">
  59. <div class="row">
  60. <div class=" columns large-1 medium-1 medium-offset-0 small-10 small-offset-1" style="height:auto;">
  61. <div class="row post_picto_container">
  62. <div class="columns large-12 medium-12 medium-offset-0 small-1 small-offset-8 ">
  63. <div class="post_picto">
  64. <a href="mailto:mail?subject={{ page.title }}&body={{uri.url}}">
  65. <img src="{{ url('theme://images/contact.svg') }}" alt="">
  66. </a>
  67. </div>
  68. </div>
  69. <div class="columns large-12 medium-12 small-1">
  70. <div class="post_picto">
  71. <a href="https://www.facebook.com/sharer/sharer.php?u={{uri.url}}" target="_blank">
  72. <img src="{{ url('theme://images/f.svg') }}" alt="">
  73. </a>
  74. </div>
  75. </div>
  76. <div class="columns large-12 medium-12 small-1">
  77. <div class="post_picto">
  78. <a href="https://twitter.com/intent/tweet?url={{ uri.url }}&text={{ page.title }}" target="_blank">
  79. <img src="{{ url('theme://images/t.svg') }}" alt="">
  80. </a>
  81. </div>
  82. </div>
  83. <div class="columns large-12 medium-12 small-1">
  84. <div class="post_picto">
  85. <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ uri.url }}&title={{ page.title }}" target="_blank">
  86. <img src="{{ url('theme://images/in.svg') }}" alt="">
  87. </a>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="columns post_content large-11 large-offset-0 medium-11 medium-offset-0 small-10 small-offset-1">
  93. {% for module in page.header.sections %}
  94. <div class="row modules">
  95. <div class="columns small-12 ">
  96. <h3 class="inter" id="{{module.title|hyphenize}}">{{module.title}}</h3>
  97. <p>{{ module.text}}</p>
  98. </div>
  99. </div>
  100. {% endfor %}
  101. </div>
  102. </div>
  103. </div>
  104. <script>
  105. $("table img").each(function(){
  106. $(this).attr("src", window.location.href+"/"+$(this).attr("src"))
  107. });
  108. </script>
  109. {% endblock %}