Fixes #44 - menu remis dans newsletter et dans à propos mais sans le bouton pour la page active

This commit is contained in:
antonin gallon 2025-12-03 16:32:09 +01:00
parent fcf47818d0
commit d4d1d70804
3 changed files with 16 additions and 13 deletions

View file

@ -1,24 +1,26 @@
<?php if (!$page->is(page('lettre')) && !$page->is(page('a-propos'))): ?>
<footer id="main-footer">
<ul id="links">
<li class="open-nav-wrapper hidden">
<button class="plus open-nav" title="chercher parmi les textes">textes</button>
</li>
<footer id="main-footer">
<ul id="links">
<li class="open-nav-wrapper hidden">
<button class="plus open-nav" title="chercher parmi les textes">textes</button>
</li>
<?php if (!$page->is(page('lettre'))): ?>
<li>
<a href="/lettre" id="subscribe-btn" class="plus">
s'inscrire
</a>
</li>
<?php endif ?>
<?php if (!$page->is(page('a-propos'))): ?>
<li>
<a
href="<?= $site->find('a-propos')->url() ?>">
à propos
</a>
</li>
</ul>
</footer>
<?php endif ?>
<?php endif ?>
</ul>
</footer>
</body>
</html>

View file

@ -33,3 +33,5 @@
</div>
</article>
</main>
<?php snippet('footer') ?>

View file

@ -1,4 +1,5 @@
<?php snippet('header') ?>
<?php snippet('footer') ?>
<main id="<?= $page->template() ?>">
<article>
<?php snippet('cover', array('isOpen' => true), slots: true) ?>
@ -15,5 +16,3 @@
<?php endsnippet() ?>
</article>
</main>
<?php snippet('footer') ?>