diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/page_elements/owner_block.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/views/default/page_elements/owner_block.php b/views/default/page_elements/owner_block.php index 6bc0b86a8..ba5a8d17a 100644 --- a/views/default/page_elements/owner_block.php +++ b/views/default/page_elements/owner_block.php @@ -25,6 +25,31 @@ }
echo $display;
+ // Are there feeds to display?
+ global $autofeed;
+
+ if (isset($autofeed) && $autofeed == true) {
+ $url = $url2 = full_url();
+ if (substr_count($url,'?')) {
+ $url .= "&view=rss";
+ } else {
+ $url .= "?view=rss";
+ }
+ if (substr_count($url2,'?')) {
+ $url2 .= "&view=odd";
+ } else {
+ $url2 .= "?view=odd";
+ }
+ $label = elgg_echo('feed:rss');
+ $label2 = elgg_echo('feed:odd');
+ echo <<<END
+
+ <div id="owner_block_rss_feed"><a href="{$url}">{$label}</a></div>
+ <div id="owner_block_odd_feed"><a href="{$url2}">{$label2}</a></div>
+
+END;
+ }
+
// Have we been asked to inject any content? If so, display it
if (isset($vars['content']))
echo $vars['content'];
|