aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-01 15:13:10 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-01 15:13:10 +0000
commite22e23e930ecac79489b9d20dc07eb8d7b3ac637 (patch)
tree963ed9e884b2d0caf80f70081dd75f159dc4084a /mod/blog/views/default
parent7ba9437564bc6ab830c79a3261f107798105bbb6 (diff)
downloadelgg-e22e23e930ecac79489b9d20dc07eb8d7b3ac637.tar.gz
elgg-e22e23e930ecac79489b9d20dc07eb8d7b3ac637.tar.bz2
Restricting tag cloud display on Blogs and Documents by context.
git-svn-id: http://code.elgg.org/elgg/trunk@6306 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views/default')
-rw-r--r--mod/blog/views/default/blog/sidebar_menu.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/mod/blog/views/default/blog/sidebar_menu.php b/mod/blog/views/default/blog/sidebar_menu.php
index aa43ed08e..8051463b5 100644
--- a/mod/blog/views/default/blog/sidebar_menu.php
+++ b/mod/blog/views/default/blog/sidebar_menu.php
@@ -60,7 +60,10 @@ if ($page_owner) {
echo '</ul>';
}
+
+ // friends page lists all tags; mine lists owner's
+ $owner_guid = ($vars['page'] == 'friends') ? '' : $page_owner->getGUID();
+ echo display_tagcloud(0, 50, 'tags', 'object', 'blog', $owner_guid);
+} else {
+ echo display_tagcloud(0, 50, 'tags', 'object', 'blog');
}
-
-// tag-cloud display
-echo display_tagcloud(0, 50, 'tags');