add POPULAR_TAGS
This commit is contained in:
@@ -46,6 +46,14 @@
|
|||||||
// 'Histoire'
|
// '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
|
// Durée maximale des shorts en secondes
|
||||||
// define('SHORTS_MAX_DURATION', 120); // 2 minutes
|
// 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
|
// Tags pour filtrer les vidéos selon les catégories
|
||||||
if (!defined('TAG_SHORT')) define('TAG_SHORT', 'short');
|
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')) {
|
if (!defined('IMPORTANT_TAGS')) {
|
||||||
define('IMPORTANT_TAGS', [
|
define('IMPORTANT_TAGS', [
|
||||||
'Colonialisme',
|
'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
|
// Locale et fuseau horaire
|
||||||
setlocale(LC_TIME, 'fr_FR.UTF-8');
|
setlocale(LC_TIME, 'fr_FR.UTF-8');
|
||||||
date_default_timezone_set('Indian/Reunion');
|
date_default_timezone_set('Indian/Reunion');
|
||||||
|
|||||||
@@ -88,11 +88,16 @@
|
|||||||
|
|
||||||
<!-- Hashtags en ligne -->
|
<!-- Hashtags en ligne -->
|
||||||
<div class="tags-section">
|
<div class="tags-section">
|
||||||
<a href="#" class="tag">#Justice</a>
|
<?php
|
||||||
<a href="#" class="tag">#Romain</a>
|
if (defined('POPULAR_TAGS') && !empty(POPULAR_TAGS)):
|
||||||
<a href="#" class="tag">#Saint-Pierre</a>
|
foreach (POPULAR_TAGS as $tag):
|
||||||
<a href="#" class="tag">#Paris</a>
|
$encodedTag = urlencode('#' . $tag);
|
||||||
<a href="#" class="tag">#Afrique</a>
|
?>
|
||||||
|
<a href="recherche.php?q=<?php echo $encodedTag; ?>" class="tag">#<?php echo htmlspecialchars($tag); ?></a>
|
||||||
|
<?php
|
||||||
|
endforeach;
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Section Shorts -->
|
<!-- Section Shorts -->
|
||||||
@@ -313,10 +318,16 @@
|
|||||||
<h2 class="section-title">Tendances</h2>
|
<h2 class="section-title">Tendances</h2>
|
||||||
|
|
||||||
<div class="tags-section">
|
<div class="tags-section">
|
||||||
<a href="#" class="tag">#LaRéunion</a>
|
<?php
|
||||||
<a href="#" class="tag">#Afrique</a>
|
if (defined('POPULAR_TAGS') && !empty(POPULAR_TAGS)):
|
||||||
<a href="#" class="tag">#Indépendance</a>
|
foreach (POPULAR_TAGS as $tag):
|
||||||
<a href="#" class="tag">#Saint-Pierre</a>
|
$encodedTag = urlencode('#' . $tag);
|
||||||
|
?>
|
||||||
|
<a href="recherche.php?q=<?php echo $encodedTag; ?>" class="tag">#<?php echo htmlspecialchars($tag); ?></a>
|
||||||
|
<?php
|
||||||
|
endforeach;
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user