{**
* XS2:
*
* This file is developed by Solutecs, LLC for the purpose of the company
* and is provided together with XS2 Framework as and inherent part of the
* system. This file can be used on the terms of License Agreement.
*
* +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
*
* @link http://www.solutecs.com
* @copyright ©1998-2007 Solutecs, LLC
* @version 1.XX
*}
<?xml version="1.0" encoding="windows-1251"?>
{* Опция $newsCount: сколько последних новостей выводить *}
{assign var="newsCount" value=5}
{* Опция $truncateNews: сколько символов текста новости показывать в качестве анонса *}
{assign var="truncateNews" value=150}
{xs2GetNodes NType="news" var="news"}
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/">
<channel rdf:about="http://{$_THE.PRJ.Domain}{xs2Href mod="news" met="list"}">
<title>Лента новостей сайт</title>
<link>http://{$_THE.PRJ.Domain}{xs2Href mod="news" met="list"}</link>
<description>Лента посвящена...</description>
<dc:language>ru</dc:language>
<dc:creator>XS2 Framework</dc:creator>
<items>
<rdf:Seq>
{* Вывод списка ресурсов RSS 1.0 *}
{section name="newsLoop" loop=$news max=$newsCount}
<rdf:li rdf:resource="http://{$_THE.PRJ.Domain}{xs2Href mod="news" obj="news" met="show" atr=$news[newsLoop].NodId}"/>
{/section}
{* /Вывод списка ресурсов RSS 1.0 *}
</rdf:Seq>
</items>
</channel>
{* Вывод ленты RSS 1.0 *}
{section name="newsLoop" loop=$news max=$newsCount}
<item rdf:about="http://{$_THE.PRJ.Domain}{xs2Href mod="news" obj="news" met="show" atr=$news[newsLoop].NodId}">
<title><![CDATA[{$news[newsLoop].NName}]]></title>
<link>http://{$_THE.PRJ.Domain}{xs2Href mod="news" obj="news" met="show" atr=$news[newsLoop].NodId}</link>
<description><![CDATA[{$news[newsLoop].Text|truncate:$truncateNews}]]></description>
<dc:date>{$news[newsLoop].Date}</dc:date>
</item>
{/section}
{* /Вывод ленты RSS 1.0 *}
</rdf:RDF>
|
|