templates/frontend-eforum/_partials/modules/productFragments.html.twig line 1

Open in your IDE?
  1. <section class="product-section product-jumbotron product-fragments"
  2.          id="{{ moduleKey }}"
  3.          style="{{ module.backgroundImage is defined ? 'background-image: url(/uploads/productCmsFiles/' ~ module.backgroundImage ~ ')' : ''}}"
  4. >
  5.     <div class="container">
  6.         {% if module.title is defined %}
  7.             <h2 class="product-section__title product-fragments__title">{{ module.title }}</h2>
  8.         {% endif %}
  9.         <div class="row">
  10.             <div class="col col-md-12">
  11.                 <div class="collapse-group" id="fragments">
  12.                     <ul class="tabs__list">
  13.                         {% if module.videos is defined and module.videos is not empty %}
  14.                             <li class="tabs__listItem tabs__listItem--white"
  15.                                 data-toggle="collapse"
  16.                                 href="#fragments1"
  17.                                 aria-expanded="true"
  18.                                 aria-controls="fragments1"
  19.                             >
  20.                                 {% if module.videosTitle is defined and module.videosTitle is not empty %}
  21.                                     {{ module.videosTitle }}
  22.                                 {% else %}
  23.                                     Fragmenty wideo
  24.                                 {% endif %}
  25.                             </li>
  26.                         {% endif %}
  27.                         {% if module.pictures is defined and module.pictures is not empty %}
  28.                             <li class="tabs__listItem tabs__listItem--white {{ module.videos is defined and module.videos is not empty ? 'collapsed' : '' }}"
  29.                                 data-toggle="collapse"
  30.                                 href="#fragments2"
  31.                                 aria-expanded="false"
  32.                                 aria-controls="fragments2"
  33.                             >
  34.                                 {% if module.picturesTitle is defined and module.picturesTitle is not empty %}
  35.                                     {{ module.picturesTitle }}
  36.                                 {% else %}
  37.                                     UjÄ™cia z filmu
  38.                                 {% endif %}
  39.                             </li>
  40.                         {% endif %}
  41.                     </ul>
  42.                     <div class="tabs__wrap">
  43.                         {% if module.videos is defined and module.videos is not empty %}
  44.                             <div class="tabs__item collapse show fragments" id="fragments1" data-parent="#fragments">
  45.                                 <div class="row">
  46.                                     <div class="col col-lg-11">
  47.                                         <div class="product-fragments__slider">
  48.                                             {% for video in module.videos %}
  49.                                                 <div class="product-fragments__slide">
  50.                                                     <div class="product-fragments__slideInside">
  51.                                                         {% if video.video is defined %}
  52.                                                             <a href="{{ video.video }}"
  53.                                                                target="_blank"
  54.                                                                class="example-image-link video__popup"
  55.                                                             >
  56.                                                                 <img class="example-image"
  57.                                                                      src="{{ video.video|thumbnailUrl }}"
  58.                                                                      alt="Video"
  59.                                                                 >
  60.                                                                 <button data-video-play type="button" class="product-fragments__bannerPlay">
  61.                                                                     <i class="icon icon--youtube"></i>
  62.                                                                 </button>
  63.                                                             </a>
  64.                                                         {% endif %}
  65.                                                     </div>
  66.                                                 </div>
  67.                                             {% endfor %}
  68.                                         </div>
  69.                                     </div>
  70.                                 </div>
  71.                             </div>
  72.                         {% endif %}
  73.                         {% if module.pictures is defined and module.pictures is not empty %}
  74.                             <div class="tabs__item collapse {{ module.videos is not defined or module.videos is empty ? 'show' : '' }} fragments"
  75.                                  id="fragments2"
  76.                                  data-parent="#fragments"
  77.                             >
  78.                                 <div class="row">
  79.                                     <div class="col col-lg-11">
  80.                                         <div class="product-fragments__slider">
  81.                                             {% for picture in module.pictures %}
  82.                                                 <div class="product-fragments__slide">
  83.                                                     <div class="product-fragments__slideInside">
  84.                                                         <a class="example-image-link"
  85.                                                            href="/uploads/productCmsFiles/{{ picture.picture }}"
  86.                                                            data-lightbox="example-set"
  87.                                                            data-title=""
  88.                                                         >
  89.                                                             <img class="example-image"
  90.                                                                  src="/uploads/productCmsFiles/{{ picture.picture }}"
  91.                                                                  alt="Picture"
  92.                                                             >
  93.                                                         </a>
  94.                                                     </div>
  95.                                                 </div>
  96.                                             {% endfor %}
  97.                                         </div>
  98.                                     </div>
  99.                                 </div>
  100.                             </div>
  101.                         {% endif %}
  102.                     </div>
  103.                 </div>
  104.             </div>
  105.         </div>
  106.     </div>
  107. </section>