1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00
freshrss_ynh/sources/app/views/index/rss.phtml

30 lines
1.2 KiB
PHTML
Raw Normal View History

2014-07-23 15:52:50 +02:00
<?php echo '<?xml version="1.0" encoding="UTF-8" ?>'; ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title><?php echo $this->rss_title; ?></title>
<link><?php echo Minz_Url::display(null, 'html', true); ?></link>
2015-02-08 18:55:48 +01:00
<description><?php echo _t('index.feed.rss_of', $this->rss_title); ?></description>
2014-07-23 15:52:50 +02:00
<pubDate><?php echo date('D, d M Y H:i:s O'); ?></pubDate>
<lastBuildDate><?php echo gmdate('D, d M Y H:i:s'); ?> GMT</lastBuildDate>
2015-02-08 18:55:48 +01:00
<atom:link href="<?php echo Minz_Url::display($this->url, 'html', true); ?>" rel="self" type="application/rss+xml" />
2014-07-23 15:52:50 +02:00
<?php
foreach ($this->entries as $item) {
?>
<item>
2015-02-08 18:55:48 +01:00
<title><?php echo $item->title(); ?></title>
<link><?php echo $item->link(); ?></link>
<?php $author = $item->author(); ?>
2014-07-23 15:52:50 +02:00
<?php if ($author != '') { ?>
<dc:creator><?php echo $author; ?></dc:creator>
<?php } ?>
<description><![CDATA[<?php
2015-02-08 18:55:48 +01:00
echo $item->content();
2014-07-23 15:52:50 +02:00
?>]]></description>
2015-02-08 18:55:48 +01:00
<pubDate><?php echo date('D, d M Y H:i:s O', $item->date(true)); ?></pubDate>
<guid isPermaLink="false"><?php echo $item->id(); ?></guid>
2014-07-23 15:52:50 +02:00
</item>
<?php } ?>
</channel>
</rss>