actuel-inactuel/site/templates/linear.php

52 lines
1.9 KiB
PHP
Raw Normal View History

2024-04-15 09:35:39 +02:00
<?php snippet('header') ?>
2024-03-09 11:27:10 +01:00
<main id="<?= $page->template() ?>">
2024-04-07 09:57:55 +02:00
<article>
<?php snippet('cover', ['isOpen' => true], slots: true) ?>
<?php slot('title') ?>
<h1 class="main-title"><?= $page->title() ?></h1>
<?php if ($page->subtitle()->isNotEmpty()): ?>
<h2 class="main-subtitle fs-l"><?= $page->subtitle()->inline() ?>
</h2>
<?php endif ?>
<p>
<span class="light">par</span>
<a class="author"
href="/auteurs/<?= Str::slug($page->author()->toPage()->title()) ?>"><?= $page->author()->toPage()->title() ?></a><br>
<span class="light">publié le
</span><?= $page->published()->toDate('d/m/Y') ?><br>
<span class="light">dans</span> <a
href="<?= $page->parent()->url() ?>"
title="voir les textes liés à l'année <?= $page->parent()->title() ?>"><?= $page->parent()->title() ?></a>
2025-02-21 13:08:53 +01:00
/ <a href="/categories/<?= Str::slug($page->category()) ?>"
title="voir les textes de la catégorie <?= $page->category() ?>"><?= $page->category() ?></a>
</p>
<?php if ($document = $page->pdfVersion()->toFile()): ?>
<p class="only-screen">
<a href="<?= $document->url() ?>" target= "_blank">
télécharger le pdf
</a>
</p>
<?php endif ?>
2025-11-24 18:33:54 +01:00
<p class="only-print">
<span class="light">imprimé le </span><span><?= \Kirby\Toolkit\Date::today()->format('d/m/Y'); ?></span><br>
<span class="light url"><?= $page->url() ?></span>
</p>
<?php endslot() ?>
2024-04-07 09:57:55 +02:00
<?php endsnippet() ?>
2024-11-26 13:21:42 +01:00
<div id="main-content">
<?php if ($page->chapo()->isNotEmpty()): ?>
<div id="chapo">
<?= $page->chapo() ?>
</div>
2025-02-03 14:36:43 +01:00
<?php endif ?>
2025-02-17 19:13:21 +01:00
<?php if ($page->isHtmlMode()->isTrue()): ?>
<?= $page->htmlBody()->kt() ?>
2025-02-17 19:01:26 +01:00
<?php else: ?>
2025-02-17 19:13:21 +01:00
<?= $page->body() ?>
2025-02-17 19:01:26 +01:00
<?php endif ?>
2024-04-10 14:55:34 +02:00
</div>
2024-04-07 09:57:55 +02:00
</article>
2024-04-15 09:16:27 +02:00
</main>
<?php snippet('footer') ?>