templates/partials/experience/content-tabs.html.twig line 1

Open in your IDE?
  1. <section class="content-tabs" id="{{ experience.downloadsAnchor }}">
  2.     <div class="container">
  3.         {% if experience.experienceHasDownloadableItem|length > 1 %}
  4.             <div class="content-tabs--navigation js-scroll-arrow">
  5.                 <div class="content-tabs--navigation-list">
  6.                     {% for item in experience.experienceHasDownloadableItem %}
  7.                     <a class="link black {{ loop.first ? 'is-active' : '' }}" href="#" data-target="js-item-{{ loop.index }}">
  8.                         <span>{{ item.downloadableItem.tabTitle }}</span>
  9.                     </a>
  10.                     {% endfor %}
  11.                 </div>
  12.                 <div class="arrow-icon">
  13.                     <span>{{ 'app.scroll_show_more' | trans }}</span>
  14.                     {% include 'partials/global/svg/arrow-bold-right.svg.twig' %}
  15.                 </div>
  16.             </div>
  17.         {% endif %}
  18.         <div class="content-tabs--list">
  19.             {% for item in experience.experienceHasDownloadableItem %}
  20.                 {% if item.downloadableItem.title %}
  21.                     <div class="content-tabs--item js-item-{{ loop.index }} {{ loop.first ? 'is-active' : '' }}">
  22.                         <div class="content-tabs--img">
  23.                             <picture-component class="js-picture-component is-absolute" :image="{{ picture_data(item.downloadableItem.image, null, null) }}"></picture-component>
  24.                         </div>
  25.                         <div class="content-tabs--container">
  26.                             <h3 class="content-tabs--title">{{ item.downloadableItem.title }}</h3>
  27.                             <div class="content-tabs--text">
  28.                                 {{ item.downloadableItem.content | raw }}
  29.                             </div>
  30.                             {% if item.downloadableItem.linkTitle %}
  31.                                 <div class="content-tabs--link">
  32.                                     <a class="button green is-dark" target="_blank" href="{{ item.downloadableItem.linkUrl }}">
  33.                                         <span>{{ item.downloadableItem.linkTitle }}</span>
  34.                                     </a>
  35.                                 </div>
  36.                             {% endif %}
  37.                             {% if item.downloadableItem.secondLinkTitle %}
  38.                                 <div class="content-tabs--link">
  39.                                     <a class="button green is-dark" target="_blank" href="{{ item.downloadableItem.secondLinkUrl }}">
  40.                                         <span>{{ item.downloadableItem.secondLinkTitle }}</span>
  41.                                     </a>
  42.                                 </div>
  43.                             {% endif %}
  44.                             {% if item.downloadableItem.thirdLinkTitle %}
  45.                                 <div class="content-tabs--link">
  46.                                     <a class="button green is-dark" target="_blank" href="{{ item.downloadableItem.thirdLinkUrl }}">
  47.                                         <span>{{ item.downloadableItem.thirdLinkTitle }}</span>
  48.                                     </a>
  49.                                 </div>
  50.                             {% endif %}
  51.                             {% if item.downloadableItem.documentTitle %}
  52.                                 <div class="content-tabs--link">
  53.                                     <a class="button green is-dark" target="_blank" href="{{ item.downloadableItem.document | file_url }}">
  54.                                         <span>{{ item.downloadableItem.documentTitle }}</span>
  55.                                     </a>
  56.                                 </div>
  57.                             {% endif %}
  58.                             {% if item.downloadableItem.secondDocumentTitle %}
  59.                                 <div class="content-tabs--link">
  60.                                     <a class="button green is-dark" target="_blank" href="{{ item.downloadableItem.secondDocument | file_url }}">
  61.                                         <span>{{ item.downloadableItem.secondDocumentTitle }}</span>
  62.                                     </a>
  63.                                 </div>
  64.                             {% endif %}
  65.                             {% if item.downloadableItem.thirdDocumentTitle %}
  66.                                 <div class="content-tabs--link">
  67.                                     <a class="button green is-dark" target="_blank" href="{{ item.downloadableItem.thirdDocument | file_url }}">
  68.                                         <span>{{ item.downloadableItem.thirdDocumentTitle }}</span>
  69.                                     </a>
  70.                                 </div>
  71.                             {% endif %}
  72.                             {% if item.downloadableItem.galleryTitle %}
  73.                                 <div class="content-tabs--link">
  74.                                     <a href="#" class="button green is-dark js-gallery-open" data-dest="introduction--gallery">
  75.                                         <span>{{ item.downloadableItem.galleryTitle }}</span>
  76.                                     </a>
  77.                                 </div>
  78.                             {% endif %}
  79.                             {% if item.downloadableItem.secondGalleryTitle %}
  80.                                 <div class="content-tabs--link">
  81.                                     <a href="#" class="button green is-dark js-gallery-open" data-dest="introduction--gallery">
  82.                                         <span>{{ item.downloadableItem.secondGalleryTitle }}</span>
  83.                                     </a>
  84.                                 </div>
  85.                             {% endif %}
  86.                             {% if item.downloadableItem.thirdGalleryTitle %}
  87.                                 <div class="content-tabs--link">
  88.                                     <a href="#" class="button green is-dark js-gallery-open" data-dest="introduction--gallery">
  89.                                         <span>{{ item.downloadableItem.thirdGalleryTitle }}</span>
  90.                                     </a>
  91.                                 </div>
  92.                             {% endif %}
  93.                             {% if item.downloadableItem.gallery %}
  94.                                 <div class="introduction--gallery js-gallery-container">
  95.                                     <div class="introduction--gallery-content">
  96.                                         <div class="introduction--gallery-slider js-gallery-slider">
  97.                                             {% for media in item.downloadableItem.gallery.medias %}
  98.                                                 {% if media is youtubeVideo %}
  99.                                                     <a data-src="{{ media|media_url }}">
  100.                                                         <img src="{{ get_thumbnail_url(media) }}">
  101.                                                     </a>
  102.                                                 {% else %}
  103.                                                     <a data-src="{{ media|resize(1280)|file_url }}">
  104.                                                         <img src="{{ media|resize(1280)|file_url }}">
  105.                                                     </a>
  106.                                                 {% endif %}
  107.                                             {% endfor %}
  108.                                         </div>
  109.                                     </div>
  110.                                 </div>
  111.                             {% endif %}
  112.                             {% if item.downloadableItem.secondGallery %}
  113.                                 <div class="introduction--gallery js-gallery-container">
  114.                                     <div class="introduction--gallery-content">
  115.                                         <div class="introduction--gallery-slider js-gallery-slider">
  116.                                             {% for media in item.downloadableItem.secondGallery.medias %}
  117.                                                 {% if media is youtubeVideo %}
  118.                                                     <a data-src="{{ media|media_url }}">
  119.                                                         <img src="{{ get_thumbnail_url(media) }}">
  120.                                                     </a>
  121.                                                 {% else %}
  122.                                                     <a data-src="{{ media|resize(1280)|file_url }}">
  123.                                                         <img src="{{ media|resize(1280)|file_url }}">
  124.                                                     </a>
  125.                                                 {% endif %}
  126.                                             {% endfor %}
  127.                                         </div>
  128.                                     </div>
  129.                                 </div>
  130.                             {% endif %}
  131.                             {% if item.downloadableItem.thirdGallery %}
  132.                                 <div class="introduction--gallery js-gallery-container">
  133.                                     <div class="introduction--gallery-content">
  134.                                         <div class="introduction--gallery-slider js-gallery-slider">
  135.                                             {% for media in item.downloadableItem.thirdGallery.medias %}
  136.                                                 {% if media is youtubeVideo %}
  137.                                                     <a data-src="{{ media|media_url }}">
  138.                                                         <img src="{{ get_thumbnail_url(media) }}">
  139.                                                     </a>
  140.                                                 {% else %}
  141.                                                     <a data-src="{{ media|resize(1280)|file_url }}">
  142.                                                         <img src="{{ media|resize(1280)|file_url }}">
  143.                                                     </a>
  144.                                                 {% endif %}
  145.                                             {% endfor %}
  146.                                         </div>
  147.                                     </div>
  148.                                 </div>
  149.                             {% endif %}
  150.                         </div>
  151.                     </div>
  152.                 {% endif %}
  153.             {% endfor %}
  154.         </div>
  155.     </div>
  156. </section>