<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
  <title><{$channel_title}></title>
  <link><{$channel_link}></link>
  <{if $channel_description != ""}>
    <description><{$channel_description}></description>
  <{/if}>
  <{if $channel_pubdate != ""}>
    <pubDate><{$channel_pubdate}></pubDate>
  <{/if}>
  <{if $channel_lastbuild != ""}>
    <lastBuildDate><{$channel_lastbuild}></lastBuildDate>
  <{/if}>
  <{if $channel_docs != ""}>
    <docs><{$channel_docs}></docs>
  <{/if}>
  <{if $channel_generator != ""}>
    <generator><{$channel_generator}></generator>
  <{/if}>
  <{if $channel_category != ""}>
    <category><{$channel_category}></category>
  <{/if}>
  <{if $channel_managingeditor != ""}>
    <managingEditor><{$channel_managingeditor}></managingEditor>
  <{/if}>
  <{if $channel_webmaster != ""}>
    <webMaster><{$channel_webmaster}></webMaster>
  <{/if}>
  <{if $channel_copyright != ""}>
    <copyright><{$channel_copyright}></copyright>
  <{/if}>
  <{if $channel_language != ""}>
    <language><{$channel_language}></language>
  <{/if}>
  <{if $image_url != ""}>
    <image>
      <title><{$image_title}></title>
      <url><{$image_url}></url>
      <link><{$image_link}></link>
      <width><{$image_width}></width>
      <height><{$image_height}></height>
    </image>
  <{/if}>
<{foreach item=item from=$items}>
  <item>
  <title><{$item.title}></title>
  <link><{$item.link}></link>
  <{if $item.description != ""}>
    <description><{$item.description}></description>
  <{/if}>
  <{if $item.pubdate != ""}>
    <pubDate><{$item.pubdate}></pubDate>
  <{/if}>
  <{if $item.guid != ""}>
    <guid><{$item.guid}></guid>
  <{/if}>
  <{if $item.category != ""}>
    <category><{$item.category}></category>
  <{/if}>
  <{if $item.enclosure_url != ""}>
    <{if ($item.enclosure_type != "") &&($item.enclosure_length != "") }>
    <enclosure url="<{$item.enclosure_url}>" type="<{$item.enclosure_type}>" length="<{$item.enclosure_length}>" />
    <{else}>
    <enclosure url="<{$item.enclosure_url}>" />
    <{/if}>
  <{/if}>
  <{if $item.content_encoded != ""}>
    <content:encoded> <![CDATA[
    <{$item.content_encoded}>
    ]]> </content:encoded>
  <{/if}>
  <{if $item.dc_creator != ""}>
    <dc:creator><{$item.dc_creator}></dc:creator>
  <{/if}>
  </item>
<{/foreach}>
</channel>
</rss>
