Pagination

This commit is contained in:
Edi 2017-10-24 12:03:43 +02:00 committed by GitHub
parent d290814437
commit 8075e3bbfe
1 changed files with 13 additions and 1 deletions

View File

@ -25,4 +25,16 @@
<?php Theme::plugins('pageEnd') ?> <?php Theme::plugins('pageEnd') ?>
</article> </article>
<?php endforeach ?> <?php endforeach ?>
</section> </section>
<!-- Pagination -->
<ul class="pagination">
<?php
if (Paginator::showPrev()) {
echo '<li><a href="'.Paginator::prevPageUrl().'">'.$L->get('Previous page').'</a></li>';
}
if (Paginator::showNext()) {
echo '<li><a href="'.Paginator::nextPageUrl().'" class="float-right">'.$L->get('Next page').'</a></li>';
}
?>
</ul>