[pLog-svn] r7009 - in plugins/branches/lifetype-1.2/recentcomments: . templates
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Fri Jul 30 22:17:39 EDT 2010
Author: jondaley
Date: 2010-07-30 22:17:39 -0400 (Fri, 30 Jul 2010)
New Revision: 7009
Modified:
plugins/branches/lifetype-1.2/recentcomments/pluginrecentcomments.class.php
plugins/branches/lifetype-1.2/recentcomments/templates/rss20.template
Log:
rss feed validates now
Modified: plugins/branches/lifetype-1.2/recentcomments/pluginrecentcomments.class.php
===================================================================
--- plugins/branches/lifetype-1.2/recentcomments/pluginrecentcomments.class.php 2010-07-31 01:21:37 UTC (rev 7008)
+++ plugins/branches/lifetype-1.2/recentcomments/pluginrecentcomments.class.php 2010-07-31 02:17:39 UTC (rev 7009)
@@ -16,10 +16,10 @@
{
$this->PluginBase($source);
$this->id = "recentcomments";
- $this->version = "20070830";
+ $this->version = "20100730";
$this->author = "Mark Wu";
- $this->desc = "This plugin offers the most recently posted article comments.";
+ $this->desc = "This plugin offers the most recently posted article comments, trackbacks and rss feeds.";
$this->locales = Array( "en_UK" , "zh_TW" , "zh_CN", "es_ES" );
if( $source == "admin" )
Modified: plugins/branches/lifetype-1.2/recentcomments/templates/rss20.template
===================================================================
--- plugins/branches/lifetype-1.2/recentcomments/templates/rss20.template 2010-07-31 01:21:37 UTC (rev 7008)
+++ plugins/branches/lifetype-1.2/recentcomments/templates/rss20.template 2010-07-31 02:17:39 UTC (rev 7009)
@@ -3,13 +3,15 @@
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:atom="http://www.w3.org/2005/Atom"
>
<channel>
- <title>Comments on {$blog->getBlog()|escape}</title>
+ <atom:link href="{$recentcomments->getRssFeedUrl()}" rel="self" type="application/rss+xml" />
+ <title>Comments on {$blog->getBlog()|escape:hexentity}</title>
<link>{$url->blogLink()}</link>
- <description>{$blog->getAbout()|escape}</description>
+ <description>{$blog->getAbout()|strip_tags}</description>
<pubDate>{$locale->formatDateAsRFC822($now)}</pubDate>
- <generator>http://www.lifetype.net</generator>
+ <generator>http://lifetype.net</generator>
{foreach from=$comments item=comment}
{assign var="CommentsRssPost" value=$comment->getArticle()}
<item>
@@ -17,7 +19,7 @@
{if $comment->getTopic() != ""}
{$comment->getTopic()|escape}
{else}
- Comment on {$CommentsRssPost->getTopic()|escape}
+ Comment on {$CommentsRssPost->getTopic()|escape:hexentity}
{/if}
</title>
<description>
More information about the pLog-svn
mailing list