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

Open in your IDE?
  1. <section class="introduction type-2" id="{{ experience.blockAnchor3 }}">
  2.     <div class="container">
  3.         <div class="introduction--media">
  4.             {% if experience.blockGallery3 %}
  5.                 {% for galleryHasMedia in experience.blockGallery3.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.             {% endif %}
  11.         </div>
  12.         <div class="introduction--content lazy-animation">
  13.             <h3 class="introduction--title">{{ experience.blockTitle3 }}</h3>
  14.             <div class="introduction--text">{{ experience.blockContent3 | raw }}</div>
  15.             <div class="introduction--main-link">
  16.                 {% if experience.ctaFileTitle3 %}
  17.                     <a class="button green is-dark" target="_blank" href="{{ experience.ctaFile3|file_url }}">
  18.                         <span>{{ experience.ctaFileTitle3 }}</span>
  19.                     </a>
  20.                 {% endif %}
  21.                 {% if experience.secondCtaFileTitle3 %}
  22.                     <a class="button green is-dark" target="_blank" href="{{ experience.secondCtaFile3|file_url }}">
  23.                         <span>{{ experience.secondCtaFileTitle3 }}</span>
  24.                     </a>
  25.                 {% endif %}
  26.                 {% if experience.thirdCtaFileTitle3 %}
  27.                     <a class="button green is-dark" target="_blank" href="{{ experience.thirdCtaFile3|file_url }}">
  28.                         <span>{{ experience.thirdCtaFileTitle3 }}</span>
  29.                     </a>
  30.                 {% endif %}
  31.             </div>
  32.             <div class="introduction--links">
  33.                 {% if experience.popUpTitle3 %}
  34.                     <a href="#" class="introduction--link-gallery link black js-gallery-open" data-dest="introduction--gallery">
  35.                         <span>{{ experience.popUpTitle3 }}</span>
  36.                     </a>
  37.                 {% endif %}
  38.                 {% if experience.secondPopUpTitle3 %}
  39.                     <a href="#" class="introduction--link-gallery link black js-gallery-open" data-dest="introduction--gallery">
  40.                         <span>{{ experience.secondPopUpTitle3 }}</span>
  41.                     </a>
  42.                 {% endif %}
  43.                 {% if experience.thirdPopUpTitle3 %}
  44.                     <a href="#" class="introduction--link-gallery link black js-gallery-open" data-dest="introduction--gallery">
  45.                         <span>{{ experience.thirdPopUpTitle3 }}</span>
  46.                     </a>
  47.                 {% endif %}
  48.                 {% if experience.ctaLinkTitle3 %}
  49.                     <a class="link black" href="{{ experience.ctaLink3 }}" target="_blank">
  50.                         <span>{{ experience.ctaLinkTitle3 }}</span>
  51.                     </a>
  52.                 {% endif %}
  53.                 {% if experience.secondCtaLinkTitle3 %}
  54.                     <a class="link black" href="{{ experience.secondCtaLink3 }}" target="_blank">
  55.                         <span>{{ experience.secondCtaLinkTitle3 }}</span>
  56.                     </a>
  57.                 {% endif %}
  58.                 {% if experience.thirdCtaLinkTitle3 %}
  59.                     <a class="link black" href="{{ experience.thirdCtaLink3 }}" target="_blank">
  60.                         <span>{{ experience.thirdCtaLinkTitle3 }}</span>
  61.                     </a>
  62.                 {% endif %}
  63.             </div>
  64.         </div>
  65.         {% if experience.popUpTitle3 %}
  66.             <div class="introduction--gallery js-gallery-container">
  67.                 <div class="introduction--gallery-content">
  68.                     <div class="introduction--gallery-slider js-gallery-slider">
  69.                         {% for media in experience.popUpGallery3.medias %}
  70.                             {% if media is youtubeVideo %}
  71.                                 <a data-src="{{ media|media_url }}" >
  72.                                     <img src="{{ get_thumbnail_url(media) }}" >
  73.                                 </a>
  74.                             {% else %}
  75.                                 <a data-src="{{ media|resize(1280)|file_url }}" >
  76.                                     <img src="{{ media|resize(1280)|file_url }}" >
  77.                                 </a>
  78.                             {% endif %}
  79.                         {% endfor %}
  80.                     </div>
  81.                 </div>
  82.             </div>
  83.         {% endif %}
  84.         {% if experience.secondPopUpTitle3 %}
  85.             <div class="introduction--gallery js-gallery-container">
  86.                 <div class="introduction--gallery-content">
  87.                     <div class="introduction--gallery-slider js-gallery-slider">
  88.                         {% for media in experience.secondPopUpGallery3.medias %}
  89.                             {% if media is youtubeVideo %}
  90.                                 <a data-src="{{ media|media_url }}" >
  91.                                     <img src="{{ get_thumbnail_url(media) }}" >
  92.                                 </a>
  93.                             {% else %}
  94.                                 <a data-src="{{ media|resize(1280)|file_url }}" >
  95.                                     <img src="{{ media|resize(1280)|file_url }}" >
  96.                                 </a>
  97.                             {% endif %}
  98.                         {% endfor %}
  99.                     </div>
  100.                 </div>
  101.             </div>
  102.         {% endif %}
  103.         {% if experience.thirdPopUpTitle3 %}
  104.         <div class="introduction--gallery js-gallery-container">
  105.             <div class="introduction--gallery-content">
  106.                 <div class="introduction--gallery-slider js-gallery-slider">
  107.                     {% for gallery in experience.thirdPopUpGallery3.galleryHasMedias %}
  108.                         {% if gallery.media is youtubeVideo %}
  109.                             <a data-src="{{ 'https://www.youtube.com/watch?v='~gallery.media.providerReference }}" >
  110.                                 <img src="{{ gallery.media|resize(1280)|file_url }}" >
  111.                             </a>
  112.                         {% else %}
  113.                             <a data-src="{{ gallery.media|resize(1280)|file_url }}" >
  114.                                 <img src="{{ gallery.media|resize(1280)|file_url }}" >
  115.                             </a>
  116.                         {% endif %}
  117.                     {% endfor %}
  118.                 </div>
  119.             </div>
  120.         </div>
  121.         {% endif %}
  122.     </div>
  123. </section>