devis.html.twig 925 B

1234567891011121314151617181920212223242526272829303132
  1. {% set options = { items: {'@page.self': '/organisez-vos-evenements/demande-de-devis'}, 'limit': 1 } %}
  2. {% for p in page.collection(options)%}
  3. {% set image = p.media.images|first %}
  4. {% set h4 = h4 ?: 'h4' %}
  5. <section id="devis" class="{{page.template}}">
  6. {% if page.template == 'home' %}
  7. <div class="title">
  8. <{{h4}}>{{p.title}}</{{h4}}>
  9. </div>
  10. <div class="txt">
  11. {{p.content}}
  12. </div>
  13. <div class="img">
  14. <div class="content-img">
  15. {{image.html('','lecampus')}}
  16. </div>
  17. {% include 'partials/blog/block_devis.html.twig' %}
  18. </div>
  19. {% else %}
  20. <a href="/organisez-vos-evenements/demande-de-devis">
  21. {# <a href="/demande-de-devis"> #}
  22. <div class="title">
  23. Faire une demande de devis en ligne
  24. </div>
  25. </a>
  26. {% endif %}
  27. </section>
  28. {% endfor %}