fix #24
This commit is contained in:
parent
aea050f6cc
commit
b1418ef194
2 changed files with 17 additions and 1 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue