mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +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>
|
||||
35
modules/rss/tpl/format/rss10.html
Normal file
35
modules/rss/tpl/format/rss10.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||
|
||||
<config autoescape="on" />
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
|
||||
<channel rdf:about="{$info->id}">
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<description>{$info->description}</description>
|
||||
<dc:language>{$info->language}</dc:language>
|
||||
<dc:date>{$info->date}</dc:date>
|
||||
<!--@if($info->feed_copyright)-->
|
||||
<dc:rights>{$info->feed_copyright}</dc:rights>
|
||||
<!--@end-->
|
||||
<image cond="$info->image" rdf:resource="{$info->image}"/>
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<!--@foreach($document_list as $oDocument)-->
|
||||
<rdf:li resource="{$oDocument->getPermanentUrl()}"/>
|
||||
<!--@end-->
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
</channel>
|
||||
<image cond="$info->image" rdf:about="{$info->image}">
|
||||
<title>{$info->feed_title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<url>{$info->image}</url>
|
||||
</image>
|
||||
<item loop="$document_list=>$oDocument" rdf:about="{$oDocument->getPermanentUrl()}">
|
||||
<title>{$oDocument->getTitleText()}</title>
|
||||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<description>{$oDocument->getSummary(400)}</description>
|
||||
<dc:creator>{$oDocument->getNickName()}</dc:creator>
|
||||
<dc:date>{$oDocument->getRegdateDT()}</dc:date>
|
||||
</item>
|
||||
</rdf:RDF>
|
||||
35
modules/rss/tpl/format/rss20.html
Normal file
35
modules/rss/tpl/format/rss20.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||
|
||||
<config autoescape="on" />
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<description>{$info->description}</description>
|
||||
<language>{$info->language}</language>
|
||||
<pubDate>{$info->date}</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)}</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>
|
||||
<author>{$oDocument->getNickName()}</author>
|
||||
<guid isPermaLink="true">{$oDocument->getPermanentUrl()}</guid>
|
||||
<comments cond="$oDocument->allowComment()">{$oDocument->getPermanentUrl()}#comment</comments>
|
||||
<pubDate>{$oDocument->getRegdateDT()}</pubDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
29
modules/rss/tpl/format/xe.html
Normal file
29
modules/rss/tpl/format/xe.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||
|
||||
<config autoescape="on" />
|
||||
<rss version="1.0">
|
||||
<channel>
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<description>{$info->description}</description>
|
||||
<language>{$info->language}</language>
|
||||
<pubDate>{$info->date}</pubDate>
|
||||
<totalCount>{$info->total_count}</totalCount>
|
||||
<totalPage>{$info->total_page}</totalPage>
|
||||
<item loop="$document_list=>$oDocument">
|
||||
<title>{$oDocument->getTitleText()}</title>
|
||||
<author>{$oDocument->getNickName()}</author>
|
||||
<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)}</description>
|
||||
<!--@end-->
|
||||
<tags>{$oDocument->get('tags')}</tags>
|
||||
<comment_count>{$oDocument->getCommentCount()}</comment_count>
|
||||
<trackback_count>{$oDocument->getTrackbackCount()}</trackback_count>
|
||||
<pubDate>{$oDocument->getRegdateDT()}</pubDate>
|
||||
<upDate>{$oDocument->getUpdateDT()}</upDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
Loading…
Add table
Add a link
Reference in a new issue