RSS 보기의 옵션 기능 추가 및 RSS를 최근 업데이트 순으로 보여주도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/trunk@2249 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-08 04:13:45 +00:00
parent fb0ceb7d0e
commit b1c00fb771
7 changed files with 124 additions and 57 deletions

View file

@ -8,13 +8,17 @@
<language>{$info->language}</language>
<pubDate>{$info->date}</pubDate>
<totalCount>{$info->total_count}</totalCount>
<!--@foreach($content as $item)-->
<!--@foreach($document_list as $oDocument)-->
<item>
<title><![CDATA[{$item->title}]]></title>
<author><![CDATA[{$item->author}]]></author>
<link><![CDATA[{$item->link}]]></link>
<description><![CDATA[{$item->description}]]></description>
<pubDate>{$item->date}</pubDate>
<title><![CDATA[{$oDocument->getTitleText()}]]></title>
<author><![CDATA[{$oDocument->getNickName()}]]></author>
<link><![CDATA[{$oDocument->getPermanentUrl()}]]></link>
<!--@if($mid_list[$oDocument->get('module_srl')]->open_rss=='Y')-->
<description><![CDATA[{$oDocument->getContent(false)}]]></description>
<!--@else-->
<description><![CDATA[{$oDocument->getContentText(100)}]]></description>
<!--@end-->
<pubDate>{$oDocument->getRegdateGM()}</pubDate>
</item>
<!--@end-->
</channel>

View file

@ -0,0 +1,30 @@
{'<?xml version="1.0" encoding="utf-8" ?>'}
<rss version="1.0">
<channel>
<title><![CDATA[{$info->title}]]></title>
<link><![CDATA[{$info->link}]]></link>
<description><![CDATA[{$info->description}]]></description>
<language>{$info->language}</language>
<pubDate>{$info->date}</pubDate>
<totalCount>{$info->total_count}</totalCount>
<totalPage>{$info->total_page}</totalPage>
<!--@foreach($document_list as $oDocument)-->
<item>
<title><![CDATA[{$oDocument->getTitleText()}]]></title>
<author><![CDATA[{$oDocument->getNickName()}]]></author>
<link><![CDATA[{$oDocument->getPermanentUrl()}]]></link>
<!--@if($mid_list[$oDocument->get('module_srl')]->open_rss=='Y')-->
<description><![CDATA[{$oDocument->getContent(false)}]]></description>
<!--@else-->
<description><![CDATA[{$oDocument->getContentText(100)}]]></description>
<!--@end-->
<tags><![CDATA[{$oDocument->get('tags')}]]></tags>
<comment_count>{$oDocument->getCommentCount()}</comment_count>
<trackback_count>{$oDocument->getTrackbackCount()}</trackback_count>
<pubDate>{$oDocument->getRegdateGM()}</pubDate>
<upDate>{$oDocument->getUpdateGM()}</upDate>
</item>
<!--@end-->
</channel>
</rss>