mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
Don't show nav bar when listing an ebook collection, and show all the items on one page
This commit is contained in:
parent
aa74927760
commit
ff2501e24a
1 changed files with 4 additions and 6 deletions
|
@ -84,13 +84,11 @@ try{
|
|||
$ebooks = Library::FilterEbooks($query, $tags, $sort);
|
||||
$pageTitle = 'Browse Standard Ebooks';
|
||||
$pageHeader = 'Browse Ebooks';
|
||||
$pages = ceil(sizeof($ebooks) / $perPage);
|
||||
$totalEbooks = sizeof($ebooks);
|
||||
$ebooks = array_slice($ebooks, ($page - 1) * $perPage, $perPage);
|
||||
}
|
||||
|
||||
$pages = ceil(sizeof($ebooks) / $perPage);
|
||||
|
||||
$totalEbooks = sizeof($ebooks);
|
||||
|
||||
$ebooks = array_slice($ebooks, ($page - 1) * $perPage, $perPage);
|
||||
|
||||
if($page > 1){
|
||||
$pageTitle .= ', page ' . $page;
|
||||
|
@ -139,7 +137,7 @@ catch(\Exception $ex){
|
|||
<? }else{ ?>
|
||||
<?= Template::EbookGrid(['ebooks' => $ebooks, 'view' => $view]) ?>
|
||||
<? } ?>
|
||||
<? if(sizeof($ebooks) > 0){ ?>
|
||||
<? if(sizeof($ebooks) > 0 && $collection === null){ ?>
|
||||
<nav>
|
||||
<a<? if($page > 1){ ?> href="/ebooks/?page=<?= $page - 1 ?><? if($queryString != ''){ ?>&<?= $queryString ?><? } ?>" rel="previous"<? }else{ ?> aria-disabled="true"<? } ?>>Back</a>
|
||||
<ol>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue