templates/front/modules/text/block.html.twig line 1

Open in your IDE?
  1. <div class="module module-text">
  2. {% if is_granted('ROLE_ADMIN') %}
  3. <div class="admin-tools">
  4. <a href="{{ path('admin_moduletext_edit',{hookId:module.id}) }}" class="admin-update" target="_blank">modifier</a>
  5. </div>
  6. {% endif %}
  7. <div class="ctn">
  8. {% if (app.request.getLocale() == 'fr') and module.data.titleFr %}
  9. <div class="title-ctn">
  10. <h2 class="title">{{ module.data.titleFr }}</h2>
  11. <hr>
  12. </div>
  13. {% elseif (app.request.getLocale() == 'en') and module.data.titleEn %}
  14. <div class="title-ctn">
  15. <h2 class="title">{{ module.data.titleEn }}</h2>
  16. <hr>
  17. </div>
  18. {% endif %}
  19. <div>
  20. {% if (app.request.getLocale() == 'fr') and module.data.contentFr %}
  21. {{ module.data.contentFr|raw }}
  22. {% elseif (app.request.getLocale() == 'en') and module.data.contentEn %}
  23. {{ module.data.contentEn|raw }}
  24. {% endif %}
  25. </div>
  26. </div>
  27. </div>