1
0
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:
Awilum
2014-01-09 20:53:28 +02:00
parent 015aff3cb3
commit 4381179378

View File

@@ -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);
}
}