devis.html.twig 775 B

1234567891011121314151617181920212223242526272829
  1. {% set options = { items: {'@page.self': '/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. {{image.html('','fleche')}}
  15. </div>
  16. {% include 'partials/blog/block_devis.html.twig' %}
  17. {% else %}
  18. <a href="/demande-de-devis">
  19. <div class="title">
  20. Faire une demande de devis en ligne
  21. </div>
  22. </a>
  23. {% endif %}
  24. </section>
  25. {% endfor %}