[pLog-svn] r1912 - plog/branches/plog-1.0.1/templates/rss
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Thu Apr 28 14:39:00 GMT 2005
Author: oscar
Date: 2005-04-28 14:39:00 +0000 (Thu, 28 Apr 2005)
New Revision: 1912
Modified:
plog/branches/plog-1.0.1/templates/rss/rss20.template
Log:
removed the '+0000' bit from the <pubDate> tags because we do not store dates
in UTC format and because it was way too difficult to change everything now
to take into account the delta between our db times and UTC and on top of all
that, dynamically add the time difference as configured in the blog. As far as I know, the feeds should still be compliant.
Modified: plog/branches/plog-1.0.1/templates/rss/rss20.template
===================================================================
--- plog/branches/plog-1.0.1/templates/rss/rss20.template 2005-04-28 14:36:58 UTC (rev 1911)
+++ plog/branches/plog-1.0.1/templates/rss/rss20.template 2005-04-28 14:39:00 UTC (rev 1912)
@@ -1,34 +1,34 @@
-<?xml version="1.0" encoding="{$locale->getCharset()}"?>
-<?xml-stylesheet href="{$url->getUrl("/styles/rss.css")}" type="text/css"?>
-<rss version="2.0"
- xmlns:content="http://purl.org/rss/1.0/modules/content/"
- xmlns:dc="http://purl.org/dc/elements/1.1/"
->
- <channel>
- <title>{$blog->getBlog()|escape}</title>
- <link>{$url->blogLink()}</link>
- <description>{$blog->getAbout()|escape}</description>
- <pubDate>{$smarty.now|date_format:"%a, %d %b %Y %H:%M:%S"} +0000</pubDate>
- <generator>http://www.plogworld.net</generator>
- {foreach from=$posts item=post}
- <item>
- <title>{$post->getTopic()|escape}</title>
- <description>
- {$post->getText()|escape}
- </description>
- <link>{$url->postPermalink($post)}</link>
- <comments>{$url->postPermalink($post)}</comments>
- <guid>{$url->postPermalink($post)}</guid>
- {assign var="postOwner" value=$post->getUserInfo()}
- <dc:creator>{$postOwner->getUsername()|escape}</dc:creator>
- {foreach from=$post->getCategories() item=category}
- <category>{$category->getName()|escape}</category>
- {/foreach}
- {assign var="postDate" value=$post->getDateObject()}
- <pubDate>{$postDate->getUnixDate()|date_format:"%a, %d %b %Y %H:%M:%S"} +0000</pubDate>
- <source url="{$url->rssLink("rss20")}">{$blog->getBlog()|escape}</source>
- </item>
- {/foreach}
- </channel>
-</rss>
+<?xml version="1.0" encoding="{$locale->getCharset()}"?>
+<?xml-stylesheet href="{$url->getUrl("/styles/rss.css")}" type="text/css"?>
+<rss version="2.0"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+>
+ <channel>
+ <title>{$blog->getBlog()|escape}</title>
+ <link>{$url->blogLink()}</link>
+ <description>{$blog->getAbout()|escape}</description>
+ <pubDate>{$locale->formatDate($now, "%a, %d %b %Y %H:%M:%S")}</pubDate>
+ <generator>http://www.plogworld.net</generator>
+ {foreach from=$posts item=post}
+ <item>
+ <title>{$post->getTopic()|escape}</title>
+ <description>
+ {$post->getText()|escape}
+ </description>
+ <link>{$url->postPermalink($post)}</link>
+ <comments>{$url->postPermalink($post)}</comments>
+ <guid>{$url->postPermalink($post)}</guid>
+ {assign var="postOwner" value=$post->getUserInfo()}
+ <dc:creator>{$postOwner->getUsername()|escape}</dc:creator>
+ {foreach from=$post->getCategories() item=category}
+ <category>{$category->getName()|escape}</category>
+ {/foreach}
+ {assign var="postDate" value=$post->getDateObject()}
+ <pubDate>{$locale->formatDate($postDate, "%a, %d %b %Y %H:%M:%S")}</pubDate>
+ <source url="{$url->rssLink("rss20")}">{$blog->getBlog()|escape}</source>
+ </item>
+ {/foreach}
+ </channel>
+</rss>
More information about the pLog-svn
mailing list