daux.io/templates/content.php

31 lignes
1.2 KiB
PHP
Brut Vue normale Historique

2015-04-23 10:24:50 +02:00
<?php $this->layout('theme::layout/05_page') ?>
<article>
2015-07-19 16:36:34 +02:00
<?php if ($params['html']['date_modified']) { ?>
2015-04-23 10:24:50 +02:00
<div class="page-header sub-header clearfix">
2016-04-08 00:13:06 +02:00
<h1><?= $page['breadcrumbs']? $this->get_breadcrumb_title($page, $base_page) : $page['title'] ?></h1>
<span style="float: left; font-size: 10px; color: gray;">
<?= date("l, F j, Y", $page['modified_time']); ?>
</span>
<span style="float: right; font-size: 10px; color: gray;">
<?= date("g:i A", $page['modified_time']); ?>
</span>
2015-04-23 10:24:50 +02:00
</div>
<?php } else { ?>
<div class="page-header">
2016-04-08 00:13:06 +02:00
<h1><?= $page['breadcrumbs']? $this->get_breadcrumb_title($page, $base_page) : $page['title'] ?></h1>
2015-04-23 10:24:50 +02:00
</div>
<?php } ?>
2015-07-20 15:59:52 +02:00
<?= $page['content']; ?>
<?php if(!empty($page['prev']) || !empty($page['next'])) { ?>
<nav>
<ul class="pager">
<?php if(!empty($page['prev'])) { ?><li><a href="<?= $base_url . $page['prev']->getUrl() ?>">Previous</a></li><?php } ?>
<?php if(!empty($page['next'])) { ?><li><a href="<?= $base_url . $page['next']->getUrl() ?>">Next</a></li><?php } ?>
</ul>
</nav>
<?php } ?>
2015-04-23 10:24:50 +02:00
</article>