2025-12-08 18:01:01 +01:00
|
|
|
<?php
|
|
|
|
|
/**
|
2026-01-09 10:34:10 +01:00
|
|
|
* Template to display a narrative
|
|
|
|
|
* This template is required for narrative.json.php to work
|
2025-12-08 18:01:01 +01:00
|
|
|
*/
|
|
|
|
|
?>
|
|
|
|
|
<?php snippet('header') ?>
|
|
|
|
|
|
2026-01-09 10:34:10 +01:00
|
|
|
<article class="narrative">
|
2025-12-08 18:01:01 +01:00
|
|
|
<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 ?>
|
|
|
|
|
|
2026-01-09 10:34:10 +01:00
|
|
|
<p><a href="<?= $page->url() ?>/print">Open print editor</a></p>
|
2025-12-08 18:01:01 +01:00
|
|
|
</article>
|
|
|
|
|
|
|
|
|
|
<?php snippet('footer') ?>
|