Files
xamxam/templates/footer.php
Théophile Gervreau-Mercier 9511bb93b5 feat: add year filter to main index
- Footer now displays all available years horizontally with scroll
- Click on year filters thesis list to that year
- Active year highlighted in footer
- 'Tous' link to reset filter
- Filter info banner shows when year selected with reset button
- Pagination preserves year filter
- Styled with horizontal scroll, smooth scrollbar
- Tests passing 
2026-02-12 12:26:32 +01:00

18 lines
625 B
PHP

<!-- footer.php -->
<footer>
<nav class="years-nav">
<div class="years-scroll">
<?php if (!empty($availableYears)): ?>
<a href="index.php" class="year-link <?= !isset($year) ? 'active' : '' ?>">Tous</a>
<?php foreach ($availableYears as $y): ?>
<a href="index.php?year=<?= (int)$y ?>" class="year-link <?= isset($year) && $year == $y ? 'active' : '' ?>">
<?= htmlspecialchars($y) ?>
</a>
<?php endforeach; ?>
<?php endif; ?>
</div>
</nav>
</footer>
</body>
</html>