add POPULAR_TAGS

This commit is contained in:
2025-04-10 13:53:33 +04:00
parent 8245bfe54b
commit 7782376c61
3 changed files with 39 additions and 10 deletions
+20 -9
View File
@@ -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>