From c25dcd4533ec98c7e58c647e4b2c08169c6b7dc4 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 19 Jun 2008 20:18:40 +0000 Subject: Automatic RSS feeds! git-svn-id: https://code.elgg.org/elgg/trunk@1011 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page_elements/header.php | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'views/default/page_elements/header.php') diff --git a/views/default/page_elements/header.php b/views/default/page_elements/header.php index fdcfe71df..75ef6f746 100644 --- a/views/default/page_elements/header.php +++ b/views/default/page_elements/header.php @@ -24,6 +24,23 @@ $title = $vars['title']; } else { $title = $vars['config']->sitename . ": " . $vars['title']; + } + + global $autofeed; + if (isset($autofeed) && $autofeed == true) { + $url = full_url(); + if (substr_count($url,'?')) { + $url .= "&view=rss"; + } else { + $url .= "?view=rss"; + } + $feedref = << + +END; + } else { + $feedref = ""; } ?> @@ -38,7 +55,12 @@ - + -- cgit v1.2.3