templates/themes/ismart/block/home-solution.html.twig line 1

Open in your IDE?
  1. <section class="home-product design-program">
  2.     <div class="row justify-content-center">
  3.         <div class="col-md-10 col-12">
  4.             <h2 class="page-title mb-3" data-aos="fade-up">{{ block.title }}</h2>
  5.             <p class="text-center page-description mb-5" data-aos="fade-up">{{ block.description }}</p>
  6.         </div>
  7.     </div>
  8.     <div class="design-group-wrapper" data-aos="fade-up">
  9.         <div class="design-group">
  10.             {% set items = block.content | json_decode %}
  11.             {% for itm in items %}
  12.             <div class="item iPRO">
  13.                 <a href="{{ forceSSL(url('frontend_site_page_detail',{slug:itm.url ?? 'ipro'})) }}">
  14.                     <picture  class="panel picture-lazy w-100" >
  15.                         <img loading="lazy"
  16.                              src="{{ getImageWebp(getImageBySize(itm.mainBackground,'small')) }}"
  17.                              data-src="{{ getImageWebp(itm.mainBackground) }}" class="d-block w-100" alt="">
  18.                     </picture>
  19.                 </a>
  20.                 <picture class="img-fluid picture-lazy w-100">
  21.                     <img loading="lazy"
  22.                          src="{{ getImageWebp(getImageBySize(itm.overBackground,'small')) }}"
  23.                          data-src="{{ getImageWebp(itm.overBackground) }}"
  24.                          class="d-block w-100" alt="">
  25.                 </picture>
  26.                 <picture class="img-fluid image-banner w-100 picture-lazy">
  27.                     <img loading="lazy"
  28.                          src="{{ getImageWebp(getImageBySize(itm.image,'small')) }}"
  29.                          data-src="{{ getImageWebp(itm.image) }}"
  30.                          class="d-block w-100" alt="">
  31.                 </picture>
  32.                 {% if itm.icon is defined and itm.icon is not empty %}
  33.                 <picture class="img-fluid image-logo w-100 picture-lazy">
  34.                     <img loading="lazy"
  35.                          src="{{ getImageWebp(getImageBySize(itm.icon,'small')) }}"
  36.                          data-src="{{ getImageWebp(itm.icon) }}"
  37.                          class="d-block w-100" alt="{{ getImageWebp(itm.icon) }}">
  38.                 </picture>
  39.                 {% endif %}
  40.                 {%  if not isMobile %}
  41.                     <img loading="lazy" src="{{ getImageWebp(itm.userImage) }}" class="img-fluid image-user d-none d-lg-block" alt="">
  42.                 {% endif %}
  43.             </div>
  44.             {% endfor %}
  45.         </div>
  46.     </div>
  47. </section>