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>
|
|
|
|
<?php if ($params['html']['date_modified']) { ?>
|
|
|
|
<span style="float: left; font-size: 10px; color: gray;">
|
|
|
|
<?= date("l, F j, Y g:i A", $page['modified_time']); ?>
|
|
|
|
</span>
|
|
|
|
<?php } ?>
|
2016-08-17 00:21:49 +02:00
|
|
|
<?php if (array_key_exists('edit_on_github', $params['html']) && $params['html']['edit_on_github']) { ?>
|
2016-08-17 00:18:34 +02:00
|
|
|
<span style="float: right; font-size: 10px; color: gray;">
|
|
|
|
<a href="https://github.com/<?= $params['html']['edit_on_github'] ?>/<?= $page['relative_path'] ?>" target="_blank">Edit on GitHub</a>
|
|
|
|
</span>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
2016-07-29 22:44:35 +02:00
|
|
|
|
2015-04-23 10:24:50 +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
|
|
|
|
2016-07-27 21:32:51 +02:00
|
|
|
<?php if (!empty($page['prev']) || !empty($page['next'])) {
|
|
|
|
?>
|
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'])) {
|
|
|
|
?><li class=Pager--prev><a href="<?= $base_url . $page['prev']->getUrl() ?>">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'])) {
|
|
|
|
?><li class=Pager--next><a href="<?= $base_url . $page['next']->getUrl() ?>">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>
|
|
|
|
|