<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title><{$channel_title|escape}></title>
    <link><{$channel_link|escape}></link>
    <description><{$channel_desc|escape}></description>
    <lastBuildDate><{$channel_lastbuild|escape}></lastBuildDate>
    <docs>http://backend.userland.com/rss/</docs>
    <generator><{$channel_generator|escape}></generator>
    <managingEditor><{$channel_editor|escape}></managingEditor>
    <webMaster><{$channel_webmaster|escape}></webMaster>
    <language><{$channel_language|escape}></language>
    <{if $image_url != ""}>
    <image>
      <title><{$channel_title|escape}></title>
      <url><{$image_url|escape}></url>
      <link><{$channel_link|escape}></link>
      <width><{$image_width|escape}></width>
      <height><{$image_height|escape}></height>
    </image>
    <{/if}>
    <{foreach item=item from=$items}>
      <item>
        <title><{$item.title|escape}></title>
        <link><{$item.link|escape}></link>
        <{if $item.author}>
          <author><{$item.author|escape}></author>
        <{/if}>
        <{if $item.category}>
          <category><{$item.category|escape}></category>
        <{/if}>
        <{if $item.description}>
          <description><{$item.description|escape}></description>
        <{/if}>
        <pubDate><{$item.pubdate|xoops_formattimestamp:rss}></pubDate>
        <guid><{$item.guid|escape}></guid>
      </item>
    <{/foreach}>
  </channel>
</rss>
