Restructure MVC into public/src layout
Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com>
This commit is contained in:
45
public/views/d.blog.list.rss
Executable file
45
public/views/d.blog.list.rss
Executable file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
$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>
|
||||
<link><?=$config['web_root_folder']?></link>
|
||||
<atom:link href="<?=$config['web_root_folder']?>blog/rss" rel="self" type="application/rss+xml" />
|
||||
<description>L'actualité du blog officiel de Kabano : Plateforme collaborative de recensement de cabanes et refuges.</description>
|
||||
<language>fr</language>
|
||||
<image>
|
||||
<url><?=$config['web_root_folder']?>public/views/img/header_rss.svg</url>
|
||||
<title>Kabano</title>
|
||||
<link><?=$config['web_root_folder']?></link>
|
||||
<height>44</height>
|
||||
<width>154</width>
|
||||
</image>
|
||||
|
||||
<?php foreach ($blogArticles->objs as $row) { ?>
|
||||
|
||||
<item>
|
||||
<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_RSS, strtotime($row->update_date))?></pubDate>
|
||||
<description><![CDATA[
|
||||
<?=$row->content_html?>
|
||||
]]></description>
|
||||
</item>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in New Issue
Block a user