{% set parametre = ParametreSite() %}
<section id="bloc_videos" class="widget-{{widget.id}}" {% if widget.bgcolor != null %}style="background-color:{{widget.bgcolor}}" {% else %} style="background-color:#fff"{% endif %}>
<div class="container-fluid wrapper">
<div class="col-sm-12 text-center">
{% if parametre.actiftitre == true %}
<div class="titre_site">{{parametre.titre}}</div>
{% endif %}
<h2 class="title">{{widget.title|raw}}</h2>
{% if widget.subTitle is not empty %}
<h2 class="sub-title">{{widget.subTitle|raw}}</h2>
{% endif %}
{% if widget.description is not empty %}
<div>
{{widget.description|raw}}
</div>
{% endif %}
</div>
<div class="row videos_items mt-5">
{% if videos is defined and videos is not empty %}
{% for item in videos %}
<div class="col-sm-12 col-md-4">
<div class="video_item">
<a class="video-thumbnail m-0" href="{{item.video}}" data-fancybox="video">
{% if item.urlimage != '' %}
<img src="{{item.urlimage}}" class="img-fluid" alt="{{item.titre}}"/>
{% else %}
<img src="{{parametre.imagevide}}" class="img-fluid" alt="{{item.titre}}"/>
{% endif %}
</a>
<div class="titre">{{item.titre}}</div>
</div>
</div>
{% endfor %}
{% endif %}
</div>
{% if widget.buttonlabel is not empty %}
<div class="col-sm-12 text-center">
<a class="btn-default btn" href="{{widget.link}}">{{widget.buttonlabel}}</a>
</div>
{% endif %}
</div>
</section>