parent
9f1bf68d9b
commit
66f9dbab26
@ -31,8 +31,7 @@ $pageHandler = new Pages();
|
||||
$previousLink = null;
|
||||
$nextLink = null;
|
||||
$areTherePages = !!count($content);
|
||||
if ( ( $isPage || $isHome ) ) {
|
||||
if ( $isPage && $areTherePages ) {
|
||||
if ( $isPage && $areTherePages ) {
|
||||
$currentPage = $content[0];
|
||||
if( isset($currentPage) ) {
|
||||
if ( $currentPage->previousKey() ) {
|
||||
@ -42,15 +41,14 @@ if ( ( $isPage || $isHome ) ) {
|
||||
$nextLink = buildPage($currentPage->nextKey())->permalink();
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( $isHome ) {
|
||||
}
|
||||
if ( $isHome ) {
|
||||
if ( Paginator::showPrev() ) {
|
||||
$previousLink = Paginator::previousPageUrl();
|
||||
}
|
||||
if ( Paginator::showNext() ) {
|
||||
$nextLink = Paginator::nextPageUrl();
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if ( isset($previousLink) ): ?>
|
||||
|
Loading…
Reference in New Issue
Block a user