rhymix/modules/rss/tpl/format/rss20.html
conory 1d8d685fc1 의도에 맞도록 getRegdateGM(), getUpdateGM() 개선
RSS Feed의 날짜 표시를 GMT+0으로 변경
2017-09-06 23:38:42 +09:00

36 lines
1.7 KiB
HTML

{'<?xml version="1.0" encoding="UTF-8" ?>'}
<config autoescape="on" />
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title>{$info->title}</title>
<link>{$info->link}</link>
<description>{$info->description}</description>
<atom:link href="{$info->id}" rel="self" type="application/rss+xml" />
<language>{$info->language}</language>
<pubDate>{$info->date_r}</pubDate>
<generator>Rhymix</generator>
<copyright cond="$info->feed_copyright">{$info->feed_copyright}</copyright>
<image cond="$info->image">
<url>{$info->image}</url>
<title>{$info->feed_title}</title>
<link>{$info->site_url}</link>
</image>
<item loop="$document_list=>$oDocument">
<title>{$oDocument->getTitleText()}</title>
<link>{$oDocument->getPermanentUrl()}</link>
<!--@if($target_modules[$oDocument->get('module_srl')]->open_rss == 'Y')-->
<description>{utf8_trim(utf8_normalize_spaces($oDocument->get('content')))|escape}</description>
<!--@else-->
<description>{$oDocument->getSummary(400)|escape}</description>
<!--@end-->
<category cond="$oDocument->getModuleName()">{$oDocument->getModuleName()}</category>
<category cond="$oDocument->get('category_srl') && $category_name = $category_list[$oDocument->get('module_srl')][$oDocument->get('category_srl')]->title">{$category_name}</category>
<category loop="$oDocument->get('tag_list')=>$tag">{$tag}</category>
<dc:creator>{$oDocument->getNickName()}</dc:creator>
<guid isPermaLink="true">{$oDocument->getPermanentUrl()}</guid>
<comments cond="$oDocument->allowComment()">{$oDocument->getPermanentUrl()}#comment</comments>
<pubDate>{$oDocument->getRegdateGM('r')}</pubDate>
</item>
</channel>
</rss>