diff --git a/model/Post.class.php b/model/Post.class.php index 8fedefa8..a4e02756 100644 --- a/model/Post.class.php +++ b/model/Post.class.php @@ -168,6 +168,11 @@ class Post return $this->postType == 'news'; } + public function hasLearnFooter() + { + return $this->postType == 'news'; + } + public function getAuthorName() { switch(strtolower($this->author)) diff --git a/view/template/content/post.php b/view/template/content/post.php index 4e2d45b2..92fdb59c 100644 --- a/view/template/content/post.php +++ b/view/template/content/post.php @@ -27,7 +27,9 @@ - false]) ?> + hasLearnFooter()): ?> + false]) ?> + hasAuthor()): ?> $post]) ?>