makes hashtags customizable
This commit is contained in:
+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