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';
|
return $this->postType == 'news';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function hasLearnFooter()
|
||||||
|
{
|
||||||
|
return $this->postType == 'news';
|
||||||
|
}
|
||||||
|
|
||||||
public function getAuthorName()
|
public function getAuthorName()
|
||||||
{
|
{
|
||||||
switch(strtolower($this->author))
|
switch(strtolower($this->author))
|
||||||
|
|
|
@ -27,7 +27,9 @@
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<?php if ($post->hasLearnFooter()): ?>
|
||||||
<?php echo View::render('nav/_learnFooter', ['isDark' => false]) ?>
|
<?php echo View::render('nav/_learnFooter', ['isDark' => false]) ?>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if ($post->hasAuthor()): ?>
|
<?php if ($post->hasAuthor()): ?>
|
||||||
<?php echo View::render('content/_postAuthor', ['post' => $post]) ?>
|
<?php echo View::render('content/_postAuthor', ['post' => $post]) ?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue