2017-11-08 23:12:58 +01:00
|
|
|
<!-- Section -->
|
|
|
|
<section class="content">
|
2018-09-08 18:26:20 +02:00
|
|
|
<?php foreach ($content as $page): ?>
|
2017-11-08 23:12:58 +01:00
|
|
|
<article class="page">
|
2018-09-08 18:26:20 +02:00
|
|
|
<?php if($page->title()): ?>
|
2017-11-08 23:12:58 +01:00
|
|
|
<header>
|
|
|
|
<h2><?php echo $page->title() ?></h2>
|
|
|
|
</header>
|
2018-09-08 18:26:20 +02:00
|
|
|
<?php endif ?>
|
2017-11-08 23:12:58 +01:00
|
|
|
|
2018-09-08 18:26:20 +02:00
|
|
|
<?php if ($page->coverImage()): ?>
|
|
|
|
<img src="<?php echo $page->coverImage() ?>" alt="<?php echo $page->slug() ?>">
|
|
|
|
<?php endif ?>
|
2017-11-08 23:12:58 +01:00
|
|
|
|
|
|
|
<?php echo $page->content() ?>
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
<?php echo $page->date() ?>
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Pagination -->
|
|
|
|
<ul class="pagination">
|
|
|
|
<?php
|
|
|
|
if (Paginator::showPrev()) {
|
2018-11-12 00:05:04 +01:00
|
|
|
echo '<li class="float-left"><a href="'.Paginator::previousPageUrl().'">'.$L->get('Previous page').'</a></li>';
|
2017-11-08 23:12:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (Paginator::showNext()) {
|
2018-11-12 00:05:04 +01:00
|
|
|
echo '<li class="float-right"><a href="'.Paginator::nextPageUrl().'">'.$L->get('Next page').'</a></li>';
|
2017-11-08 23:12:58 +01:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|