templates/front/theme1/modele/bloc_content.html.twig line 1

Open in your IDE?
  1. {% set parametre = ParametreSite() %}
  2. <section id="widget-{{widget.id}}" class="sec-content presentation-home espace-p-top espace-p-bottom text-center" {% if widget.bgimage is defined and widget.bgimage != null %}style="background-image:url({{asset_image(widget.bgimage,'large')}})" {% elseif widget.bgcolor is defined and widget.bgcolor != null %} style="background-color:{{widget.bgcolor}}"{% endif %}>
  3.     <div class="container-fluid wrapper">
  4.         <div class="row">
  5.             <div class="col-md-12">
  6.                 {% if parametre.actiftitre == true %}
  7.                     <div class="titre_site">{{parametre.titre}}</div>
  8.                 {% endif %}
  9.                 {% if widget.subTitle != "" %}
  10.                         <div class="sub-title wow fadeInUp" data-wow-delay="0.1s">{{widget.subTitle|raw}}</div>
  11.                     {% endif %}
  12.                     {% if widget.description is not empty %}
  13.                         <div class="texte-content wow fadeInUp" data-wow-delay="0.2s">
  14.                             {{widget.description|raw}}
  15.                         </div>
  16.                     {% endif %} 
  17.                     {% if widget.typelien is not empty and widget.typelien != 1 and widget.buttonlabel is not empty %}
  18.                         {% if widget.typelien == 2 %}
  19.                              <div class="bouton-home text-center">
  20.                                 <button class="btn-back-pulse" onclick="window.location.href = '{{slug_link_interne(widget.lieninterne)}}';" title="{{widget.buttonlabel}}">{{widget.buttonlabel}}</button>
  21.                             </div>
  22.                         {% elseif widget.typelien == 3 %}
  23.                             <div class="bouton-home text-center">
  24.                                 <button class="btn-back-pulse" onclick="window.open('{{widget.lienexterne}}','_blank');" title="{{widget.buttonlabel}}">{{widget.buttonlabel}}</button>
  25.                             </div>
  26.                         {% elseif widget.typelien == 4 %}
  27.                             <div class="bouton-home text-center">
  28.                                 <a class="btn-back-pulse" href="tel:{{widget.telephone}}" title="{{widget.buttonlabel}}">{{widget.buttonlabel}}</a>
  29.                             </div>
  30.                         {% endif %}
  31.                     {% endif %}
  32.             </div>
  33.         </div>
  34.     </div>
  35. </section>