1
0
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:
Awilum
2014-02-12 23:53:07 +02:00
parent 81ffb867be
commit 9ea4477bd8
2 changed files with 44 additions and 1 deletions

View File

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