mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
#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:
parent
c434373e5c
commit
c9edb15e8d
5 changed files with 73 additions and 23 deletions
|
|
@ -1,27 +1,27 @@
|
|||
{'<?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/" >
|
||||
<channel rdf:about="http://blog.rss.naver.com/blogRss.nhn?blogId=myyami78&rss=1.0">
|
||||
<title><![CDATA[{$info->title}]]></title>
|
||||
<link><![CDATA[{$info->link}]]></link>
|
||||
<description><![CDATA[{$info->description}]]></description>
|
||||
<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>
|
||||
<description>{str_replace('\'', ''', htmlspecialchars($info->description))}</description>
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<!--@foreach($content as $key => $item)-->
|
||||
<rdf:li resource="{$key}" />
|
||||
<!--@foreach($document_list as $oDocument)-->
|
||||
<rdf:li resource="{$oDocument->getPermanentUrl()}" />
|
||||
<!--@end-->
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
<dc:date>{$info->date}</dc:date>
|
||||
<dc:language>{$info->language}</dc:language>
|
||||
<totalCount>{$info->total_count}</totalCount>
|
||||
</channel>
|
||||
<!--@foreach($content as $key => $item)-->
|
||||
<item rdf:about="{$key}">
|
||||
<title><![CDATA[{$item->title}]]></title>
|
||||
<link><![CDATA[{$item->link}]]></link>
|
||||
<description><![CDATA[{$item->description}]]></description>
|
||||
<dc:date>{$item->date}</dc:date>
|
||||
</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>
|
||||
</item>
|
||||
<!--@end-->
|
||||
</rdf:RDF>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue