[req171] bug fixes

This commit is contained in:
metaskop 2017-04-10 17:29:10 +02:00
parent 57f32b6c2d
commit 928856fe81
3 changed files with 7 additions and 12 deletions

View File

@ -72,7 +72,7 @@ class Paginator {
$url = $domain.'/'.$filter.'/'.$Url->slug();
}
return $url.'?page='.self::get('numberOfPosts');
return $url.'?page='.self::get('numberOfPages');
}
public static function urlFirstPage()

View File

@ -2275,7 +2275,7 @@
text-decoration: none;
}
ul.actions.pagination .next:after {
ul.actions.pagination .last:after {
content: "";
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
@ -2285,14 +2285,14 @@
text-transform: none !important;
}
ul.actions.pagination .next:after {
ul.actions.pagination .last:after {
content: '\f050';
}
ul.actions.pagination .first {
text-decoration: none;
}
ul.actions.pagination .next:after {
ul.actions.pagination .first:before {
content: "";
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
@ -2302,7 +2302,7 @@
text-transform: none !important;
}
ul.actions.pagination .next:after {
ul.actions.pagination .first:before {
content: '\f049';
}

View File

@ -73,18 +73,13 @@
<ul class="actions pagination">
<?php
if( Paginator::get('showNewer') ) {
if (Paginator::get('prevPage') > -1) {
echo '<li><a href="'.Paginator::urlFirstPage().'" class="button big first">'.$Language->get('First page').'</a></li>';
}
echo '<li><a href="'.Paginator::urlFirstPage().'" class="button big first">'.$Language->get('First page').'</a></li>';
echo '<li><a href="'.Paginator::urlPrevPage().'" class="button big previous">'.$Language->get('Prev page').'</a></li>';
}
if( Paginator::get('showOlder') ) {
echo '<li><a href="'.Paginator::urlNextPage().'" class="button big next">'.$Language->get('Next page').'</a></li>';
if (Paginator::get('nextPage') <= Paginator::get('numberOfPages')) {
echo '<li><a href="'.Paginator::urlLastPage().'" class="button big last">'.$Language->get('Last page').'</a></li>';
}
echo '<li><a href="'.Paginator::urlLastPage().'" class="button big last">'.$Language->get('Last page').'</a></li>';
}
?>
</ul>