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
|
<?php
|
||||||
$entryTopPos = $entryTopPos ?? 20;
|
$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>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,9 @@
|
||||||
class="oggle-btn toggle-btn--left"
|
class="oggle-btn toggle-btn--left"
|
||||||
>éditorial</p>
|
>éditorial</p>
|
||||||
</a>
|
</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 endslot() ?>
|
||||||
<?php endsnippet() ?>
|
<?php endsnippet() ?>
|
||||||
<div id="main-edito" id="main-content">
|
<div id="main-edito" id="main-content">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue