mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 09:37:26 +00:00
replace prev/next
This commit is contained in:
parent
5ba3ecacf4
commit
40ee4ec39a
2 changed files with 4 additions and 1 deletions
|
@ -165,7 +165,7 @@ class Post
|
|||
|
||||
public function hasPrevNext()
|
||||
{
|
||||
return $this->postType == 'post';
|
||||
return $this->postType == 'news';
|
||||
}
|
||||
|
||||
public function getAuthorName()
|
||||
|
|
|
@ -22,6 +22,9 @@
|
|||
<div class="content">
|
||||
<?php echo $post->getContentHtml() ?>
|
||||
</div>
|
||||
<?php if ($post->hasPrevNext()): ?>
|
||||
<?php echo View::render('content/_postNav', ['post' => $post]) ?>
|
||||
<?php endif ?>
|
||||
</section>
|
||||
|
||||
<?php echo View::render('nav/_learnFooter', ['isDark' => false]) ?>
|
||||
|
|
Loading…
Add table
Reference in a new issue