44 lines
1.4 KiB
PHP
Executable File
44 lines
1.4 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="thematiques-container">
|
|
<?php foreach ($terms as $term) : ?>
|
|
<?php
|
|
|
|
$taxonomy_picture = get_field('taxonomy_pictures', $term);
|
|
$color = getThematiqueFamilySlug($term->slug);
|
|
?>
|
|
<div class="card-thematique card-<?php echo $term->slug ?>">
|
|
<img class="card-thematique__thumbnail" src="<?php echo $taxonomy_picture['illustration_s']['sizes']['medium'] ?>" alt="">
|
|
<h4 class="card-thematique__title text-<?php echo getThematiqueFamilySlug($term->slug) ?>"><?php echo $term->name ?></h4>
|
|
<p class="card-thematique__description"><?php echo $term->description ?></p>
|
|
|
|
<a class="card-thematique__cta hover:text-<?php echo getThematiqueFamilySlug($term->slug) ?>" href="<?php echo get_term_link($term) ?> ">
|
|
En savoir plus
|
|
<div class="cta_arrow_button">
|
|
<img src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/arrow-right-circle.svg' alt=''>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
|
|
|
|
</div>
|
|
|
|
</section>
|