f096f2f6e6
Issue #2
39 lines
1.4 KiB
PHP
39 lines
1.4 KiB
PHP
<!-- Section -->
|
|
<section class="content">
|
|
<?php foreach ($content as $page): ?>
|
|
<article class="page">
|
|
<header>
|
|
<h2>
|
|
<a href="<?php echo htmlentities($page->permalink(), ENT_QUOTES | ENT_HTML401)?>">
|
|
<?php
|
|
echo htmlentities($page->title() ? $page->title() : $page->permalink() );
|
|
?>
|
|
</a>
|
|
</h2>
|
|
</header>
|
|
<?php if ($page->coverImage()): ?>
|
|
<img src="<?php echo $page->coverImage() ?>" alt="<?php echo $page->slug() ?>">
|
|
<?php endif ?>
|
|
|
|
<?php echo $page->content() ?>
|
|
|
|
<footer>
|
|
<?php echo $page->date() ?>
|
|
</footer>
|
|
</article>
|
|
<?php endforeach ?>
|
|
</section>
|
|
|
|
<!-- Pagination -->
|
|
<ul class="pagination">
|
|
<?php
|
|
if (Paginator::showPrev()) {
|
|
echo '<li class="float-left"><a href="'.Paginator::previousPageUrl().'">'.$L->get('Previous page').'</a></li>';
|
|
}
|
|
|
|
if (Paginator::showNext()) {
|
|
echo '<li class="float-right"><a href="'.Paginator::nextPageUrl().'">'.$L->get('Next page').'</a></li>';
|
|
}
|
|
?>
|
|
</ul>
|