mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 04:07:59 +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();
|
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