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