fix: replace opening date by COUNTDOWN_TARGET_DATE variable
This commit is contained in:
+7
-3
@@ -35,7 +35,7 @@ setSecurityHeaders();
|
||||
|
||||
<!-- Open Graph Meta Tags -->
|
||||
<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:url" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
||||
<meta property="og:type" content="website">
|
||||
@@ -45,7 +45,7 @@ setSecurityHeaders();
|
||||
<!-- Twitter Card Meta Tags -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<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'; ?>">
|
||||
|
||||
<!-- Configuration JavaScript -->
|
||||
@@ -87,7 +87,11 @@ setSecurityHeaders();
|
||||
|
||||
<!-- 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>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user