mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 12:48:00 +02:00
Blog Plugin as a part of Monstra CMS - getPostAuthor() - added #188
This commit is contained in:
@@ -367,5 +367,21 @@
|
|||||||
return Page::date($format);
|
return Page::date($format);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get author of current post
|
||||||
|
*
|
||||||
|
* <code>
|
||||||
|
* echo Blog::getPostAuthor();
|
||||||
|
* </code>
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function getPostAuthor()
|
||||||
|
{
|
||||||
|
return Page::author();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user