[pLog-svn] r6816 - plog/branches/lifetype-1.2/templates/summary/rss
endless enigma
endless_enigma at mail.ru
Sat Feb 21 12:45:13 EST 2009
nice that one was also on my todo.
Where do you validate the feeds?
On Sat, 21 Feb 2009 17:35:19 +0100, <jondaley at devel.lifetype.net> wrote:
> Author: jondaley
> Date: 2009-02-21 11:35:19 -0500 (Sat, 21 Feb 2009)
> New Revision: 6816
>
> Modified:
> plog/branches/lifetype-1.2/templates/summary/rss/atom.template
> plog/branches/lifetype-1.2/templates/summary/rss/blogs_atom.template
> Log:
> atom upgraded to 1.0, and now validates
>
> Modified: plog/branches/lifetype-1.2/templates/summary/rss/atom.template
> ===================================================================
> ---
> plog/branches/lifetype-1.2/templates/summary/rss/atom.template 2009-02-21
> 16:22:12 UTC (rev 6815)
> +++
> plog/branches/lifetype-1.2/templates/summary/rss/atom.template 2009-02-21
> 16:35:19 UTC (rev 6816)
> @@ -1,11 +1,14 @@
> <?xml version="1.0" encoding="{$locale->getCharset()}"?>
> -<feed version="0.3" xmlns="http://purl.org/atom/ns#"
> xmlns:dc="http://purl.org/dc/elements/1.1/"
> xml:lang="{$locale->getLanguageId()|lower}">
> +<feed xmlns="http://www.w3.org/2005/Atom"
> + xmlns:dc="http://purl.org/dc/elements/1.1/"
> + xml:lang="{$locale->getLanguageId()|lower}">
> <title>{$serviceName}</title>
> -<link rel="alternate" type="text/html" href="{$url->blogLink()}" />
> +<link rel="alternate" type="text/html"
> href="{$url->getBaseUrl(false)}/summary.php" />
> {assign var="newestDate" value=$posts[0]->getDateObject()}
> -<modified>{$locale->formatDate($newestDate,
> "%Y-%m-%dT%H:%M:%SZ")}</modified>
> -<generator url="http://www.lifetype.net/"
> version="1.0.2">LifeType</generator>
> -<copyright>Copyright (c) Your copyright notice</copyright>
> +<updated>{$locale->formatDate($newestDate,
> "%Y-%m-%dT%H:%M:%S%G")}</updated>
> +<generator>{$version}</generator>
> +<rights>Copyright (c) Your copyright notice</rights>
> +<id>{$url->getBaseUrl(false)}/rss.php?summary=1&type={$type}</id>
> {foreach from=$posts item=post}
> {assign var=blog value=$post->getBlogInfo()}
> {assign var=url value=$blog->getBlogRequestGenerator()}
> @@ -14,22 +17,19 @@
> <title>{$post->getTopic()|escape}</title>
> <link rel="alternate" type="text/html"
> href="{$url->postPermalink($post)}" />
> {assign var="postDate" value=$post->getDateObject()}
> - <modified>{$postDate->getW3Date()}</modified>
> - <issued>{$locale->formatDate($postDate, "%Y-%m-%dT%H:%M:%S")}</issued>
> - <created>{$locale->formatDate($postDate,
> "%Y-%m-%dT%H:%M:%SZ")}</created>
> - <summary type="text/plain">{$post->getText()|strip_tags|truncate:200:"
> ..."|escape:"html"}</summary>
> + <updated>{$locale->formatDate($postDate,
> "%Y-%m-%dT%H:%M:%S%G")}</updated>
> + <summary type="text">{$post->getText()|strip_tags|truncate:200:"
> ..."|escape:"html"}</summary>
> <author>
> {assign var="postOwner" value=$post->getUserInfo()}
> <name>{$postOwner->getUsername()}</name>
> - <url>{$url->blogLink()}</url>
> </author>
> <dc:subject>
> {foreach from=$post->getCategories() item=category}
> {$category->getName()|escape}
> {/foreach}
> </dc:subject>
> - <content type="text/html" mode="escaped"
> xml:lang="{$locale->getLanguageId()|lower}"
> xml:base="{$url->blogLink()}">
> - {$post->getText()|escape}
> + <content type="text" xml:lang="{$locale->getLanguageId()|lower}"
> xml:base="{$url->blogLink()}">
> + {$post->getText()|strip_tags}
> </content>
> </entry>
> {/foreach}
>
> Modified:
> plog/branches/lifetype-1.2/templates/summary/rss/blogs_atom.template
> ===================================================================
> ---
> plog/branches/lifetype-1.2/templates/summary/rss/blogs_atom.template 2009-02-21
> 16:22:12 UTC (rev 6815)
> +++
> plog/branches/lifetype-1.2/templates/summary/rss/blogs_atom.template 2009-02-21
> 16:35:19 UTC (rev 6816)
> @@ -1,28 +1,28 @@
> <?xml version="1.0" encoding="{$locale->getCharset()}"?>
> -<feed version="0.3" xmlns="http://purl.org/atom/ns#"
> xmlns:dc="http://purl.org/dc/elements/1.1/"
> xml:lang="{$locale->getLanguageId()|lower}">
> +<feed xmlns="http://www.w3.org/2005/Atom"
> + xmlns:dc="http://purl.org/dc/elements/1.1/"
> + xml:lang="{$locale->getLanguageId()|lower}">
> <title>{$serviceName}</title>
> -<generator url="http://www.lifetype.net/"
> version="1.0.2">LifeType</generator>
> -<copyright>Copyright (c) Your copyright notice</copyright>
> +<updated>{$locale->formatDate($newestDate,
> "%Y-%m-%dT%H:%M:%S%G")}</updated>
> +<generator>{$version}</generator>
> +<rights>Copyright (c) Your copyright notice</rights>
> +<id>{$url->getBaseUrl(false)}/rss.php?summary=1&type={$type}</id>
> {foreach from=$blogs item=blog}
> {assign var=url value=$blog->getBlogRequestGenerator()}
> <entry>
> <id>{$url->blogLink()}</id>
> <title>{$blog->getBlog()|escape}</title>
> <link rel="alternate" type="text/html" href="{$url->blogLink()}" />
> - {assign var="blogDate" value=$blog->getCreateDateObject()}
> {assign var="modifiedDate" value=$blog->getUpdateDateObject()}
> - <modified>{$modifiedDate->getW3Date()}</modified>
> - <issued>{$locale->formatDate($blogDate, "%Y-%m-%dT%H:%M:%S")}</issued>
> - <created>{$locale->formatDate($blogDate,
> "%Y-%m-%dT%H:%M:%SZ")}</created>
> - <summary
> type="text/plain">{$blog->getAbout()|strip_tags|truncate:200:"
> ..."|escape:"html"}</summary>
> + <updated>{$locale->formatDate($modifiedDate,
> "%Y-%m-%dT%H:%M:%S%G")}</updated>
> + <summary type="text">{$blog->getAbout()|strip_tags|truncate:200:"
> ..."|escape:"html"}</summary>
> <author>
> {assign var="blogOwner" value=$blog->getOwnerInfo()}
> <name>{$blogOwner->getUsername()}</name>
> - <url>{$url->blogLink()}</url>
> </author>
> {assign var=blogLocale value=$blog->getLocale()}
> - <content type="text/html" mode="escaped"
> xml:lang="{$blogLocale->getLanguageId()|lower}"
> xml:base="{$url->blogLink()}">
> - {$blog->getAbout()|escape}
> + <content type="text" xml:lang="{$blogLocale->getLanguageId()|lower}"
> xml:base="{$url->blogLink()}">
> + {$blog->getAbout()|strip_tags}
> </content>
> </entry>
> {/foreach}
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the pLog-svn
mailing list