templates/frontend/actualite/showArticle.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}{# empty Twig template #}
  2. {% block headOnTop %}
  3. {% if jsonLdScript is defined %}
  4. {{ jsonLdScript|raw }}
  5. {% endif %}
  6. {% endblock %}
  7. {% block pageTitle %}
  8. {% include 'frontend/elements/_page_title.html.twig' with {pageTitle: article.title} %}
  9. {% endblock %}
  10. {% block header %}
  11. {% include 'frontend/elements/_blank_header.html.twig' %}
  12. {% endblock %}
  13. {% block body %}
  14. <div class="container-type" id="infos_utiles">
  15. <div class="container content__article_detail">
  16. {{ article.text | raw }} <br/>
  17. <p>Le {{ article.updatedDate | date('d/m/Y') }}</p>
  18. </div>
  19. <div class="text-center">
  20. {% if article.linkLabel is not null and article.linkUrl is not null %}
  21. <a class="btn btn-primary bounce btn__down__artcile" href="{{article.linkUrl}}">{{article.linkLabel}}</a>
  22. {% endif %}
  23. </div>
  24. {% if sejourTitle is defined and sejourTitle is not null %}
  25. <div class="container content__article_detail">
  26. <h2>{{ sejourTitle}}</h2>
  27. {% endif %}
  28. {% if sejours is defined and sejours is not null %}
  29. <div class="row">
  30. {% for sejour in sejours %}
  31. <div class="col-sm-6 col-md-4">
  32. {% include('/frontend/elements/_itemSejour.html.twig') %}
  33. </div>
  34. {% endfor %}
  35. </div>
  36. </div>
  37. {% endif %}
  38. </div>
  39. {% endblock %}