From a292bafa3d9f6968f91c8a64d92453044c2553d8 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Fri, 30 Jan 2026 10:19:05 +0100 Subject: [PATCH] FEATURE Introducing the get_archive_page inforlmations utilities functions --- includes/utilities.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/includes/utilities.php b/includes/utilities.php index f697a24..73b2bb0 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -26,3 +26,29 @@ function test() return $tags; } + + +function get_archive_page_icon_html($post_type) +{ + switch ($post_type) { + case 'analyses-etudes': + return 'Analyses et études'; + case 'revues': + return 'Revues'; + default: + return ''; + } +} + + +function get_archive_page_subtitle_html($post_type) +{ + switch ($post_type) { + case 'analyses-etudes': + return 'Accédez à nos recherches et publications thématiques.'; + case 'revues': + return 'Accédez à nos revues et publications '; + default: + return ''; + } +}