give access to texts
This commit is contained in:
parent
9b9e5a2ef7
commit
04b04ccf6a
7 changed files with 31 additions and 6 deletions
|
|
@ -97,6 +97,14 @@ button.toggle.right::before {
|
|||
[data-template="info"] .page-cover {
|
||||
height: initial !important;
|
||||
}
|
||||
[data-template="author"] .page-cover .links,
|
||||
[data-template="category"] .page-cover .links,
|
||||
[data-template="year"] .page-cover .links,
|
||||
[data-template="email"] .page-cover .links,
|
||||
[data-template="error"] .page-cover .links,
|
||||
[data-template="info"] .page-cover .links {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 640px) {
|
||||
body:not([data-template="home"]) #main-header {
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ button,
|
|||
}
|
||||
.fs-xl {
|
||||
font-size: var(--font-size-xl) !important;
|
||||
line-height: calc(var(--unit--vertical) * 1.5) !important;
|
||||
line-height: calc(var(--unit--vertical) * 2) !important;
|
||||
}
|
||||
.fs-xxl {
|
||||
font-size: var(--font-size-xxl) !important;
|
||||
|
|
|
|||
|
|
@ -20,5 +20,6 @@ return [
|
|||
'routes' => [
|
||||
require __DIR__ . '/routes/virtual-category.php',
|
||||
require __DIR__ . '/routes/subscribe.php',
|
||||
require __DIR__ . '/routes/virtual-pending.php',
|
||||
],
|
||||
];
|
||||
|
|
|
|||
18
site/config/routes/virtual-pending.php
Normal file
18
site/config/routes/virtual-pending.php
Normal 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(),
|
||||
],
|
||||
]);
|
||||
},
|
||||
];
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
if(!$kirby->user() && ($page->template() == 'linear' || $page->template() == 'grid')) {
|
||||
go($site->errorPage()->url());
|
||||
go('/a-venir');
|
||||
}
|
||||
|
||||
$entryTopPos ??= 20;
|
||||
|
|
|
|||
|
|
@ -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') ?>
|
||||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue