rhymix/modules/rss/tpl/rss20.html

28 lines
1.5 KiB
HTML

{'<?xml version="1.0" encoding="UTF-8" ?>'}
<rss version="2.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/">
<channel>
<title>{$info->title}</title>
<link>{$info->link}</link>
<description>{htmlspecialchars(str_replace('\'', '&apos;',$info->description))}</description>
<language>{$info->language}</language>
<pubDate>{$info->date}</pubDate>
<totalCount>{$info->total_count}</totalCount>
<!--@foreach($document_list as $oDocument)-->
<item>
<title>{str_replace('\'', '&apos;',$oDocument->getTitle())}</title>
<author>{str_replace('\'', '&apos;',$oDocument->getNickName())}</author>
<link>{$oDocument->getPermanentUrl()}</link>
<!--@if($rss_config[$oDocument->get('module_srl')]=='Y')-->
<description>{htmlspecialchars(str_replace('\'', '&apos;',$oDocument->getContent(false,false,true)))}</description>
<!--@else-->
<description>{htmlspecialchars(str_replace('\'', '&apos;',$oDocument->getContentText(100)))}</description>
<!--@end-->
<pubDate>{$oDocument->getRegdateGM()}</pubDate>
<!--@foreach($oDocument->get('tag_list') as $tag)-->
<category>{htmlspecialchars(str_replace('\'', '&apos;',$tag))}</category>
<!--@end-->
</item>
<!--@end-->
</channel>
</rss>