templates/modules/search-widget/banners/banners.html.twig line 1

Open in your IDE?
  1. {% if banners is defined and banners is not empty %}
  2. {% for banner in banners %}
  3. <div class="is-Alert is-Alert_Warning is-Alert_Dismissible is-HomeBanner is-hide" id="is-HomeBanner-{{ banner.id }}" role="alert">
  4. <button type="button" class="is-Close" data-dismiss="alert" aria-label="{{ 'close' | trans }}"><span aria-hidden="true">&times;</span></button>
  5. <p class="is-Alert-Title">
  6. {% if banner.picto is defined and banner.picto is not empty %}
  7. <i class="is-Icon is-Icon-com-{{banner.picto}} is-Disruption-State_{{banner.picto}}" aria-hidden="true"></i>
  8. {% endif %}
  9. {{ banner.title }}</p>
  10. {% if banner.description is defined and banner.description is not empty %}{{ banner.description }}{% endif %} {% if banner.link is defined and banner.link is not empty and banner.buttonText is defined and banner.buttonText is not empty %} <a href="{{ banner.link }}">{{ banner.buttonText }}</a>{% endif %}
  11. </div>
  12. {% endfor %}
  13. {% endif %}