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

28 lines
1.5 KiB
HTML

{'<?xml version="1.0" encoding="UTF-8" ?>'}
<config autoescape="on" />
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{$info->title}</title>
<subtitle cond="$info->description">{$info->description}</subtitle>
<link rel="alternate" type="text/html" hreflang="{$info->language}" href="{$info->link}"/>
<link rel="self" type="application/atom+xml" href="{$info->id}"/>
<updated>{$info->date_c}</updated>
<id>{$info->id}</id>
<generator>Rhymix</generator>
<rights cond="$info->feed_copyright">{$info->feed_copyright}</rights>
<entry loop="$document_list=>$oDocument">
<title>{$oDocument->getTitleText()}</title>
<link rel="alternate" type="text/html" href="{$oDocument->getPermanentUrl()}"/>
<link cond="$oDocument->allowComment()" rel="replies" type="text/html" href="{$oDocument->getPermanentUrl()}#comment"/>
<id>{$oDocument->getPermanentUrl()}</id>
<published>{$oDocument->getRegdateGM('c')}</published>
<updated>{$oDocument->getUpdateGM('c')}</updated>
<author>
<name>{$oDocument->getNickName()}</name>
</author>
<summary type="text">{$oDocument->getSummary(400)}</summary>
<content type="html" cond="$target_modules[$oDocument->get('module_srl')] == 'Y'">{utf8_trim(utf8_normalize_spaces($oDocument->get('content')))|escape}</content>
<category cond="$oDocument->get('category_srl') && $category_name = $category_list[$oDocument->get('module_srl')][$oDocument->get('category_srl')]->title" term="{$oDocument->get('category_srl')}" label="{$category_name}"/>
<category loop="$oDocument->get('tag_list')=>$tag" term="{$tag}"/>
</entry>
</feed>