modules/QSL/Banner/templates/web/customer/modules/QSL/Banner/banner_section.twig line 1

Open in your IDE?
  1. {##
  2. # Banner section QSL\Banner\View\Customer\ABannerSection
  3. #}
  4. {% if this.getBannerBoxes() %}
  5.     <div class="bannerBox {{ this.location }}-box">
  6.         {% for i, item in this.getBannerBoxes() %}
  7.             {% if this.isParallaxBanner(item) %}
  8.                 <div class="parallax-banner-container" style="{{ this.getBannerHeight(item) }}{{ this.getBannerLineHeight(item) }}" {{ this.displayDataAttributes(item)|raw }}>
  9.                 {{ widget('\\QSL\\Banner\\View\\Customer\\BannerParallax', banner_id=item.id) }}
  10.             </div>
  11.         {% else %}
  12.             <div class="banner_container {{ item.location }}{#
  13.                 #}{% if item.getWidth() == 0 and item.getHeight() == 0 %} dimensions-not-defined{% elseif item.getWidth() > 0 and item.getHeight() > 0 %} dimensions-defined{% endif %}{#
  14.                 #}{% if item.getHeight() > 0 %} height-defined{% else %} height-not-defined{% endif %}{#
  15.                 #}{% if item.getWidth() > 0 %} width-defined{% else %} width-not-defined{% endif %}" style="{{ this.getBannerHeight(item) }}{{ this.getBannerWidth(item) }}{{ this.getBannerLineHeight(item) }}" {{ this.displayDataAttributes(item)|raw }}>
  16.             {{ widget('\\QSL\\Banner\\View\\Customer\\BannerBox', banner_id=item.id) }}
  17.             </div>
  18.         {% endif %}
  19.         {% endfor %}
  20.     </div>
  21. {% endif %}