Merge pull request #538 from clickwork-git/master

Fix pagination
This commit is contained in:
Edi 2017-10-24 12:05:37 +02:00 committed by GitHub
commit c2b181693b
3 changed files with 26 additions and 4 deletions

View File

@ -57,6 +57,16 @@ article.page footer {
text-align: right;
}
/* PAGINATION */
.pagination {
width: 100%;
}
.pagination > li > a.float-right {
float: right;
}
/* PLUGINS */
div.plugin:not(:last-child) {

View File

@ -26,3 +26,15 @@
</article>
<?php endforeach ?>
</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>

View File

@ -25,11 +25,11 @@
<ul class="pagination">
<?php
if (Paginator::showPrev()) {
echo '<li><a href="'.Paginator::prevPageUrl().'">'.$L->get('Next').'</a></li>';
echo '<li><a href="'.Paginator::prevPageUrl().'">'.$L->get('Previous page').'</a></li>';
}
if (Paginator::showNext()) {
echo '<li><a href="'.Paginator::nextPageUrl().'">'.$L->get('Previous').'</a></li>';
echo '<li><a href="'.Paginator::nextPageUrl().'">'.$L->get('Next page').'</a></li>';
}
?>
</ul>