give access to texts

This commit is contained in:
isUnknown 2025-02-05 15:02:44 +01:00
parent 9b9e5a2ef7
commit 04b04ccf6a
7 changed files with 31 additions and 6 deletions

View file

@ -20,5 +20,6 @@ return [
'routes' => [
require __DIR__ . '/routes/virtual-category.php',
require __DIR__ . '/routes/subscribe.php',
require __DIR__ . '/routes/virtual-pending.php',
],
];

View file

@ -0,0 +1,18 @@
<?php
use Kirby\Uuid\Uuid;
return [
'pattern' => 'a-venir',
'action' => function () {
return Page::factory([
'slug' => 'a-venir',
'template' => 'error',
'content' => [
'title' => 'Textes disponibles à partir du 21 janvier',
'body' => '<p>Rendez-vous vendredi 21 février à partir de 18h, au Centre Césure (ancien campus Censier), 13 rue Santeuil, 75005 Paris - salle Las Vergnas (métro Censier-Daubenton ou Saint-Marcel).</p>',
'uuid' => Uuid::generate(),
],
]);
},
];

View file

@ -1,7 +1,7 @@
<?php
if(!$kirby->user() && ($page->template() == 'linear' || $page->template() == 'grid')) {
go($site->errorPage()->url());
go('/a-venir');
}
$entryTopPos ??= 20;

View file

@ -10,9 +10,9 @@
<?php endsnippet() ?>
<div id="main-content">
<?= $page->body() ?>
<p><a href="/">Retour à l'accueil</a></p>
</div>
</article>
<p><a href="/">Retour à l'accueil</a></p>
</main>
<?php snippet('footer') ?>

View file

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