From 7782376c616225aacf14bd8c0f1735ea85873658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Thu, 10 Apr 2025 13:53:33 +0400 Subject: [PATCH] add POPULAR_TAGS --- includes/config.local.php.sample | 8 ++++++++ includes/config.php | 12 +++++++++++- index.php | 29 ++++++++++++++++++++--------- 3 files changed, 39 insertions(+), 10 deletions(-) diff --git a/includes/config.local.php.sample b/includes/config.local.php.sample index f5e155a..e348dfe 100644 --- a/includes/config.local.php.sample +++ b/includes/config.local.php.sample @@ -46,6 +46,14 @@ // 'Histoire' // ]); +// Hashtags populaires à afficher sur la page d'accueil +// define('POPULAR_TAGS', [ +// 'Justice', +// 'Anticolonial', +// 'Kanaky', +// 'Océan Indien' +// ]); + // Durée maximale des shorts en secondes // define('SHORTS_MAX_DURATION', 120); // 2 minutes diff --git a/includes/config.php b/includes/config.php index 8ef2d8b..bde2944 100644 --- a/includes/config.php +++ b/includes/config.php @@ -96,7 +96,7 @@ if (!defined('LIVE_ACCOUNT_NAME')) define('LIVE_ACCOUNT_NAME', 'admin'); // Tags pour filtrer les vidéos selon les catégories if (!defined('TAG_SHORT')) define('TAG_SHORT', 'short'); -// Hashtags populaires à afficher dans la sidebar, footer et menu mobile +// Hashtags importants à afficher dans la sidebar, footer et menu mobile if (!defined('IMPORTANT_TAGS')) { define('IMPORTANT_TAGS', [ 'Colonialisme', @@ -106,6 +106,16 @@ if (!defined('IMPORTANT_TAGS')) { ]); } +// Hashtags populaires à afficher sur la page d'accueil +if (!defined('POPULAR_TAGS')) { + define('POPULAR_TAGS', [ + 'Justice', + 'Anticolonial', + 'Kanaky', + 'Océan Indien' + ]); +} + // Locale et fuseau horaire setlocale(LC_TIME, 'fr_FR.UTF-8'); date_default_timezone_set('Indian/Reunion'); diff --git a/index.php b/index.php index ddd8164..7c10ad7 100644 --- a/index.php +++ b/index.php @@ -88,11 +88,16 @@
- #Justice - #Romain - #Saint-Pierre - #Paris - #Afrique + + # +
@@ -313,10 +318,16 @@

Tendances

- #LaRéunion - #Afrique - #Indépendance - #Saint-Pierre + + # +