templates/theme/default/modele-widget/parallax_block.html.twig line 1

Open in your IDE?
  1. {% set position_texte = ({ 0: "text-center", 1: "text-start", 2: "text-end" }[widget.positiontext]|default("text-center")) %}
  2. <div id="parallax-{{widget.id}}" class="bloc-parallax d-flex align-items-center justify-content-center {{position_texte}}" {% if widget.bgimage is defined and widget.bgimage != null %} style="background-image: url({{asset_image(widget.bgimage)}}) " {% elseif widget.bgcolor != null %}style="background-color:{{widget.bgcolor}}"{% endif %}>
  3. {# {% if not is_mobile() and not is_tablet() %} #}
  4. {# <img src="{{asset_image(widget.bgimage,'large')}}" data-speed="-1" class="img-parallax" alt="{{widget.subTitle}}">
  5. {# {% endif %} #}
  6. <div class="contenu-bloc">
  7. <div class="container wrapper">
  8. <div class="item-contenu-post" data-aos="fade-up" data-aos-easing="linear">
  9. {% if parametre.actiftitre == true %}
  10. <div class="site-title">{{parametre.titre}}</div>
  11. {% endif %}
  12. {% if widget.Title != "" %}
  13. <h2 class="title-2" >{{widget.Title|raw}}</h2>
  14. {% endif %}
  15. {% if widget.description is not empty %}
  16. <div class="text-bloc" >
  17. {{widget.description|raw}}
  18. </div>
  19. {% endif %}
  20. {% if widget.typelien is not empty and widget.typelien != 1 and widget.buttonlabel is not empty %}
  21. {% if widget.typelien == 2 %}
  22. <div class="cta-home text-center bouton3-body pt-3">
  23. <button class="btn-body" onclick="window.location.href = '{{resolveInternalSlugLink(widget.lieninterne)}}';" title="{{widget.buttonlabel}}">{{widget.buttonlabel}}</button>
  24. </div>
  25. {% elseif widget.typelien == 3 %}
  26. <div class="cta-home text-center bouton3-body pt-3">
  27. <button class="btn-body" onclick="window.open('{{widget.lienexterne}}','_blank');" title="{{widget.buttonlabel}}">{{widget.buttonlabel}}</button>
  28. </div>
  29. {% elseif widget.typelien == 4 %}
  30. <div class="cta-home text-center bouton3-body pt-3">
  31. <a class="btn-body" href="tel:{{widget.telephone}}" title="{{widget.buttonlabel}}">{{widget.buttonlabel}}</a>
  32. </div>
  33. {% endif %}
  34. {% endif %}
  35. </div>
  36. </div>
  37. </div>
  38. </div>