Feed 유효성 통과!

https://validator.w3.org/feed/
This commit is contained in:
conory 2017-09-05 10:18:26 +09:00
parent 22b16ecc73
commit b667808d95
6 changed files with 27 additions and 19 deletions

View file

@ -6,7 +6,7 @@
<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>
<updated>{$info->dateDT}</updated>
<id>{$info->id}</id>
<generator>Rhymix</generator>
<rights cond="$info->feed_copyright">{$info->feed_copyright}</rights>

View file

@ -7,7 +7,7 @@
<link>{$info->link}</link>
<description>{$info->description}</description>
<dc:language>{$info->language}</dc:language>
<dc:date>{$info->date}</dc:date>
<dc:date>{$info->dateDT}</dc:date>
<!--@if($info->feed_copyright)-->
<dc:rights>{$info->feed_copyright}</dc:rights>
<!--@end-->
@ -28,7 +28,7 @@
<item loop="$document_list=>$oDocument" rdf:about="{$oDocument->getPermanentUrl()}">
<title>{$oDocument->getTitleText()}</title>
<link>{$oDocument->getPermanentUrl()}</link>
<description>{$oDocument->getSummary(400)}</description>
<description>{$oDocument->getSummary(400)|escape}</description>
<dc:creator>{$oDocument->getNickName()}</dc:creator>
<dc:date>{$oDocument->getRegdateDT()}</dc:date>
</item>

View file

@ -1,13 +1,14 @@
{'<?xml version="1.0" encoding="UTF-8" ?>'}
<config autoescape="on" />
<rss version="2.0">
<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}</pubDate>
<pubDate>{$info->dateGM}</pubDate>
<generator>Rhymix</generator>
<copyright cond="$info->feed_copyright">{$info->feed_copyright}</copyright>
<image cond="$info->image">
@ -21,15 +22,15 @@
<!--@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>
<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>
<author>{$oDocument->getNickName()}</author>
<dc:creator>{$oDocument->getNickName()}</dc:creator>
<guid isPermaLink="true">{$oDocument->getPermanentUrl()}</guid>
<comments cond="$oDocument->allowComment()">{$oDocument->getPermanentUrl()}#comment</comments>
<pubDate>{$oDocument->getRegdateDT()}</pubDate>
<pubDate>{$oDocument->getRegdateGM()}</pubDate>
</item>
</channel>
</rss>

View file

@ -7,7 +7,7 @@
<link>{$info->link}</link>
<description>{$info->description}</description>
<language>{$info->language}</language>
<pubDate>{$info->date}</pubDate>
<pubDate>{$info->dateGM}</pubDate>
<totalCount>{$info->total_count}</totalCount>
<totalPage>{$info->total_page}</totalPage>
<item loop="$document_list=>$oDocument">
@ -17,13 +17,13 @@
<!--@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>
<description>{$oDocument->getSummary(400)|escape}</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>
<pubDate>{$oDocument->getRegdateGM()}</pubDate>
<upDate>{$oDocument->getUpdateGM()}</upDate>
</item>
</channel>
</rss>