34 lines
810 B
PHP
34 lines
810 B
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* Template pour afficher un récit
|
||
|
|
* Ce template est requis pour que recit.json.php fonctionne
|
||
|
|
*/
|
||
|
|
?>
|
||
|
|
<?php snippet('header') ?>
|
||
|
|
|
||
|
|
<article class="recit">
|
||
|
|
<h1><?= $page->title() ?></h1>
|
||
|
|
|
||
|
|
<?php if ($page->author()->isNotEmpty()): ?>
|
||
|
|
<p class="author"><?= $page->author() ?></p>
|
||
|
|
<?php endif ?>
|
||
|
|
|
||
|
|
<?php if ($page->cover()->isNotEmpty()): ?>
|
||
|
|
<figure class="cover">
|
||
|
|
<?php if ($cover = $page->cover()->toFile()): ?>
|
||
|
|
<img src="<?= $cover->url() ?>" alt="">
|
||
|
|
<?php endif ?>
|
||
|
|
</figure>
|
||
|
|
<?php endif ?>
|
||
|
|
|
||
|
|
<?php if ($page->introduction()->isNotEmpty()): ?>
|
||
|
|
<div class="introduction">
|
||
|
|
<?= $page->introduction() ?>
|
||
|
|
</div>
|
||
|
|
<?php endif ?>
|
||
|
|
|
||
|
|
<p><a href="<?= $page->url() ?>/print">Ouvrir l'éditeur d'impression</a></p>
|
||
|
|
</article>
|
||
|
|
|
||
|
|
<?php snippet('footer') ?>
|