aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-01 17:43:37 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-01 17:43:37 +0000
commit3d24b8b989a92ad32796dce73660d6dd499dff0a (patch)
tree366dbf504b5a1ec7c6153a3f25f37beeb5f57a44 /views/default
parent18d930d4e2c7149e74df65b40a42a7d602b5dc54 (diff)
downloadelgg-3d24b8b989a92ad32796dce73660d6dd499dff0a.tar.gz
elgg-3d24b8b989a92ad32796dce73660d6dd499dff0a.tar.bz2
RSS and OpenDD feeds autolink in owner block
git-svn-id: https://code.elgg.org/elgg/trunk@1659 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/page_elements/owner_block.php25
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'];