feat: add COUNTDOWN_TIMEZONES to countdown

This commit is contained in:
2025-09-14 11:18:58 +04:00
parent e5505ebdc0
commit a7def8537f
4 changed files with 198 additions and 4 deletions
+21
View File
@@ -112,4 +112,25 @@ if (!defined('POPULAR_TAGS')) {
'Océan Indien'
]);
}
// =========================================
// Système de compte à rebours / maintenance
// =========================================
// Activer le mode compte à rebours (true/false) - valeur par défaut
if (!defined('COUNTDOWN_ENABLED')) define('COUNTDOWN_ENABLED', false);
// Date de fin du compte à rebours par défaut (format: Y-m-d H:i:s)
if (!defined('COUNTDOWN_TARGET_DATE')) define('COUNTDOWN_TARGET_DATE', '2025-10-11 00:00:00');
// Territoires et fuseaux horaires par défaut pour la page de compte à rebours
if (!defined('COUNTDOWN_TIMEZONES')) {
define('COUNTDOWN_TIMEZONES', [
'Martinique/Guadeloupe' => 'America/Martinique',
'Guyane' => 'America/Cayenne',
'France' => 'Europe/Paris',
'Ma\'ohi Nui' => 'Pacific/Tahiti',
'Kanaky' => 'Pacific/Noumea'
]);
}
?>
+8
View File
@@ -243,6 +243,14 @@ define('COUNTDOWN_ENABLED', false);
// Date de fin du compte à rebours (format: Y-m-d H:i:s)
define('COUNTDOWN_TARGET_DATE', '2025-10-11 00:00:00');
// Territoires et fuseaux horaires à afficher sur la page de compte à rebours
define('COUNTDOWN_TIMEZONES', [
'Martinique/Guadeloupe' => 'America/Martinique',
'Guyane' => 'America/Cayenne',
'France' => 'Europe/Paris',
'Ma\'ohi Nui' => 'Pacific/Tahiti',
'Kanaky' => 'Pacific/Noumea'
]);
// =========================================
// Texte de présentation du mouvement