diff options
| author | 2014-10-21 16:46:36 +0200 | |
|---|---|---|
| committer | 2014-10-21 16:55:19 +0200 | |
| commit | 80cffa6de51771cd80995fb1c4f1e04ee868eb45 (patch) | |
| tree | 5199c6512140b804e2c456d263d40816ab79a6eb /app/views/index/rss.phtml | |
| parent | 8a7bab3a55442f85553ab1d897084e89c10f7e05 (diff) | |
Views are in dedicated actions + improve Context
- Seperate normal, global and rss outputs in dedicated actions (NOT WORKING YET!)
- Rewrite aside_flux and nav_menu to use Context object
- Improve Context object
See https://github.com/marienfressinaud/FreshRSS/issues/634
Diffstat (limited to 'app/views/index/rss.phtml')
| -rwxr-xr-x | app/views/index/rss.phtml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/views/index/rss.phtml b/app/views/index/rss.phtml new file mode 100755 index 000000000..e34b15ab1 --- /dev/null +++ b/app/views/index/rss.phtml @@ -0,0 +1,29 @@ +<?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> + <description><?php echo _t('rss_feeds_of', $this->rss_title); ?></description> + <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> + <atom:link href="<?php echo Minz_Url::display($this->url, 'html', true); ?>" rel="self" type="application/rss+xml" /> +<?php +foreach ($this->entries as $item) { +?> + <item> + <title><?php echo $item->title(); ?></title> + <link><?php echo $item->link(); ?></link> + <?php $author = $item->author(); ?> + <?php if ($author != '') { ?> + <dc:creator><?php echo $author; ?></dc:creator> + <?php } ?> + <description><![CDATA[<?php + echo $item->content(); +?>]]></description> + <pubDate><?php echo date('D, d M Y H:i:s O', $item->date(true)); ?></pubDate> + <guid isPermaLink="false"><?php echo $item->id(); ?></guid> + </item> +<?php } ?> + + </channel> +</rss> |
