Merge pull request #410 from metaskop/adminfirstlast

[req171] First / Last page for admin area
This commit is contained in:
Diego Najar 2017-04-25 15:39:57 +02:00 committed by GitHub
commit d1c88a6fdb
2 changed files with 11 additions and 1 deletions

View File

@ -645,6 +645,14 @@ div.plugin-links > span.separator {
margin-left: 10px;
}
#paginator li.next {
margin-right: 1em;
}
#paginator li.previous {
margin-left: 1em;
}
/* ----------- PLUGINS FORM ----------- */
#jsformplugin div {

View File

@ -47,6 +47,7 @@ echo '
<ul>
<?php
if(Paginator::get('showNewer')) {
echo '<li class="first"><a href="'.HTML_PATH_ADMIN_ROOT.'manage-posts?page=0">« '.$Language->g('First page').'</a></li>';
echo '<li class="previous"><a href="'.HTML_PATH_ADMIN_ROOT.'manage-posts?page='.Paginator::get('prevPage').'">« '.$Language->g('Prev page').'</a></li>';
}
@ -54,6 +55,7 @@ echo '
if(Paginator::get('showOlder')) {
echo '<li class="next"><a href="'.HTML_PATH_ADMIN_ROOT.'manage-posts?page='.Paginator::get('nextPage').'">'.$Language->g('Next page').' »</a></li>';
echo '<li class="last"><a href="'.HTML_PATH_ADMIN_ROOT.'manage-posts?page='.Paginator::get('numberOfPages').'">'.$Language->g('Last page').' »</a></li>';
}
?>
</ul>