2015-04-23 10:24:50 +02:00
|
|
|
<?php $this->layout('theme::layout/05_page') ?>
|
2016-05-23 20:09:15 +02:00
|
|
|
<article class="Page">
|
2016-07-29 22:44:35 +02:00
|
|
|
|
2016-08-17 00:18:34 +02:00
|
|
|
<div class="Page__header">
|
|
|
|
<h1><?= $page['breadcrumbs'] ? $this->get_breadcrumb_title($page, $base_page) : $page['title'] ?></h1>
|
2019-12-05 21:25:58 +01:00
|
|
|
<?php if ($config->getHTML()->showDateModified()) { ?>
|
2017-10-23 16:31:36 +02:00
|
|
|
<span class="ModifiedDate">
|
2019-12-05 21:25:58 +01:00
|
|
|
<?= Todaymade\Daux\FormatDate::format($config, $page['modified_time']) ?>
|
2016-08-17 00:18:34 +02:00
|
|
|
</span>
|
|
|
|
<?php } ?>
|
2016-09-30 22:24:33 +02:00
|
|
|
<?php
|
2019-12-05 21:25:58 +01:00
|
|
|
$edit_on = $config->getHTML()->getEditOn();
|
2016-09-30 22:24:33 +02:00
|
|
|
if ($edit_on) { ?>
|
2017-10-23 16:31:36 +02:00
|
|
|
<span class="EditOn">
|
2017-10-19 22:18:46 +02:00
|
|
|
<a href="<?= $edit_on['basepath'] ?>/<?= $page['relative_path'] ?>" target="_blank">
|
|
|
|
<?= str_replace(":name:", $edit_on['name'], $this->translate("Edit_on")) ?>
|
|
|
|
</a>
|
2016-08-17 00:18:34 +02:00
|
|
|
</span>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
2016-07-29 22:44:35 +02:00
|
|
|
|
2016-05-23 20:09:15 +02:00
|
|
|
<div class="s-content">
|
|
|
|
<?= $page['content']; ?>
|
|
|
|
</div>
|
2015-10-28 00:18:29 +01:00
|
|
|
|
2017-05-17 23:15:44 +02:00
|
|
|
<?php
|
2019-12-05 21:25:58 +01:00
|
|
|
$hasPrevNext = (!empty($page['prev']) || !empty($page['next']));
|
|
|
|
if ($hasPrevNext && $config->getHTML()->showPreviousNextLinks()) {
|
2016-07-27 21:32:51 +02:00
|
|
|
?>
|
2015-10-28 00:18:29 +01:00
|
|
|
<nav>
|
2016-05-23 20:09:15 +02:00
|
|
|
<ul class="Pager">
|
2016-07-27 21:32:51 +02:00
|
|
|
<?php if (!empty($page['prev'])) {
|
2017-10-19 22:18:46 +02:00
|
|
|
?><li class=Pager--prev><a href="<?= $base_url . $page['prev']->getUrl() ?>"><?= $this->translate("Link_previous") ?></a></li><?php
|
2016-07-29 22:44:35 +02:00
|
|
|
|
2016-07-27 21:32:51 +02:00
|
|
|
} ?>
|
|
|
|
<?php if (!empty($page['next'])) {
|
2017-10-19 22:18:46 +02:00
|
|
|
?><li class=Pager--next><a href="<?= $base_url . $page['next']->getUrl() ?>"><?= $this->translate("Link_next") ?></a></li><?php
|
2016-07-29 22:44:35 +02:00
|
|
|
|
2016-07-27 21:32:51 +02:00
|
|
|
} ?>
|
2015-10-28 00:18:29 +01:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2016-07-27 21:32:51 +02:00
|
|
|
<?php
|
2016-07-29 22:44:35 +02:00
|
|
|
|
2016-07-27 21:32:51 +02:00
|
|
|
} ?>
|
2015-04-23 10:24:50 +02:00
|
|
|
</article>
|
|
|
|
|