integrating theamtique tag capacity for communiques de presse type
This commit is contained in:
parent
096042dd37
commit
20eac18702
|
|
@ -34,6 +34,15 @@
|
|||
rounded-xl
|
||||
mb-4;
|
||||
}
|
||||
&__thematique-tag {
|
||||
@apply bg-secondary-light
|
||||
text-secondary
|
||||
w-fit
|
||||
px-4 py-1
|
||||
rounded-xl
|
||||
mb-4;
|
||||
}
|
||||
|
||||
&__title {
|
||||
@apply text-2xl font-bold mb-4 text-secondary;
|
||||
line-height: 1.1;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ $card_variant = $args['card_variant'];
|
|||
$post_thumbnail = $args['post_thumbnail'];
|
||||
$post_title = $args['post_title'];
|
||||
$news_type = $args['news_type'] ?? null;
|
||||
$thematique = $args['thematique'] ?? null;
|
||||
$mainThematique = getMainThematique($thematique) ?? null;
|
||||
|
||||
?>
|
||||
|
||||
|
|
@ -18,6 +20,10 @@ $news_type = $args['news_type'] ?? null;
|
|||
<?php if ($news_type) : ?>
|
||||
<p class="card-news__tag"><?php echo $news_type[0]->name ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if ($thematique) : ?>
|
||||
|
||||
<p class="card-news__thematique-tag card-news__thematique-tag--<?php echo $mainThematique->slug ?>"><?php echo $thematique->name ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<a href="<?php echo get_the_permalink($post_ID) ?>" class="cta cta--read-more cta--with-arrow-button cta--streched ">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user