From 40ee4ec39a2d9757ea2c1218eec414382c324a7d Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Thu, 14 Jul 2016 09:41:21 -0400 Subject: [PATCH] replace prev/next --- model/Post.class.php | 2 +- view/template/content/post.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/model/Post.class.php b/model/Post.class.php index 41f64d95..8fedefa8 100644 --- a/model/Post.class.php +++ b/model/Post.class.php @@ -165,7 +165,7 @@ class Post public function hasPrevNext() { - return $this->postType == 'post'; + return $this->postType == 'news'; } public function getAuthorName() diff --git a/view/template/content/post.php b/view/template/content/post.php index c04df8fa..4e2d45b2 100644 --- a/view/template/content/post.php +++ b/view/template/content/post.php @@ -22,6 +22,9 @@
getContentHtml() ?>
+ hasPrevNext()): ?> + $post]) ?> + false]) ?>