2017-12-20 20:49:11 +00:00
|
|
|
<?
|
|
|
|
|
|
|
|
$ts = gmdate("D, d M Y H:i:s", time() + 60) . " GMT";
|
|
|
|
header("Content-disposition: filename=blog.rss");
|
|
|
|
header("Content-Type: application/xml; UTF-8");
|
|
|
|
header("Content-Transfer-Encoding: binary");
|
|
|
|
header("Pragma: cache");
|
|
|
|
header("Expires: $ts");
|
|
|
|
header("Access-Control-Allow-Origin: *");
|
|
|
|
header("Cache-Control: max-age=60");
|
|
|
|
|
|
|
|
echo ('<?xml version="1.0" encoding="UTF-8"?>'); ?>
|
|
|
|
|
|
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
|
|
<channel>
|
|
|
|
<title>Kabano</title>
|
2019-01-23 12:42:34 +00:00
|
|
|
<link><?=$config['web_root_folder']?></link>
|
|
|
|
<atom:link href="<?=$config['web_root_folder']?>blog/rss" rel="self" type="application/rss+xml" />
|
2017-12-20 20:49:11 +00:00
|
|
|
<description>L'actualité du blog officiel de Kabano : Plateforme collaborative de recensement de cabanes et refuges.</description>
|
|
|
|
<language>fr</language>
|
|
|
|
<image>
|
2019-01-23 12:42:34 +00:00
|
|
|
<url><?=$config['web_root_folder']?>views/img/header_rss.svg</url>
|
2017-12-20 20:49:11 +00:00
|
|
|
<title>Kabano</title>
|
2019-01-23 12:42:34 +00:00
|
|
|
<link><?=$config['web_root_folder']?></link>
|
2017-12-20 20:49:11 +00:00
|
|
|
<height>44</height>
|
|
|
|
<width>154</width>
|
|
|
|
</image>
|
|
|
|
|
2019-01-23 12:42:34 +00:00
|
|
|
<? foreach ($blogArticles->objs as $row) { ?>
|
2017-12-20 20:49:11 +00:00
|
|
|
|
|
|
|
<item>
|
2019-01-23 12:42:34 +00:00
|
|
|
<title><?=$row->name?></title>
|
|
|
|
<link><?=$config['web_root_folder']?>blog/<?=$row->permalink?></link>
|
|
|
|
<guid><?=$config['web_root_folder']?>blog/<?=$row->permalink?></guid>
|
|
|
|
<pubDate><?=gmdate(DATE_RFC822, strtotime($row->update_date))?></pubDate>
|
2017-12-20 20:49:11 +00:00
|
|
|
<description><![CDATA[
|
|
|
|
<?=$row->content_html?>
|
|
|
|
]]></description>
|
|
|
|
</item>
|
|
|
|
|
|
|
|
<? } ?>
|
|
|
|
|
|
|
|
|
|
|
|
</channel>
|
|
|
|
</rss>
|