virt2/api/mod/rss.html

26 lines
1.3 KiB
HTML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<atom:link href="http://{$smarty.server.HTTP_HOST}/rss/" rel="self" type="application/rss+xml" />
<title>{$global_settings.site_name}</title>
<link>http://{$smarty.server.HTTP_HOST}</link>
<description>Админские блоги, программисткие хитрости, простые решения не простых проблем, форум, чат, игры, блоги!</description>
<image>
<url>http://{$smarty.server.HTTP_HOST}/skin/templatemo_251_clean_blog/images/logo.png</url>
<link>http://{$smarty.server.HTTP_HOST}</link>
<title>{$global_settings.site_name}</title>
</image>
<lastBuildDate>{$smarty.now|date_format:"%d %b %Y %H:%M:%S"} +0500</lastBuildDate>
{section name=go loop=$rss}
{if $rss[go].id}
<item>
<title>{$rss[go].title}</title>
<link>http://{$smarty.server.HTTP_HOST}{if $rss[go].alias}/{$rss[go].alias}.html{else}/page/{$rss[go].id}{/if}</link>
<description>{$rss[go].page|substr:200}</description>
<pubDate>{$rss[go].abtime|date_format:"%d %b %Y %H:%M:%S"} +0500</pubDate>
<guid>http://{$smarty.server.HTTP_HOST}{if $rss[go].alias}/{$rss[go].alias}.html{else}/page/{$rss[go].id}{/if}</guid>
</item>
{/if}
{/section}
</channel>
</rss>