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:
2
rss.php
2
rss.php
@ -8,7 +8,7 @@ define('MONSTRA_ACCESS', true);
|
||||
require_once(ROOT . DS . 'engine' . DS . '_init.php');
|
||||
|
||||
// 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
|
||||
$now = date("D, d M Y H:i:s T");
|
||||
|
Reference in New Issue
Block a user