diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-01 15:13:10 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-01 15:13:10 +0000 |
commit | e22e23e930ecac79489b9d20dc07eb8d7b3ac637 (patch) | |
tree | 963ed9e884b2d0caf80f70081dd75f159dc4084a /mod | |
parent | 7ba9437564bc6ab830c79a3261f107798105bbb6 (diff) | |
download | elgg-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')
-rw-r--r-- | mod/blog/start.php | 4 | ||||
-rw-r--r-- | mod/blog/views/default/blog/sidebar_menu.php | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php index 9c604b756..6b9f500a2 100644 --- a/mod/blog/start.php +++ b/mod/blog/start.php @@ -153,7 +153,9 @@ function blog_page_handler($page) { $sidebar = isset($content_info['sidebar']) ? $content_info['sidebar'] : ''; - $sidebar .= elgg_view('blog/sidebar_menu'); + $sidebar .= elgg_view('blog/sidebar_menu', array( + 'page' => isset($page[1]) ? $page[1] : FALSE, + )); $content = elgg_view('navigation/breadcrumbs') . $content_info['content']; 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'); |