add POPULAR_TAGS
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
+11
-1
@@ -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');
|
||||
|
||||
@@ -88,11 +88,16 @@
|
||||
|
||||
<!-- Hashtags en ligne -->
|
||||
<div class="tags-section">
|
||||
<a href="#" class="tag">#Justice</a>
|
||||
<a href="#" class="tag">#Romain</a>
|
||||
<a href="#" class="tag">#Saint-Pierre</a>
|
||||
<a href="#" class="tag">#Paris</a>
|
||||
<a href="#" class="tag">#Afrique</a>
|
||||
<?php
|
||||
if (defined('POPULAR_TAGS') && !empty(POPULAR_TAGS)):
|
||||
foreach (POPULAR_TAGS as $tag):
|
||||
$encodedTag = urlencode('#' . $tag);
|
||||
?>
|
||||
<a href="recherche.php?q=<?php echo $encodedTag; ?>" class="tag">#<?php echo htmlspecialchars($tag); ?></a>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
|
||||
<!-- Section Shorts -->
|
||||
@@ -313,10 +318,16 @@
|
||||
<h2 class="section-title">Tendances</h2>
|
||||
|
||||
<div class="tags-section">
|
||||
<a href="#" class="tag">#LaRéunion</a>
|
||||
<a href="#" class="tag">#Afrique</a>
|
||||
<a href="#" class="tag">#Indépendance</a>
|
||||
<a href="#" class="tag">#Saint-Pierre</a>
|
||||
<?php
|
||||
if (defined('POPULAR_TAGS') && !empty(POPULAR_TAGS)):
|
||||
foreach (POPULAR_TAGS as $tag):
|
||||
$encodedTag = urlencode('#' . $tag);
|
||||
?>
|
||||
<a href="recherche.php?q=<?php echo $encodedTag; ?>" class="tag">#<?php echo htmlspecialchars($tag); ?></a>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user