display footer on home page only
This commit is contained in:
parent
4f6e32bfaa
commit
3dd3286bb8
3 changed files with 238 additions and 1383 deletions
|
|
@ -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
1560
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,31 +1,31 @@
|
|||
<!-- <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'))):?>
|
||||
<li>
|
||||
<a href="<?= $site->url() ?>">
|
||||
accueil
|
||||
</a>
|
||||
</li>
|
||||
<?php // else:?>
|
||||
<li>
|
||||
<a href="/lettre" id="subscribe-btn" class="plus">
|
||||
s'inscrire
|
||||
</a>
|
||||
</li>
|
||||
<?php // endif?>
|
||||
<li>
|
||||
<a
|
||||
href="<?= $site->find('a-propos')->url() ?>">
|
||||
à propos
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</footer> -->
|
||||
<?php if ($page->isHomePage()): ?>
|
||||
<footer id="main-footer">
|
||||
<ul id="links">
|
||||
<li class="open-nav-wrapper">
|
||||
<button class="plus open-nav" title="chercher parmi les textes">textes</button>
|
||||
</li>
|
||||
<?php if ($page->is(page('lettre')) || $page->is(page('a-propos'))):?>
|
||||
<li>
|
||||
<a href="<?= $site->url() ?>">
|
||||
accueil
|
||||
</a>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li>
|
||||
<a href="/lettre" id="subscribe-btn" class="plus">
|
||||
s'inscrire
|
||||
</a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<li>
|
||||
<a
|
||||
href="<?= $site->find('a-propos')->url() ?>">
|
||||
à propos
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</footer>
|
||||
<?php endif ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue