pagination
This commit is contained in:
parent
aaf9280ee4
commit
a455b804e3
2 changed files with 7 additions and 7 deletions
|
@ -123,10 +123,10 @@ NAV SELECT {
|
|||
content: ")";
|
||||
}
|
||||
|
||||
.paginator {
|
||||
clear: both;
|
||||
padding: 4px;
|
||||
margin-bottom: 32px;
|
||||
#paginator .blockbody {
|
||||
background: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.pools_next_img {
|
||||
|
|
|
@ -71,7 +71,7 @@ class Themelet {
|
|||
public function display_paginator(Page $page, $base, $query, $page_number, $total_pages) {
|
||||
if($total_pages == 0) $total_pages = 1;
|
||||
$body = $this->build_paginator($page_number, $total_pages, $base, $query);
|
||||
$page->add_block(new Block(null, $body, "main", 90));
|
||||
$page->add_block(new Block(null, $body, "main", 90, "paginator"));
|
||||
}
|
||||
|
||||
private function gen_page_link($base_url, $query, $page, $name) {
|
||||
|
@ -110,8 +110,8 @@ class Themelet {
|
|||
}
|
||||
$pages_html = implode(" | ", $pages);
|
||||
|
||||
return '<p class="paginator">'.$first_html.' | '.$prev_html.' | '.$random_html.' | '.$next_html.' | '.$last_html
|
||||
.'<br><< '.$pages_html.' >></p><!-- cancel border -->';
|
||||
return $first_html.' | '.$prev_html.' | '.$random_html.' | '.$next_html.' | '.$last_html
|
||||
.'<br><< '.$pages_html.' >>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Reference in a new issue