This commit is contained in:
isUnknown 2025-01-26 13:11:06 +01:00
parent aea050f6cc
commit b1418ef194
2 changed files with 17 additions and 1 deletions

View file

@ -1,5 +1,19 @@
<?php
$entryTopPos = $entryTopPos ?? 20;
$kirby = kirby();
$site = site();
$openPageURIS = [
"home",
"a-propos",
"inscription"
];
if (!$kirby->user() && (!in_array($page->uri(), $openPageURIS))) {
go($site->panel()->url());
}
?>
<!DOCTYPE html>
<html lang="en">

View file

@ -16,7 +16,9 @@
class="oggle-btn toggle-btn--left"
>éditorial</p>
</a>
<button class="plus open-nav" title="ouvrir la navigation">textes</button>
<?php if ($kirby->user()): ?>
<button class="plus open-nav" title="ouvrir la navigation">textes</button>
<?php endif ?>
<?php endslot() ?>
<?php endsnippet() ?>
<div id="main-edito" id="main-content">