mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 17:19:59 +09:00
RSS 모듈 재정비
This commit is contained in:
parent
cc21af669f
commit
2440058557
27 changed files with 613 additions and 764 deletions
28
modules/rss/tpl/format/atom10.html
Normal file
28
modules/rss/tpl/format/atom10.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{'<?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}</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->getRegdateDT()}</published>
|
||||
<updated>{$oDocument->getUpdateDT()}</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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue