diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 21:25:25 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 21:25:25 +0000 |
commit | 694781d190fba09437a37983f077d0381a56050b (patch) | |
tree | 788d5eeb369d7dc85bb35adf4fd1abe86f00b504 /views/rss/pageshells/pageshell.php | |
parent | d46162271a5ca3c3af690173d0abfcd1ab9f69a1 (diff) | |
download | elgg-694781d190fba09437a37983f077d0381a56050b.tar.gz elgg-694781d190fba09437a37983f077d0381a56050b.tar.bz2 |
Finished standardizing seconday views.
git-svn-id: http://code.elgg.org/elgg/trunk@3559 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/rss/pageshells/pageshell.php')
-rw-r--r-- | views/rss/pageshells/pageshell.php | 64 |
1 files changed, 30 insertions, 34 deletions
diff --git a/views/rss/pageshells/pageshell.php b/views/rss/pageshells/pageshell.php index 2abb83c5a..6faf85ead 100644 --- a/views/rss/pageshells/pageshell.php +++ b/views/rss/pageshells/pageshell.php @@ -1,44 +1,40 @@ <?php +/** + * Elgg RSS output pageshell + * + * @package Elgg + * @subpackage Core + * @link http://elgg.org/ + * + */ - /** - * Elgg RSS output pageshell - * - * @package Elgg - * @subpackage Core - * @link http://elgg.org/ - * - */ +header("Content-Type: text/xml"); +echo "<?xml version='1.0'?>\n"; - header("Content-Type: text/xml"); - - echo "<?xml version='1.0'?>\n"; +// Set title +if (empty($vars['title'])) { + $title = $vars['config']->sitename; +} else if (empty($vars['config']->sitename)) { + $title = $vars['title']; +} else { + $title = $vars['config']->sitename . ": " . $vars['title']; +} - - - // Set title - if (empty($vars['title'])) { - $title = $vars['config']->sitename; - } else if (empty($vars['config']->sitename)) { - $title = $vars['title']; - } else { - $title = $vars['config']->sitename . ": " . $vars['title']; - } - - // Remove RSS from URL - $url = str_replace('?view=rss','',full_url()); - $url = str_replace('&view=rss','',full_url()); +// Remove RSS from URL +$url = str_replace('?view=rss','',full_url()); +$url = str_replace('&view=rss','',full_url()); ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" <?php echo elgg_view('extensions/xmlns'); ?> > - <channel> - <title><![CDATA[<?php echo $title; ?>]]></title> - <link><?php echo htmlentities($url); ?></link> - <?php echo elgg_view('extensions/channel'); ?> - <?php +<channel> + <title><![CDATA[<?php echo $title; ?>]]></title> + <link><?php echo htmlentities($url); ?></link> + <?php echo elgg_view('extensions/channel'); ?> + <?php - echo $vars['body']; - - ?> - </channel> + echo $vars['body']; + + ?> +</channel> </rss>
\ No newline at end of file |