actuel-inactuel/site/snippets/cover.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

31 lines
No EOL
655 B
PHP

<?php
$isOpen ??= false;
?>
<header class="page-cover">
<div class="title-wrapper">
<a href="#main-content" class="no-underline" title="aller au texte">
<?= $slots->title() ?>
</a>
</div>
<?php if ($slots->text()): ?>
<div class="text-wrapper">
<?= $slots->text() ?>
</div>
<?php endif ?>
<?php if ($page->isHomePage()): ?>
<ul class="links">
<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>
<?php endif ?>
</header>