templates/front/slices/slice_push_publications.html.twig line 1

Open in your IDE?
  1. <section class="slice cards-slider"
  2.          js-slider="{options: { slidesPerView: 1, spaceBetween: 16, breakpoints: { 768: { slidesPerView: 2, spaceBetween: 32 }, 1024: { slidesPerView: 3 }} }}">
  3.     <div class="fluid-grid">
  4.         <div class="row mb-4 md:mb-8">
  5.             <div class="col-12 lg-col-11 lg-col-offset-1 flex items-center {{ slice.title is defined and slice.title is not null ? 'justify-between' : 'justify-end' }}">
  6.                 {% if slice.title %}
  7.                     <h2 class="font-semibold title title--circle title--circle-big title--L text-violet">{{ slice.title|highlight_word|raw }}</h2>
  8.                 {% endif %}
  9.                 {% include 'front/partials/slider-nav.html.twig' with {mainClass: 'swiper-navigation flex cards-slider__nav', iconColor: 'violet', buttonFirst: 'mr-8'} %}
  10.             </div>
  11.         </div>
  12.         <div class="swiper-container overflow-hidden w-full" js-slider-el>
  13.             <div class="swiper-wrapper">
  14.                 {% set tag = null %}
  15.                 {% if page.type == 'expertise' and page.tags|length > 0 %}
  16.                     {% set tag = page.tags[0] %}
  17.                 {% endif %}
  18.                 {% for publication in find_pages(['study','activity-report','thematic-brochure','practical-guide','btob-news','barometer-activity'], tag) %}
  19.                     {% set publicationProperties = publication.contentProperties %}
  20.                     <div class="swiper-slide">
  21.                         {% include 'front/partials/cards/publication.html.twig' with {type: publication.type} %}
  22.                     </div>
  23.                 {% endfor %}
  24.             </div>
  25.         </div>
  26.         <div class="text-center">
  27.             <a class="button button--rounded button--arrow button--violet mt-22 md:mt-6"
  28.                href="{{ page_url('publications-list', 'front') }}">
  29.                 <span>Voir toutes nos publications</span>
  30.                 <svg width="12" height="12" class="picto icon ml-2 flex-shrink-0">
  31.                     <use href="#icon-arrow" xlink:href="#icon-arrow"></use>
  32.                 </svg>
  33.             </a>
  34.         </div>
  35.     </div>
  36. </section>