From e08c17df4b2f649f0bd895fc6ae5a8f45ac5d9e0 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 9 Jan 2014 22:20:41 +0200 Subject: [PATCH] Blog Plugin as a part of Monstra CMS - getPostAuthor() - added #188 --- plugins/blog/blog.plugin.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plugins/blog/blog.plugin.php b/plugins/blog/blog.plugin.php index d17047f..1346deb 100644 --- a/plugins/blog/blog.plugin.php +++ b/plugins/blog/blog.plugin.php @@ -367,5 +367,21 @@ return Page::date($format); } + + /** + * Get author of current post + * + * + * echo Blog::getPostAuthor(); + * + * + * @return string + */ + public static function getPostAuthor() + { + return Page::author(); + } + + }