<?xml version="1.0" encoding="{$locale->getCharset()}"?>
<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} - {$album->getName()|escape}</title>
  <link>{$url->blogLink()}</link>
  <description>{$album->getDescription()|escape}</description>
  <pubDate>{$locale->formatDate($now, "%a, %d %b %Y %H:%M:%S")}</pubDate>
  <generator>http://www.lifetype.net</generator>
  {foreach from=$resources item=resource}
  <item>
   <title>{$resource->getFileName()|escape}</title>
   <description>
    {$resource->getDescription()|escape}
   </description>
   <link>{$url->resourceLink($resource)}</link>
   <guid>{$url->resourceLink($resource)}</guid>
   {assign var="resourceOwner" value=$blog->getOwnerInfo()}
   <dc:creator>{$resourceOwner->getUsername()|escape}</dc:creator>
   <category>{$album->getName()|escape}</category>
   {assign var="resourceDate" value=$resource->getTimestamp()}
   <pubDate>{$locale->formatDate($resourceDate, "%a, %d %b %Y %H:%M:%S")}</pubDate>
   <enclosure url="{$url->resourceDownloadLink($resource)}" type="{$resource->getMimeType()}" length="{$resource->getFileSize()}" />
  </item>
  {/foreach}
 </channel>
</rss>
