fix: replace opening date by COUNTDOWN_TARGET_DATE variable

This commit is contained in:
2025-09-10 18:36:36 +04:00
parent 02a28f8ac2
commit 5a39c29629
+7 -3
View File
@@ -35,7 +35,7 @@ setSecurityHeaders();
<!-- Open Graph Meta Tags --> <!-- Open Graph Meta Tags -->
<meta property="og:title" content="kaubuntu.re - Ouverture prochaine"> <meta property="og:title" content="kaubuntu.re - Ouverture prochaine">
<meta property="og:description" content="La plateforme multimédia kaubuntu.re ouvrira ses portes le 11 octobre 2025. Restez connectés !"> <meta property="og:description" content="La plateforme multimédia kaubuntu.re ouvrira ses portes le <?php $targetDate = new DateTime(COUNTDOWN_TARGET_DATE); echo $targetDate->format('j F Y'); ?>. Restez connectés !">
<meta property="og:image" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . '/img/logo.png'; ?>"> <meta property="og:image" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . '/img/logo.png'; ?>">
<meta property="og:url" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>"> <meta property="og:url" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
@@ -45,7 +45,7 @@ setSecurityHeaders();
<!-- Twitter Card Meta Tags --> <!-- Twitter Card Meta Tags -->
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="kaubuntu.re - Ouverture prochaine"> <meta name="twitter:title" content="kaubuntu.re - Ouverture prochaine">
<meta name="twitter:description" content="La plateforme multimédia kaubuntu.re ouvrira ses portes le 11 octobre 2025. Restez connectés !"> <meta name="twitter:description" content="La plateforme multimédia kaubuntu.re ouvrira ses portes le <?php $targetDate = new DateTime(COUNTDOWN_TARGET_DATE); echo $targetDate->format('j F Y'); ?>. Restez connectés !">
<meta name="twitter:image" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . '/img/logo.png'; ?>"> <meta name="twitter:image" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . '/img/logo.png'; ?>">
<!-- Configuration JavaScript --> <!-- Configuration JavaScript -->
@@ -87,7 +87,11 @@ setSecurityHeaders();
<!-- Message --> <!-- Message -->
<div class="countdown-message"> <div class="countdown-message">
<p>La plateforme ouvrira ses portes le <strong>11 octobre 2025</strong>.</p> <p>La plateforme ouvrira ses portes le <strong><?php
$targetDate = new DateTime(COUNTDOWN_TARGET_DATE);
setlocale(LC_TIME, 'fr_FR.UTF-8');
echo strftime('%e %B %Y', $targetDate->getTimestamp());
?></strong>.</p>
<p>Restez connectés et suivez-nous sur nos réseaux sociaux !</p> <p>Restez connectés et suivez-nous sur nos réseaux sociaux !</p>
</div> </div>