From 20eac18702f3b271730175959e98e5df4481ef2c Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 7 Nov 2023 10:20:23 +0100 Subject: [PATCH] integrating theamtique tag capacity for communiques de presse type --- template-components/cards/card-news.css | 9 +++++++++ template-components/cards/card-news.php | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/template-components/cards/card-news.css b/template-components/cards/card-news.css index 0e14567..325cdb7 100644 --- a/template-components/cards/card-news.css +++ b/template-components/cards/card-news.css @@ -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; diff --git a/template-components/cards/card-news.php b/template-components/cards/card-news.php index 342ebfe..7a22ea9 100644 --- a/template-components/cards/card-news.php +++ b/template-components/cards/card-news.php @@ -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;

name ?>

+ + +

name ?>

+