{**
* 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"}
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Лента новостей сайт</title>
<subtitle>Лента посвящена...</subtitle>
<link href="http://{$_THE.PRJ.Domain}{xs2Href mod="news" met="list"}"/>
<updated>{$news.0.CDate}</updated>
{* Вывод ленты rss 2.0 *}
{section name="newsLoop" loop=$news max=$newsCount}
<entry>
<title><![CDATA[{$news[newsLoop].NName}]]></title>
<link href="http://{$_THE.PRJ.Domain}{xs2Href mod="news" obj="news" met="show" atr=$news[newsLoop].NodId}"/>
<summary><![CDATA[{$news[newsLoop].Text|truncate:$truncateNews}]]></summary>
<updated>{$news[newsLoop].Date}</updated>
</entry>
{/section}
{* /Вывод ленты rss 2.0 *}
</feed>
|
|