<?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>Trackbacks on {$blog->getBlog()|escape}</title>
  <link>{$url->blogLink()}</link>
  <description>{$blog->getAbout()|escape}</description>
  <pubDate>{$locale->formatDateAsRFC822($now)}</pubDate>
  <generator>http://www.lifetype.net</generator>
  {foreach from=$trackbacks item=trackback}
  {assign var="TrackbacksRssPost" value=$trackback->getArticle()}
  <item>
   <title>
    {if $trackback->getTitle() != ""}
      {$trackback->getTitle()|escape}
    {else}
      Trackback on {$TrackbacksRssPost->getTopic()|escape}
    {/if}
   </title>
   <description>
    {if $trackback->getExcerpt() != ""}
      {$trackback->getExcerpt()|escape}
    {else}
      No trackback
    {/if}
   </description>
   <link>{$trackback->getUrl()}</link>
   <trackbacks>{$url->postTrackbackStatsLink($TrackbacksRssPost)}</trackbacks>
   <guid>{$url->postTrackbackStatsLink($TrackbacksRssPost)}#{$trackback->getId()}</guid>
   <dc:creator>{$trackback->getBlogname()|escape}</dc:creator>
   {foreach from=$TrackbacksRssPost->getCategories() item=category}   
    <category>{$category->getName()|escape}</category>
   {/foreach}
   {assign var="trackbackDate" value=$trackback->getDateObject()}
   <pubDate>{$locale->formatDateAsRFC822($trackbackDate, $blog)}</pubDate>
   <source url="{$url->rssLink("rss20")}">{$blog->getBlog()|escape}</source>
  </item>
  {/foreach}
 </channel>
</rss>
