77 lines
1.8 KiB
PHP
Executable File
77 lines
1.8 KiB
PHP
Executable File
<?php
|
|
$block_titling_datas = get_field('block_titling_datas');
|
|
|
|
|
|
$terms = get_terms(array(
|
|
'taxonomy' => 'thematiques',
|
|
'parent' => 0,
|
|
'hide_empty' => false,
|
|
));
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<section class="section-show-thematiques">
|
|
|
|
<div class="section_titling">
|
|
<h2 class="section_titling__title"><?php echo $block_titling_datas['title'] ?></h2>
|
|
<h3 class="section_titling__subtitle"><?php echo $block_titling_datas['subtitle'] ?></h3>
|
|
</div>
|
|
|
|
<div class="swiper-content">
|
|
<button class="thematique-button-prev" aria-label="Thématique précédente">
|
|
<img src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/slider-next-left.svg' alt=''>
|
|
</button>
|
|
<button class="thematique-button-next" aria-label="Thématique suivante">
|
|
<img src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/slider-next-right.svg' alt=''>
|
|
</button>
|
|
|
|
<!-- Slider main container -->
|
|
<div class="swiper-container">
|
|
<!-- If we need pagination -->
|
|
<div class="swiper-pagination"></div>
|
|
|
|
<!-- Additional required wrapper -->
|
|
<div class="swiper-wrapper">
|
|
<!-- Slides -->
|
|
<!-- <div class="swiper-slide">Slide 1</div>
|
|
<div class="swiper-slide">Slide 2</div>
|
|
<div class="swiper-slide">Slide 3</div> -->
|
|
|
|
<?php foreach ($terms as $term) : ?>
|
|
<div class="swiper-slide">
|
|
<?php
|
|
|
|
|
|
|
|
get_template_part(
|
|
'template-components/card-thematique',
|
|
null,
|
|
array(
|
|
'thematique' => $term,
|
|
'post_ID' => $post_datas->ID,
|
|
'post_title' => $post_datas->post_title,
|
|
'post_excerpt' => $post_datas->post_excerpt,
|
|
)
|
|
);
|
|
?>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
|
|
<!-- scrollbar -->
|
|
<!-- <div class="swiper-scrollbar"></div> -->
|
|
</div>
|
|
<!-- If we need navigation buttons -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|