aboutsummaryrefslogtreecommitdiff
path: root/mod/blog
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog')
-rw-r--r--mod/blog/start.php4
-rw-r--r--mod/blog/views/default/blog/sidebar_menu.php9
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');