footer_coa.html.twig 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <div class="coalition_footer row">
  2. <div class="columns large-12 medium-12 small-12">
  3. {% if lang == "fr" %}
  4. <h1 class="inter">Les Coalitions</h1>
  5. {% else %}
  6. <h1 class="inter">The coalitions</h1>
  7. {% endif %}
  8. </div>
  9. <div class="columns large-12 bcklines" style="position:relative;">
  10. <div class="europe seemore"><a href=" https://tournonslapage.org/fr/coalitions/tlp-europe ">Europe</a></div>
  11. <div class="row">
  12. <div class="columns large-6 medium-6 small-12 coa_info">
  13. {% set pc = page.find('/coalitions') %}
  14. {% set coa = 0 %}
  15. {% set orga = 0 %}
  16. {% set danger = 0 %}
  17. {% for pays in pc.children %}
  18. {% set coa = coa + 1 %}
  19. {% set orga = orga + pays.header.info.nb|number_format %}
  20. {% for item in pays.header.member %}
  21. {% set danger = danger + 1 %}
  22. {% endfor %}
  23. {% endfor %}
  24. <div class="row coa_intro">
  25. <div class="columns large-8 large-offset-1 medium-8 medium-offset-1">
  26. {# {{ pc.header.presentation}} #}
  27. <div class="row" style="text-align:center;">
  28. <div class="columns small-12 medium-10 medium-offset-1">
  29. <h4>{{coa}}</h4>
  30. {{t('COALITION')|e}}
  31. <hr>
  32. </div>
  33. <div class="columns small-12 medium-10 medium-offset-1">
  34. <h4>{{orga}}</h4>
  35. {{t('ORGA')|e}}
  36. <hr>
  37. </div>
  38. <div class="columns small-12 medium-10 medium-offset-1">
  39. <h4>{{danger}}</h4>
  40. {{t('MEMBER')|e}}
  41. <hr>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. {% for p in pc.children if p != page and p.slug != "tlp-europe" %}
  47. <div class="row {{p.slug}} country" data-country="{{p.slug}}">
  48. {# <a href="{{p.url}}"> #}
  49. <div class="columns large-11 large-offset-1 medium-11 medium-offset-1">
  50. <h2>{{ p.title }}</h2>
  51. <p>
  52. {% if lang == "fr" %}
  53. Crée en <b>{{ p.header.info.date }}</b><br/>
  54. &#8213;&nbsp;<b>{{ p.header.info.nb }}</b> organisations<br/>
  55. <u>Organisation coordinatrice</u>&nbsp;:<br/>
  56. <b>{{ p.header.info.orga }}</b>
  57. {% else %}
  58. Created in <b>{{ p.header.info.date }}</b><br/>
  59. &#8213;&nbsp;<b>{{ p.header.info.nb }}</b> organisations<br/>
  60. <u>Coordinating organization</u>&nbsp;:<br/>
  61. <b>{{ p.header.info.orga }}</b>
  62. {% endif %}
  63. </p>
  64. </div>
  65. <div class="columns large-12 medium-12 seemore_container">
  66. {% if lang == "fr" %}
  67. <a class="seemore" href="{{p.url}}">En savoir plus </a>
  68. {% else %}
  69. <a class="seemore" href="{{p.url}}"> Learn more </a>
  70. {% endif %}
  71. </div>
  72. {# </a> #}
  73. </div>
  74. {% endfor %}
  75. {# fix bug #}
  76. <div class="row country active_land unknow" data-country="unknow">
  77. <a href="">
  78. <div class="columns large-11 large-offset-1 medium-11 medium-offset-1">
  79. </div>
  80. <div class="columns large-12 medium-12 seemore_container">
  81. </div>
  82. </a>
  83. </div>
  84. </div>
  85. <div class="columns large-6 medium-6 small-12 map">
  86. {% include 'partials/map.html.twig' %}
  87. </div>
  88. <script>
  89. var url = $(location).attr('href'),
  90. parts = url.split("/"),
  91. last_part = parts[parts.length-1];
  92. $("#"+last_part).addClass("current_coa");
  93. </script>
  94. </div>
  95. </div>
  96. </div>