makes hashtags customizable
This commit is contained in:
@@ -36,6 +36,16 @@
|
||||
// Tag pour les shorts
|
||||
// define('TAG_SHORT', 'short');
|
||||
|
||||
// Hashtags populaires à afficher dans la sidebar, footer et menu mobile
|
||||
// define('POPULAR_TAGS', [
|
||||
// 'Colonialisme',
|
||||
// 'La Réunion',
|
||||
// 'Panafricanisme',
|
||||
// 'Conférence',
|
||||
// 'Indépendance',
|
||||
// 'Histoire'
|
||||
// ]);
|
||||
|
||||
// Durée maximale des shorts en secondes
|
||||
// define('SHORTS_MAX_DURATION', 120); // 2 minutes
|
||||
|
||||
@@ -46,6 +56,9 @@
|
||||
// Nombre de vidéos par page
|
||||
// define('VIDEOS_PER_PAGE', 12);
|
||||
|
||||
// Limite de vidéo à chercher
|
||||
// define('COUNT_VIDEO_SEARCH', 6);
|
||||
|
||||
// Nombre de vidéos à la une
|
||||
// define('FEATURED_VIDEOS_COUNT', 6);
|
||||
|
||||
|
||||
@@ -96,6 +96,16 @@ 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
|
||||
if (!defined('POPULAR_TAGS')) {
|
||||
define('POPULAR_TAGS', [
|
||||
'Colonialisme',
|
||||
'La Réunion',
|
||||
'Panafricanisme',
|
||||
'Conférence'
|
||||
]);
|
||||
}
|
||||
|
||||
// Locale et fuseau horaire
|
||||
setlocale(LC_TIME, 'fr_FR.UTF-8');
|
||||
date_default_timezone_set('Indian/Reunion');
|
||||
|
||||
+10
-4
@@ -31,10 +31,16 @@
|
||||
<div class="footer-column">
|
||||
<h3 class="footer-title">Hashtags</h3>
|
||||
<ul class="footer-links">
|
||||
<li><a href="recherche.php?q=%23Colonialisme">Colonialisme</a></li>
|
||||
<li><a href="recherche.php?q=%23La%20R%C3%A9union">La Réunion</a></li>
|
||||
<li><a href="recherche.php?q=%23Panafricanisme">Panafricanisme</a></li>
|
||||
<li><a href="recherche.php?q=%23Conf%C3%A9rence">Conférence</a></li>
|
||||
<?php
|
||||
if (defined('POPULAR_TAGS') && !empty(POPULAR_TAGS)):
|
||||
foreach (POPULAR_TAGS as $tag):
|
||||
$encodedTag = urlencode('#' . $tag);
|
||||
?>
|
||||
<li><a href="recherche.php?q=<?php echo $encodedTag; ?>"><?php echo htmlspecialchars($tag); ?></a></li>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
+11
-11
@@ -57,18 +57,18 @@
|
||||
<div class="nav-divider"></div>
|
||||
|
||||
<h3 class="mobile-section-title">Hashtags populaires</h3>
|
||||
<a href="recherche.php?q=%23Colonialisme" class="nav-item">
|
||||
<i class="fas fa-hashtag"></i> Colonialisme
|
||||
</a>
|
||||
<a href="recherche.php?q=%23La%20R%C3%A9union" class="nav-item">
|
||||
<i class="fas fa-hashtag"></i> La Réunion
|
||||
</a>
|
||||
<a href="recherche.php?q=%23Panafricanisme" class="nav-item">
|
||||
<i class="fas fa-hashtag"></i> Panafricanisme
|
||||
</a>
|
||||
<a href="recherche.php?q=%23Conf%C3%A9rence" class="nav-item">
|
||||
<i class="fas fa-hashtag"></i> Conférence
|
||||
<?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="nav-item">
|
||||
<i class="fas fa-hashtag"></i> <?php echo htmlspecialchars($tag); ?>
|
||||
</a>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
|
||||
<div class="nav-divider"></div>
|
||||
|
||||
|
||||
+11
-11
@@ -54,17 +54,17 @@
|
||||
<i class="fas fa-hashtag"></i> <span>Hashtags</span>
|
||||
</div>
|
||||
|
||||
<a href="recherche.php?q=%23Colonialisme" class="tag-item" data-title="Colonialisme">
|
||||
<i class="fas fa-hashtag tag-icon"></i> <span>Colonialisme</span>
|
||||
</a>
|
||||
<a href="recherche.php?q=%23La%20R%C3%A9union" class="tag-item" data-title="La Réunion">
|
||||
<i class="fas fa-hashtag tag-icon"></i> <span>La Réunion</span>
|
||||
</a>
|
||||
<a href="recherche.php?q=%23Panafricanisme" class="tag-item" data-title="Panafricanisme">
|
||||
<i class="fas fa-hashtag tag-icon"></i> <span>Panafricanisme</span>
|
||||
</a>
|
||||
<a href="recherche.php?q=%23Conf%C3%A9rence" class="tag-item" data-title="Conférence">
|
||||
<i class="fas fa-hashtag tag-icon"></i> <span>Conférence</span>
|
||||
<?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-item" data-title="<?php echo htmlspecialchars($tag); ?>">
|
||||
<i class="fas fa-hashtag tag-icon"></i> <span><?php echo htmlspecialchars($tag); ?></span>
|
||||
</a>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user