mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +09:00
r5314 fix
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5316 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
04f980fca4
commit
f0461d659e
2 changed files with 13 additions and 4 deletions
|
|
@ -89,7 +89,16 @@
|
||||||
}
|
}
|
||||||
$info->total_count = $output->total_count;
|
$info->total_count = $output->total_count;
|
||||||
$info->total_page = $output->total_page;
|
$info->total_page = $output->total_page;
|
||||||
$info->date = date("D, d M Y H:i:s").' '.$GLOBALS['_time_zone'];
|
switch (Context::get('format')) {
|
||||||
|
case 'atom':
|
||||||
|
$info->date = date('Y-m-d\TH:i:sP');
|
||||||
|
if($mid) { $info->id = getUrl('','mid',$mid,'act','rss','format','atom','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date')); }
|
||||||
|
else { $info->id = getUrl('','module','rss','act','rss','format','atom','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date')); }
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$info->date = date("D, d M Y H:i:s").' '.$GLOBALS['_time_zone'];
|
||||||
|
break;
|
||||||
|
}
|
||||||
$info->language = Context::getLangType();
|
$info->language = Context::getLangType();
|
||||||
|
|
||||||
// RSS 출력물에서 사용될 변수 세팅
|
// RSS 출력물에서 사용될 변수 세팅
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@
|
||||||
<!--@if($info->description)-->
|
<!--@if($info->description)-->
|
||||||
<subtitle type="html">{str_replace('\'', ''', htmlspecialchars($info->description))}</subtitle>
|
<subtitle type="html">{str_replace('\'', ''', htmlspecialchars($info->description))}</subtitle>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
<updated>{date('Y-m-d\TH:i:sP')}</updated>
|
<updated>{$info->date}</updated>
|
||||||
<id>{getUrl('','mid',$mid,'module','rss','act','rss','format','atom1.0','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date'))}</id>
|
<id>{$info->id}</id>
|
||||||
<link rel="alternate" type="text/html" hreflang="{$info->language}" href="{$info->link}"/>
|
<link rel="alternate" type="text/html" hreflang="{$info->language}" href="{$info->link}"/>
|
||||||
<link rel="self" type="application/atom+xml" href="{getUrl('','mid',$mid,'module','rss','act','rss','format','atom1.0','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date'))}"/>
|
<link rel="self" type="application/atom+xml" href="{$info->id}"/>
|
||||||
<generator uri="http://www.zeroboard.com/" version="{__ZBXE_VERSION__}">XpressEngine</generator>
|
<generator uri="http://www.zeroboard.com/" version="{__ZBXE_VERSION__}">XpressEngine</generator>
|
||||||
<!--@foreach($document_list as $oDocument)--> <entry>
|
<!--@foreach($document_list as $oDocument)--> <entry>
|
||||||
<title>{str_replace('\'', ''',$oDocument->getTitle())}</title>
|
<title>{str_replace('\'', ''',$oDocument->getTitle())}</title>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue