mémorisation catégorie par cookie, URLs propres /categorie/

This commit is contained in:
Cedric Abonnel
2026-05-12 20:11:29 +02:00
parent 6e438835f8
commit 8f0fe0dbff
3 changed files with 49 additions and 16 deletions
+4 -5
View File
@@ -113,15 +113,14 @@ if (!empty($_tagCats)):
: round(0.8 + ($_catCount - $_minCount) / ($_maxCount - $_minCount) * 0.9, 2);
$_active = ($filterCat === $_catName);
?>
<a href="/?cat=<?= rawurlencode($_catName) ?>"
class="tag-cloud-item<?= $_active ? ' active' : '' ?>"
style="font-size:<?= $_size ?>em">
<a href="/categorie/<?= rawurlencode($_catName) ?>"
class="tag-cloud-item<?= $_active ? ' active' : '' ?>">
<?= htmlspecialchars($_catName) ?>
<sup class="tag-count"><?= $_catCount ?></sup>
<span class="tag-count"><?= $_catCount ?></span>
</a>
<?php endforeach; ?>
<?php if ($filterCat !== ''): ?>
<a href="/" class="tag-cloud-reset">× tout afficher</a>
<a href="/?cat=" class="tag-cloud-reset">× tout afficher</a>
<?php endif; ?>
</nav>
<?php endif; ?>