diff options
Diffstat (limited to 'views/default/page_elements')
-rw-r--r-- | views/default/page_elements/header.php | 24 |
1 files changed, 23 insertions, 1 deletions
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
+
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="{$url}" />
+
+END;
+ } else {
+ $feedref = "";
} ?> @@ -38,7 +55,12 @@ <script type="text/javascript" src="<?php echo $vars['url']; ?>javascript/initialise_elgg.js"></script> <!-- include the default css file --> <link rel="stylesheet" href="<?php echo $vars['url']; ?>_css/css.css" type="text/css" /> - <?php echo elgg_view('metatags',$vars); ?> + <?php
+
+ echo $feedref;
+ echo elgg_view('metatags',$vars);
+
+ ?> </head> <body> |