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

Open in your IDE?
  1. <section class="introduction" id="{{ experience.blockAnchor1 }}">
  2.     <div class="container">
  3.         {% if experience.blockGallery1 %}
  4.             <div class="introduction--media">
  5.                 {% for galleryHasMedia in experience.blockGallery1.galleryHasMedias %}
  6.                     <div class="introduction {{ loop.first ? 'is-medium' : 'is-small' }} lazy-animation">
  7.                         <picture-component class="js-picture-component is-absolute" :image="{{ picture_data(galleryHasMedia.media, null) }}"></picture-component>
  8.                     </div>
  9.                 {% endfor %}
  10.             </div>
  11.         {% endif %}
  12.         <div class="introduction--content lazy-animation">
  13.             <h3 class="introduction--title">{{ experience.blockTitle1 }}</h3>
  14.             <div class="introduction--text">{{ experience.blockContent1 | raw }}</div>
  15.             <div class="introduction--main-link">
  16.                 {% if experience.ctaFileTitle1 %}
  17.                     <a class="button green is-dark" target="_blank" href="{{ experience.ctaFile1|file_url }}">
  18.                         <span>{{ experience.ctaFileTitle1 }}</span>
  19.                     </a>
  20.                 {% endif %}
  21.                 {% if experience.secondCtaFileTitle1 %}
  22.                     <a class="button green is-dark" target="_blank" href="{{ experience.secondCtaFile1|file_url }}">
  23.                         <span>{{ experience.secondCtaFileTitle1 }}</span>
  24.                     </a>
  25.                 {% endif %}
  26.                 {% if experience.thirdCtaFileTitle1 %}
  27.                     <a class="button green is-dark" target="_blank" href="{{ experience.thirdCtaFile1|file_url }}">
  28.                         <span>{{ experience.thirdCtaFileTitle1 }}</span>
  29.                     </a>
  30.                 {% endif %}
  31.             </div>
  32.             <div class="introduction--links">
  33.                 {% if experience.popUpTitle1 %}
  34.                     <a href="#" class="introduction--link-gallery link black js-gallery-open" data-dest="introduction--gallery">
  35.                         <span>{{ experience.popUpTitle1 }}</span>
  36.                     </a>
  37.                 {% endif %}
  38.                 {% if experience.secondPopUpTitle1 %}
  39.                     <a href="#" class="introduction--link-gallery link black js-gallery-open" data-dest="introduction--gallery">
  40.                         <span>{{ experience.secondPopUpTitle1 }}</span>
  41.                     </a>
  42.                 {% endif %}
  43.                 {% if experience.thirdPopUpTitle1 %}
  44.                     <a href="#" class="introduction--link-gallery link black js-gallery-open" data-dest="introduction--gallery">
  45.                         <span>{{ experience.thirdPopUpTitle1 }}</span>
  46.                     </a>
  47.                 {% endif %}
  48.                 {% if experience.ctaLinkTitle1 %}
  49.                     <a class="link black" href="{{ experience.ctaLink1 }}" target="_blank">
  50.                         <span>{{ experience.ctaLinkTitle1 }}</span>
  51.                     </a>
  52.                 {% endif %}
  53.                 {% if experience.secondCtaLinkTitle1 %}
  54.                     <a class="link black" href="{{ experience.secondCtaLink1 }}" target="_blank">
  55.                         <span>{{ experience.secondCtaLinkTitle1 }}</span>
  56.                     </a>
  57.                 {% endif %}
  58.                 {% if experience.thirdCtaLinkTitle1 %}
  59.                     <a class="link black" href="{{ experience.thirdCtaLink1 }}" target="_blank">
  60.                         <span>{{ experience.thirdCtaLinkTitle1 }}</span>
  61.                     </a>
  62.                 {% endif %}
  63.             </div>
  64.         </div>
  65.         {% if experience.popUpTitle1 %}
  66.             <div class="introduction--gallery js-gallery-container">
  67.                 <div class="introduction--gallery-content">
  68.                     <div class="introduction--gallery-slider js-gallery-slider">
  69.                         {% if experience.popUpGallery1 %}
  70.                             {% for media in experience.popUpGallery1.medias %}
  71.                                 {% if media is youtubeVideo %}
  72.                                     <a data-src="{{ media|media_url }}">
  73.                                         <img src="{{ get_thumbnail_url(media) }}">
  74.                                     </a>
  75.                                 {% else %}
  76.                                     <a data-src="{{ media|resize(1280)|file_url }}">
  77.                                         <img src="{{ media|resize(1280)|file_url }}">
  78.                                     </a>
  79.                                 {% endif %}
  80.                             {% endfor %}
  81.                         {% endif %}
  82.                     </div>
  83.                 </div>
  84.             </div>
  85.         {% endif %}
  86.         {% if experience.secondPopUpTitle1 %}
  87.             <div class="introduction--gallery js-gallery-container">
  88.                 <div class="introduction--gallery-content">
  89.                     <div class="introduction--gallery-slider js-gallery-slider">
  90.                         {% for gallery in experience.secondPopUpGallery1.galleryHasMedias %}
  91.                             {% if gallery.media is youtubeVideo %}
  92.                                 <a data-src="{{ gallery.media|media_url }}">
  93.                                     <img src="{{ get_thumbnail_url(gallery.media) }}">
  94.                                 </a>
  95.                             {% else %}
  96.                                 <a data-src="{{ gallery.media|resize(1280)|file_url }}">
  97.                                     <img src="{{ gallery.media|resize(1280)|file_url }}">
  98.                                 </a>
  99.                             {% endif %}
  100.                         {% endfor %}
  101.                     </div>
  102.                 </div>
  103.             </div>
  104.         {% endif %}
  105.         {% if experience.thirdPopUpTitle1 %}
  106.             <div class="introduction--gallery js-gallery-container">
  107.                 <div class="introduction--gallery-content">
  108.                     <div class="introduction--gallery-slider js-gallery-slider">
  109.                         {% for gallery in experience.thirdPopUpGallery1.galleryHasMedias %}
  110.                             {% if gallery.media is youtubeVideo %}
  111.                                 <a data-src="{{ 'https://www.youtube.com/watch?v='~gallery.media.providerReference }}">
  112.                                     <img src="{{ gallery.media|resize(1280)|file_url }}">
  113.                                 </a>
  114.                             {% else %}
  115.                                 <a data-src="{{ gallery.media|resize(1280)|file_url }}">
  116.                                     <img src="{{ gallery.media|resize(1280)|file_url }}">
  117.                                 </a>
  118.                             {% endif %}
  119.                         {% endfor %}
  120.                     </div>
  121.                 </div>
  122.             </div>
  123.         {% endif %}
  124.     </div>
  125. </section>