handling project color
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-02-10 14:42:46 +01:00
parent 8384b2d047
commit 72da352956

View File

@ -23,6 +23,8 @@ $currentPageId = get_the_ID();
$excerpt = get_the_excerpt();
$clientName = get_field('client_name', $portfolio_post->ID);
$terms = get_the_terms($portfolio_post->ID, 'project_type');
$projectColor = get_field('project_color', $portfolio_post->ID);
?>
<div class="portfolio-project-card portfolio-project-card--active">
@ -43,9 +45,10 @@ $currentPageId = get_the_ID();
<div class='excerpt'>
<h3><?php the_title(); ?></h3>
<p><?php echo $excerpt ?></p>
<a class="cta--read-project" href="<?php the_permalink(); ?>">
<a class="cta--read-project" style="--hover-color: <?php echo esc_attr($projectColor); ?>;" href="<?php the_permalink(); ?>">
<span>Voir le projet</span>
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/graphic-assets/arrow-see-project.svg" alt="Voir le projet">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/graphic-assets/arrow-see-project.svg" alt="Voir le projet">
</a>
</div>
</div>