mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 18:30:20 +02:00
Blog Plugin as a part of Monstra CMS - getPostDate() - added #188
This commit is contained in:
@@ -352,5 +352,20 @@
|
||||
return Page::title();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get Blog Post Date
|
||||
*
|
||||
* <code>
|
||||
* echo Blog::getPostDate();
|
||||
* </code>
|
||||
*
|
||||
* @param string $format Date format
|
||||
* @return string
|
||||
*/
|
||||
public static function getPostDate($format = 'Y-m-d') {
|
||||
return Page::date($format);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user