{% if BannerPublicite() is not empty and BannerPublicite().position == 1 %}
<div class="bloc_top alert" role="alert" style="background-color:{{BannerPublicite().backgoundcolor}};color:{{BannerPublicite().color}};">
<div class="container-fluid wrapper">
{% set link = '' %}
{% if BannerPublicite().typelien == '2' %}
{% set link = BannerPublicite().lieninterne %}
{% elseif BannerPublicite().typelien == '3' %}
{% set link = BannerPublicite().lienexterne %}
{% elseif BannerPublicite().typelien == '4' %}
{% set link = '' %}
{% endif %}
<a class="contenu_bloc_pub " href="{{link}}" title="Lorem Ipsum" style="color:{{BannerPublicite().color}};">
<span class="pub_cnt">
<span class="titre">{{BannerPublicite().titre|raw}}</span>
<span class="texte">{{BannerPublicite().text|raw}}</span>
</span>
</a>
</div>
<a type="button" class="closes" data-bs-dismiss="alert" aria-label="Close" style="color:{{BannerPublicite().color}};">×</a>
</div>
{% endif %}