mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-02 03:10:25 +02:00
Blog Plugin as a part of Monstra CMS #188
This commit is contained in:
@@ -20,6 +20,8 @@ Plugin::register( __FILE__,
|
||||
'Awilum',
|
||||
'http://monstra.org/');
|
||||
|
||||
// Add action
|
||||
Action::add('frontend_pre_render', 'Blog::_rss');
|
||||
|
||||
/**
|
||||
* Blog Class
|
||||
@@ -34,7 +36,6 @@ class Blog {
|
||||
*/
|
||||
public static $parent_page_name = 'blog';
|
||||
|
||||
|
||||
/**
|
||||
* Get tags
|
||||
*
|
||||
@@ -382,6 +383,15 @@ class Blog {
|
||||
return Page::author();
|
||||
}
|
||||
|
||||
/**
|
||||
* _rss
|
||||
*/
|
||||
public static function _rss() {
|
||||
if (Uri::segment(0) == 'rss') {
|
||||
include PLUGINS . DS . 'blog' . DS . 'rss.php';
|
||||
Request::shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user