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

Open in your IDE?
  1. {##
  2. # Banner box QSL\Banner\View\Customer\BannerBox
  3. #}
  4. <div
  5. {% for k, val in this.getBannerInfo() %}
  6. {{ k }}="{{ val }}"
  7. {% endfor %}
  8. >
  9.     {% for i, item in this.getBannerData() %}
  10.         <div class="banner_item">
  11.             {% if item.getEventCell() == 'I' %}
  12.                 {% if item.maintext or item.addtext or item.getActionButton() %}
  13.                     <div class="backgroundImage">
  14.                         {% if item.link and not item.getActionButton() %}<a href="{{ item.link }}" title="{{ item.image.alt }}">{% else %}<div class="bs-fix-div">{% endif %}
  15.                         {% if item.getImage() %}
  16.                             {{ widget('\\XLite\\View\\Image', image=item.getImage(), id='banner_image_' ~ item.id, alt=item.image.alt, centerImage='1') }}
  17.                         {% endif %}
  18.                         <div class="textContainer">
  19.                             {% if item.maintext != ''%}
  20.                                 <div class="mainText"{% if item.maintext_color != '' %} style="color: #{{ item.maintext_color }};"{% endif %}>
  21.                                     {{ item.maintext }}
  22.                                 </div>
  23.                             {% endif %}
  24.                             {% if item.addtext != ''%}
  25.                                 <div class="addText"{% if item.addtext_color != '' %} style="color: #{{ item.addtext_color }};"{% endif %}>
  26.                                     {{ item.addtext }}
  27.                                 </div>
  28.                             {% endif %}
  29.                             {% if item.getActionButton() %}
  30.                                 <div class="action-button">
  31.                                     {{ widget('XLite\\View\\Button\\Link', location=item.getActionButtonLink(), label=item.getActionButton(), style="btn regular-button regular-main-button submit") }}
  32.                                 </div>
  33.                             {% endif %}
  34.                         </div>
  35.                         {% if item.link and not item.getActionButton() %}</a>{% else %}</div>{% endif %}
  36.                     </div>
  37.                 {% else %}
  38.                     {% if item.link %}<a href="{{ item.link }}" title="{{ item.image.alt }}">{% else %}<span>{% endif %}
  39.                     {% if item.getImage() %}
  40.                         {{ widget('\\XLite\\View\\Image', image=item.getImage(), id='banner_image_' ~ item.id, alt=item.image.alt, centerImage='1') }}
  41.                     {% endif %}
  42.                     {% if item.link %}</a>{% else %}</span>{% endif %}
  43.                 {% endif %}
  44.             {% else %}
  45.                 <div id="content_{{ item.getContentId() }}" class="banner_content fr-view">{{ item.getContent()|raw }}</div>
  46.             {% endif %}
  47.         </div>
  48.     {% endfor %}
  49. </div>
  50. {% if this.isMoreThanOneBanner() %}
  51.     {% if this.banner.getArrows() %}
  52.         <a class="prev_arrow fa fa-angle-left" id="banner_prev{{ this.banner.getId() }}" href="#"></a>
  53.         <a class="next_arrow fa fa-angle-right" id="banner_next{{ this.banner.getId() }}" href="#"></a>
  54.     {% endif %}
  55.     {% if this.banner.getNavigation() %}
  56.         <div class="banner-system-navigation" id="navigation_{{ this.banner.getId() }}"></div>
  57.     {% endif %}
  58. {% endif %}