templates/partials/global/content-feature.html.twig line 1

Open in your IDE?
  1. {% if showBlock is defined and showBlock == true %}
  2.     <section class="content-feature" id="{{ experience.blockAnchor2 }}">
  3.         <picture-component class="js-picture-component" :image="{{ picture_data(experience.blockImage2, null) }}"></picture-component>
  4.         <div class="container lazy-animation">
  5.             <h3 class="content-feature--title title-p1">{{ experience.blockTitle2 }}</h3>
  6.             {% if experience is instance_of('App\\Entity\\Landing') and isDefinedAndNotEmpty(experience.blockSubtitle2) %}
  7.                 <div class="content-feature--subtitle subtitle-caps">{{ experience.blockSubtitle2 }}</div>
  8.             {% endif %}
  9.             <div class="content-feature--text">
  10.                 {{ experience.blockContent2 | raw }}
  11.                 {#<a href="" class="content-feature--link">#}
  12.                 {#descarga nuestras rutinas#}
  13.                 {#{% include 'partials/global/svg/arrow-right.svg.twig' %}#}
  14.                 {#</a>#}
  15.             </div>
  16.             <div class="introduction--main-link">
  17.                 {% if experience.ctaFileTitle2 %}
  18.                     <a class="button green is-dark" target="_blank" href="{{ experience.ctaFile2|file_url }}">
  19.                         <span>{{ experience.ctaFileTitle2 }}</span>
  20.                     </a>
  21.                 {% endif %}
  22.                 {% if experience.secondCtaFileTitle2 %}
  23.                     <a class="button green is-dark" target="_blank" href="{{ experience.secondCtaFile2|file_url }}">
  24.                         <span>{{ experience.secondCtaFileTitle2 }}</span>
  25.                     </a>
  26.                 {% endif %}
  27.                 {% if experience.thirdCtaFileTitle2 %}
  28.                     <a class="button green is-dark" target="_blank" href="{{ experience.thirdCtaFile2|file_url }}">
  29.                         <span>{{ experience.thirdCtaFileTitle2 }}</span>
  30.                     </a>
  31.                 {% endif %}
  32.             </div>
  33.             <div class="introduction--links">
  34.                 {% if experience.popUpTitle2 %}
  35.                     <a href="#" class="introduction--link-gallery link black js-gallery-open" data-dest="introduction--gallery">
  36.                         <span>{{ experience.popUpTitle2 }}</span>
  37.                     </a>
  38.                 {% endif %}
  39.                 {% if experience.secondPopUpTitle2 %}
  40.                     <a href="#" class="introduction--link-gallery link black js-gallery-open" data-dest="introduction--gallery">
  41.                         <span>{{ experience.secondPopUpTitle2 }}</span>
  42.                     </a>
  43.                 {% endif %}
  44.                 {% if experience.thirdPopUpTitle2 %}
  45.                     <a href="#" class="introduction--link-gallery link black js-gallery-open" data-dest="introduction--gallery">
  46.                         <span>{{ experience.thirdPopUpTitle2 }}</span>
  47.                     </a>
  48.                 {% endif %}
  49.                 {% if experience.ctaLinkTitle2 %}
  50.                     <a class="link black" href="{{ experience.ctaLink2 }}" target="_blank">
  51.                         <span>{{ experience.ctaLinkTitle2 }}</span>
  52.                     </a>
  53.                 {% endif %}
  54.                 {% if experience.secondCtaLinkTitle2 %}
  55.                     <a class="link black" href="{{ experience.secondCtaLink2 }}" target="_blank">
  56.                         <span>{{ experience.secondCtaLinkTitle2 }}</span>
  57.                     </a>
  58.                 {% endif %}
  59.                 {% if experience.thirdCtaLinkTitle2 %}
  60.                     <a class="link black" href="{{ experience.thirdCtaLink2 }}" target="_blank">
  61.                         <span>{{ experience.thirdCtaLinkTitle2 }}</span>
  62.                     </a>
  63.                 {% endif %}
  64.             </div>
  65.         </div>
  66.         {% if experience.popUpTitle2 %}
  67.             <div class="introduction--gallery js-gallery-container">
  68.                 <div class="introduction--gallery-content">
  69.                     <div class="introduction--gallery-slider js-gallery-slider">
  70.                         {% for gallery in experience.popUpGallery2.galleryHasMedias %}
  71.                             {% if gallery.media is youtubeVideo %}
  72.                                 <a data-src="{{ gallery.media|media_url }}">
  73.                                     <img src="{{ get_thumbnail_url(gallery.media) }}">
  74.                                 </a>
  75.                             {% else %}
  76.                                 <a data-src="{{ gallery.media|resize(1280)|file_url }}">
  77.                                     <img src="{{ gallery.media|resize(1280)|file_url }}">
  78.                                 </a>
  79.                             {% endif %}
  80.                         {% endfor %}
  81.                     </div>
  82.                 </div>
  83.             </div>
  84.         {% endif %}
  85.         {% if experience.secondPopUpTitle2 %}
  86.             <div class="introduction--gallery js-gallery-container">
  87.                 <div class="introduction--gallery-content">
  88.                     <div class="introduction--gallery-slider js-gallery-slider">
  89.                         {% for gallery in experience.secondPopUpGallery2.galleryHasMedias %}
  90.                             {% if gallery.media is youtubeVideo %}
  91.                                 <a data-src="{{ gallery.media|media_url }}">
  92.                                     <img src="{{ get_thumbnail_url(gallery.media) }}">
  93.                                 </a>
  94.                             {% else %}
  95.                                 <a data-src="{{ gallery.media|resize(1280)|file_url }}">
  96.                                     <img src="{{ gallery.media|resize(1280)|file_url }}">
  97.                                 </a>
  98.                             {% endif %}
  99.                         {% endfor %}
  100.                     </div>
  101.                 </div>
  102.             </div>
  103.         {% endif %}
  104.         {% if experience.thirdPopUpTitle2 %}
  105.             <div class="introduction--gallery js-gallery-container">
  106.                 <div class="introduction--gallery-content">
  107.                     <div class="introduction--gallery-slider js-gallery-slider">
  108.                         {% for gallery in experience.thirdPopUpGallery2.galleryHasMedias %}
  109.                             {% if gallery.media is youtubeVideo %}
  110.                                 <a data-src="{{ gallery.media|media_url }}">
  111.                                     <img src="{{ get_thumbnail_url(gallery.media) }}">
  112.                                 </a>
  113.                             {% else %}
  114.                                 <a data-src="{{ gallery.media|resize(1280)|file_url }}">
  115.                                     <img src="{{ gallery.media|resize(1280)|file_url }}">
  116.                                 </a>
  117.                             {% endif %}
  118.                         {% endfor %}
  119.                     </div>
  120.                 </div>
  121.             </div>
  122.         {% endif %}
  123.     </section>
  124. {% endif %}