mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
show learn footer for posts only
This commit is contained in:
parent
b9e733006c
commit
f5a9d87452
2 changed files with 8 additions and 1 deletions
|
@ -168,6 +168,11 @@ class Post
|
|||
return $this->postType == 'news';
|
||||
}
|
||||
|
||||
public function hasLearnFooter()
|
||||
{
|
||||
return $this->postType == 'news';
|
||||
}
|
||||
|
||||
public function getAuthorName()
|
||||
{
|
||||
switch(strtolower($this->author))
|
||||
|
|
|
@ -27,7 +27,9 @@
|
|||
<?php endif ?>
|
||||
</section>
|
||||
|
||||
<?php echo View::render('nav/_learnFooter', ['isDark' => false]) ?>
|
||||
<?php if ($post->hasLearnFooter()): ?>
|
||||
<?php echo View::render('nav/_learnFooter', ['isDark' => false]) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($post->hasAuthor()): ?>
|
||||
<?php echo View::render('content/_postAuthor', ['post' => $post]) ?>
|
||||
|
|
Loading…
Add table
Reference in a new issue