add unsubscribe and view mail on the web buttons

This commit is contained in:
isUnknown 2025-02-04 17:35:09 +01:00
parent 8bdd63afe2
commit f095954a33
20 changed files with 289 additions and 224 deletions

View file

@ -1,36 +1,35 @@
<?php
$isOpen = isset($isOpen) ? $isOpen : false;
$isOpen ??= false;
?>
<header
class="page-cover"
>
<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 if ($slots->text()): ?>
<div class="text-wrapper">
<?= $slots->text() ?>
</div>
<?php endif ?>
<ul class="links">
<?php if ($page->is(page('inscription'))): ?>
<li>
<a href="<?= $site->url() ?>">
accueil
</a>
</li>
<?php if ($page->is(page('lettre'))): ?>
<li>
<a href="<?= $site->url() ?>">
accueil
</a>
</li>
<?php else: ?>
<li>
<a href="/inscription" id="subscribe-btn" class="plus">
s'inscrire
</a>
</li>
<li>
<a href="/lettre" id="subscribe-btn" class="plus">
s'inscrire
</a>
</li>
<?php endif ?>
<li>
<a href="<?= $site->find('a-propos')->url() ?>">
<a
href="<?= $site->find('a-propos')->url() ?>">
à propos
</a>
</li>