templates/partials/experience/benefits.html.twig line 1

Open in your IDE?
  1. {% if showBlock is defined and showBlock == true %}
  2.     {% if advantages|length > 0 %}
  3.         <article class="experience-benefits">
  4.             {% if experience.showImageBackground %}
  5.                 <div class="experience-benefits--background"
  6.                     style="background-image: url({{ experience.advantagesBackgroundImage | resize(1920)|file_url  }})">
  7.                 </div>
  8.             {% else %}
  9.             {% endif %}
  10.             <div class="container">
  11.                 <div class="experience-benefts--list" id="experience-item">
  12.                     {% for advantage in advantages %}
  13.                         <div class="experience-benefits--item lazy-animation">
  14.                             {#  <img class="experience-benefits--item-icon" src="{{ advantage.image | resize(100) }}">#}
  15.                             {% include 'partials/global/svg/'~advantage.iconClass~'.svg.twig' ignore missing %}
  16.                             <div class="experience-benefits--item-title">
  17.                                 {{ advantage.title }}
  18.                             </div>
  19.                             {% if advantage.shortText %}
  20.                                 <div class="experience-benefits--item-text">
  21.                                     {{ advantage.shortText }}
  22.                                 </div>
  23.                             {% endif %}
  24.                             {% if advantage.showPopup %}
  25.                                 <a class="link green js-opener-popup" data-dest="popup-benefits-{{ loop.index }}">
  26.                                     <span>{{ 'app.global.read_more' | trans }}</span>
  27.                                 </a>
  28.                             {% endif %}
  29.                             {% if advantage.showLink %}
  30.                                 <a class="link green" href="{{ advantage.link }}">
  31.                                     <span>{{ 'app.global.read_more' | trans }}</span>
  32.                                 </a>
  33.                             {% endif %}
  34.                             {% if advantage.anchorToAdvantagesBlock %}
  35.                                 <a class="link green js-anchor" data-anchor="#advantages">
  36.                                     <span>{{ 'app.global.read_more' | trans }}</span>
  37.                                 </a>
  38.                             {% endif %}
  39.                         </div>
  40.                     {% endfor %}
  41.                 </div>
  42.                 <div class="button-slide">
  43.                     <div class="button-slide--counter">
  44.                         <span class="js-slide-counter">1</span>
  45.                         /
  46.                         {{ advantages | length }}
  47.                     </div>
  48.                 </div>
  49.                 {% for advantage in advantages %}
  50.                     <div class="benefits--popup js-container--popup" id="popup-benefits-{{ loop.index }}">
  51.                         <div class="benefits--popup-overlay js-closer-popup"></div>
  52.                         <div class="benefits--popup-container">
  53.                             <div class="benefits--popup-content">
  54.                                 <div class="benefits--popup-header">
  55.                                     <a class="benefits--popup-close js-closer-popup" href="#">
  56.                                         {{ 'app.global.get_back' | trans }}
  57.                                         {% include 'partials/global/svg/close.svg.twig' %}
  58.                                     </a>
  59.                                     <div
  60.                                         class="benefits--popup-intro">
  61.                                         {#  <img class="benefits--popup-icon" src="{{ advantage.image | resize(100) }}">#}
  62.                                         {% include 'partials/global/svg/'~advantage.iconClass~'.svg.twig' ignore missing %}
  63.                                         <div class="benefits--popup-title">{{ advantage.title }}</div>
  64.                                     </div>
  65.                                 </div>
  66.                                 <div class="benefits--popup-description">
  67.                                     {{ advantage.content | raw }}
  68.                                 </div>
  69.                             </div>
  70.                         </div>
  71.                     </div>
  72.                 {% endfor %}
  73.             </div>
  74.         </article>
  75.     {% endif %}
  76. {% endif %}