templates/home/blocks/slider_slide.html.twig line 1

Open in your IDE?
  1. {% if subBlock.title is defined %}
  2.     {% if subBlock.button_link is defined %}
  3.         <a href="{{ subBlock.button_link }}" class="carousel-item {% if nbLoop == 1 %}active{% endif %}">
  4.     {% else %}
  5.         <div class="carousel-item {% if nbLoop == 1 %}active{% endif %}">
  6.     {% endif %}
  7.         <div class="d-block w-100" {% if subBlock.img_slide is defined %}style="background:url({{ asset('/uploads/' ~ subBlock.img_slide.0) }})no-repeat center;background-size:cover;height:500px"{% endif %}></div>
  8.         <div class="carousel-caption d-md-block">
  9.             {% if subBlock.title is defined %}<h3>{{ subBlock.title }}</h3>{% endif %}
  10.             {% if subBlock.slide_description_home and subBlock.slide_description_home is not empty %}<p>{{ subBlock.slide_description_home.0|raw|nl2br }}</p>{% endif %}
  11.             {% if subBlock.button_link %}
  12.                 <div class="mt-5">
  13.                     <span class="btn-round btn-white">{{ subBlock.button_label }}</span>
  14.                 </div>
  15.             {% endif %}
  16.         </div>
  17.     {% if subBlock.button_link is defined %}
  18.         </a>
  19.     {% else %}
  20.         </div>
  21.     {% endif %}
  22. {% endif %}