add POPULAR_TAGS
This commit is contained in:
@@ -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