actuel-inactuel/site/snippets/footer.php
isUnknown 6c1a8c8850 side-panel : refactor nav + toc into single side-panel with view switching
Rename nav.php to side-panel.php to host both navigation and table of contents
views. The panel uses data-view attributes to switch between nav and toc content.
Footer buttons updated to target the unified panel. TOC button now visible on desktop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-28 09:28:47 +01:00

27 lines
No EOL
830 B
PHP

<?php if (!$page->is(page('lettre')) && !$page->is(page('a-propos'))): ?>
<footer id="main-footer">
<ul id="links">
<?php if ($page->hasToc()): ?>
<li class="footer-btn-wrapper hidden">
<button class="plus" data-open-panel="side-panel" data-view="toc" title="ouvrir la table des matières">sommaire</button>
</li>
<?php endif ?>
<li class="footer-btn-wrapper hidden">
<button class="plus" data-open-panel="side-panel" data-view="nav" title="chercher parmi les textes">textes</button>
</li>
<li>
<a href="/lettre" id="subscribe-btn" class="plus">
s'inscrire
</a>
</li>
<li>
<a href="<?= $site->find('a-propos')->url() ?>">
à propos
</a>
</li>
</ul>
</footer>
<?php endif ?>
</body>
</html>