File Manager

Current Path : /webspace/www.babilon.be/html/modules/CGFeedMaker/templates/
Upload File :
Current File : //webspace/www.babilon.be/html/modules/CGFeedMaker/templates/orig_feed_template_cgcalendar.tpl

{* original rss feed template *}
{* snarfed from the forum post by Inula, and slightly modified *}
<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
  {* note: if you have not configured pretty urls or mod rewrite, the next line may fail when trying to validate the feed *}
  <atom:link href="{$feed_url}" rel="self" type="application/rss+xml" />
    <title>{$feed.title}</title>
    {if isset($feed.link) && !empty($feed.link)}<link>{$feed.link}</link>{/if}
    {if isset($feed.description) && !empty($feed.description)}<description>{$feed.description}</description>{/if}
    {if isset($feed.copyright) && !empty($feed.copyright)}<copyright>{$feed.copyright}</copyright>{/if}
    {if isset($generator)}<generator>{$generator}</generator>{/if}
    {if isset($feed.managing_editor) && !empty($feed.managing_editor)}<managingEditor>{$feed.managing_editor}</managingEditor>{/if}
    {if isset($admin_email)}<webMaster>{$admin_email} ({$admin_user->firstname} {$admin_user->lastname})</webMaster>{/if}
    {if isset($feed.image) && !empty($feed.image)}
      <image>
   {if isset($feed.description) && !empty($feed.description)}<description>{$feed.description}</description>{/if}
        {if isset($feed.link) && !empty($feed.link)}<link>{$feed.link}</link>{/if}
        <title>{$feed.title}</title>
        <url>{$file_location}/{$feed.image}</url>
      </image>
    {/if}

   {capture assign='kalender'}
      {* note, the output from this module call is discarded, however the smarty variables will still exist *}
      {* note, you may want to adjust the parameters to this module call to gather different events *}
      {cms_module module='CGCalendar' display=upcominglist'}
   {/capture}   

{foreach from=$events key=key item=event}
<item>
<title>{$event.event_title}</title>
<link>{$event.url}</link>
<pubDate>{$event.event_modified_date}</pubDate>
<guid>{$event.url}</guid>

{assign var=description value=$event.title}
{if $event.event_summary != ''}
  {assign var=description value=$event.summary}
{/if}
<description>{$description}</description>

</item>
{/foreach}

   </channel>
</rss>

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com