display footer on home page only

This commit is contained in:
isUnknown 2025-02-06 11:38:29 +01:00
parent 4f6e32bfaa
commit 3dd3286bb8
3 changed files with 238 additions and 1383 deletions

View file

@ -24,9 +24,8 @@
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"getkirby/cms": "^4.5",
"php-http/guzzle7-adapter": "^1.1",
"nyholm/psr7": "^1.8",
"mailersend/mailersend": "^0.28.0"
"symfony/http-client": "^7.2",
"nyholm/psr7": "^1.8"
},
"config": {
"allow-plugins": {

1560
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,23 +1,22 @@
<!-- <footer id="main-footer">
<?php if ($page->isHomePage()): ?>
<footer id="main-footer">
<ul id="links">
<?php // if (!$page->isHomePage() && $kirby->user()):?>
<li class="open-nav-wrapper">
<button class="plus open-nav" title="chercher parmi les textes">textes</button>
</li>
<?php // endif?>
<?php // if ($page->is(page('lettre')) || $page->is(page('a-propos'))):?>
<?php if ($page->is(page('lettre')) || $page->is(page('a-propos'))):?>
<li>
<a href="<?= $site->url() ?>">
accueil
</a>
</li>
<?php // else:?>
<?php else: ?>
<li>
<a href="/lettre" id="subscribe-btn" class="plus">
s'inscrire
</a>
</li>
<?php // endif?>
<?php endif ?>
<li>
<a
href="<?= $site->find('a-propos')->url() ?>">
@ -25,7 +24,8 @@
</a>
</li>
</ul>
</footer> -->
</footer>
<?php endif ?>
</body>
</html>