24 lines
1.3 KiB
PHP
24 lines
1.3 KiB
PHP
<?php
|
|
// $thematique est un post type object term de la taxonomie thematiques
|
|
$thematique = $args['thematique'];
|
|
|
|
|
|
$taxonomy_picture = get_field('taxonomy_pictures', $thematique) ?? null;
|
|
$color = getThematiqueFamilySlug($thematique->slug);
|
|
|
|
?>
|
|
<div class="card-thematique card-<?php echo $thematique->slug ?>" data-taxonomy="<?php echo $thematique->slug ?>">
|
|
<?php if ($taxonomy_picture && $taxonomy_picture['illustration_s']) : ?>
|
|
<img class="card-thematique__thumbnail" src="<?php echo $taxonomy_picture['illustration_s']['sizes']['medium'] ?>" alt="">
|
|
<?php endif; ?>
|
|
<h3 class="card-thematique__title text-<?php echo getThematiqueFamilySlug($thematique->slug) ?>"><?php echo $thematique->name ?></h3>
|
|
<p class="card-thematique__description"><?php echo $thematique->description ?></p>
|
|
|
|
<a class="card-thematique__cta hover:text-<?php echo getThematiqueFamilySlug($thematique->slug) ?>" href="<?php echo get_term_link($thematique) ?> ">
|
|
<?php echo __("En savoir plus ", "homegrade-theme__texte-fonctionnel") ?>
|
|
<span class="sr-only"><?php echo __("sur ", "homegrade-theme__texte-fonctionnel") ?><?php echo $thematique->slug ?></span>
|
|
<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>
|