#17625594 Atom 1.0 지원, rss포맷 다양화

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5312 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-01-11 05:50:21 +00:00
parent c434373e5c
commit c9edb15e8d
5 changed files with 73 additions and 23 deletions

View file

@ -104,7 +104,21 @@
$path = $this->module_path.'tpl/';
//if($args->start_date || $args->end_date) $file = 'xe_rss';
//else $file = 'rss20';
$file = 'rss20';
switch (Context::get('format')) {
case 'xe':
$file = 'xe_rss';
break;
case 'atom':
$file = 'atom10';
break;
case 'rss1.0':
$file = 'rss10';
break;
default:
$file = 'rss20';
break;
}
$oTemplate = new TemplateHandler();
$oContext = &Context::getInstance();