Hide pagination when not necessary
This commit is contained in:
@@ -618,6 +618,10 @@ function paginate(array $pagination)
|
|||||||
{
|
{
|
||||||
extract($pagination);
|
extract($pagination);
|
||||||
|
|
||||||
|
if ($pagination['offset'] === 0 && ($total - $pagination['offset']) < $limit) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
$html = '<div class="pagination">';
|
$html = '<div class="pagination">';
|
||||||
$html .= '<span class="pagination-previous">';
|
$html .= '<span class="pagination-previous">';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user