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 d-flex flex-column flex-lg-row align-items-center justify-content-between">
  9. <div class="content-text text-start">
  10. {% if parametre.actiftitre == true %}
  11. <div class="site-title">{{parametre.titre}}</div>
  12. {% endif %}
  13. {% if widget.Title != "" %}
  14. <h2 class="title-2">{{widget.Title|raw}}</h2>
  15. {% endif %}
  16. {% if widget.subTitle != "" %}
  17. <div class="title-2">{{widget.subTitle|raw}}</div>
  18. {% endif %}
  19. {% if widget.description is not empty %}
  20. <div class="text-bloc">
  21. {{widget.description|raw}}
  22. </div>
  23. {% endif %}
  24. </div>
  25. {% if widget.typelien is not empty and widget.typelien != 1 and widget.buttonlabel is not empty %}
  26. <div class="cta-home d-flex justify-content-lg-end justify-content-center mt-3 mt-lg-0">
  27. {% if widget.typelien == 2 %}
  28. <button class="btn-theme" onclick="window.location.href = '{{resolveInternalSlugLink(widget.lieninterne)}}';">
  29. {{widget.buttonlabel}}
  30. </button>
  31. {% elseif widget.typelien == 3 %}
  32. <button class="btn-theme" onclick="window.open('{{widget.lienexterne}}','_blank');">
  33. {{widget.buttonlabel}}
  34. </button>
  35. {% elseif widget.typelien == 4 %}
  36. <a class="btn-theme" href="tel:{{widget.telephone}}">
  37. {{widget.buttonlabel}}
  38. </a>
  39. {% endif %}
  40. </div>
  41. {% endif %}
  42. </div>
  43. </div>
  44. </div>
  45. </div>