mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
RSS Spec 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5361 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d1a3098d52
commit
3db40bffed
3 changed files with 7 additions and 7 deletions
|
|
@ -97,6 +97,9 @@
|
|||
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;
|
||||
case 'rss1.0':
|
||||
$info->date = date('Y-m-d\TH:i:sO');
|
||||
break;
|
||||
default:
|
||||
$info->date = date("D, d M Y H:i:s").' '.$GLOBALS['_time_zone'];
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||
|
||||
<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" >
|
||||
<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">
|
||||
<channel rdf:about="{getUrl('','mid',$mid,'module','rss','act','rss','format','rss1.0','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date'))}">
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
|
|
@ -14,14 +14,13 @@
|
|||
</items>
|
||||
<dc:date>{$info->date}</dc:date>
|
||||
<dc:language>{$info->language}</dc:language>
|
||||
<totalCount>{$info->total_count}</totalCount>
|
||||
</channel>
|
||||
<!--@foreach($document_list as $oDocument)-->
|
||||
<item rdf:about="{$oDocument->getPermanentUrl()}">
|
||||
<title>{str_replace('\'', ''',$oDocument->getTitle())}</title>
|
||||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<description>{str_replace('\'', ''', htmlspecialchars($oDocument->getContentText(200)))}</description>
|
||||
<dc:date>{$oDocument->getRegdateGM()}</dc:date>
|
||||
<dc:date>{$oDocument->getRegdate('Y-m-d\TH:i:sO')}</dc:date>
|
||||
</item>
|
||||
<!--@end-->
|
||||
</rdf:RDF>
|
||||
|
|
|
|||
|
|
@ -23,13 +23,11 @@
|
|||
<description>{str_replace('\'', ''', htmlspecialchars($oDocument->getContentText(100)))}</description>
|
||||
<!--@end-->
|
||||
<pubDate>{$oDocument->getRegdateGM()}</pubDate>
|
||||
{@$i=0;}
|
||||
<!--@foreach($oDocument->get('tag_list') as $tag)-->
|
||||
<category>{str_replace('\'', ''', htmlspecialchars($tag))}</category>
|
||||
{@$i++;}
|
||||
<!--@end-->
|
||||
<!--@if($i>0)-->
|
||||
<slash:comments>{$i}</slash:comments>
|
||||
<!--@if($oDocument->getCommentcount()>0)-->
|
||||
<slash:comments>{$oDocument->getCommentcount()}</slash:comments>
|
||||
<!--@end-->
|
||||
</item>
|
||||
<!--@end-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue