{insert name=header content="Content-Type: text/xml"}{literal}{/literal} {* section properties *} {init_object id=$id name="section"} {if $section->class != 'section'} {init_object id=$section->parent_id name="section"} {/if} {****************** RSS Articlelist ******************} {init_objects name="rss_objects" parent=$section->id order="date desc" start="0" limit="10" classes="article,album"} <![CDATA[{if $site_name}{$site_name}: {/if}{$section->title}]]> {$protocol}{$hostname}{$section->href} {$site_extension} {foreach from=$rss_objects item="rss_object"} {assign var="lastBuildDate" value=$rss_object->fdate} {if strtotime($rss_object->fdate) > strtotime($lastBuildDate)} {assign var="lastBuildDate" value=$rss_object->fdate} {/if} {/foreach} {$lastBuildDate|mysql_date_to_rfc822} {******** Article list ************} {foreach from=$rss_objects item=obj} {if $obj->class == 'article'} {init_article name="rss_object" id=$obj->id} {else} {init_object name="rss_object" id=$obj->id} {/if} <![CDATA[{$rss_object->title}]]> {$protocol}{$hostname}{$rss_object->href} {if $obj->class == 'article'}lead}{$rss_object->lead} {sysword word="More" type="Visual Design"}{else}{$rss_object->body}{/if}]]>{/if} {if $obj->class == 'album'}description}]]>{/if} {$protocol}{$hostname}{$wwwroot}/?id={$rss_object->id} {$rss_object->fdate|mysql_date_to_rfc822} {/foreach} {******** // Article list *********} {****************** // RSS Articlelist ******************}