1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-09 15:46:24 +02:00

Blog Plugin as a part of Monstra CMS #188

This commit is contained in:
Awilum
2014-01-14 23:56:52 +02:00
parent 5dc4c65f76
commit ed323cfe7b

View File

@ -8,7 +8,7 @@ define('MONSTRA_ACCESS', true);
require_once(ROOT . DS . 'engine' . DS . '_init.php'); require_once(ROOT . DS . 'engine' . DS . '_init.php');
// Get all posts for blog parent page/post // Get all posts for blog parent page/post
$posts = Pages::$pages->select('[parent="blog" and status="published"]', 5, 0, array('slug', 'title', 'author', 'date'), 'date', 'DESC'); $posts = Pages::$pages->select('[parent="'.Blog::$parent_page_name.'" and status="published"]', 5, 0, array('slug', 'title', 'author', 'date'), 'date', 'DESC');
// Date now // Date now
$now = date("D, d M Y H:i:s T"); $now = date("D, d M Y H:i:s T");