aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/views/default')
-rw-r--r--mod/blog/views/default/blog/sidebar.php7
-rw-r--r--mod/blog/views/default/blog/sidebar/tagcloud.php31
2 files changed, 6 insertions, 32 deletions
diff --git a/mod/blog/views/default/blog/sidebar.php b/mod/blog/views/default/blog/sidebar.php
index 4eb5cf443..b7dfaa2e1 100644
--- a/mod/blog/views/default/blog/sidebar.php
+++ b/mod/blog/views/default/blog/sidebar.php
@@ -19,4 +19,9 @@ if ($vars['page'] == 'all') {
echo elgg_view('blog/sidebar/archives', $vars);
-echo elgg_view('blog/sidebar/tagcloud', $vars);
+if ($vars['page'] != 'friends') {
+ echo elgg_view('page/elements/tagcloud_block', array(
+ 'subtypes' => 'blog',
+ 'owner_guid' => elgg_get_page_owner_guid(),
+ ));
+}
diff --git a/mod/blog/views/default/blog/sidebar/tagcloud.php b/mod/blog/views/default/blog/sidebar/tagcloud.php
deleted file mode 100644
index 70c454390..000000000
--- a/mod/blog/views/default/blog/sidebar/tagcloud.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * Blog tag cloud
- */
-
-$loggedin_user = elgg_get_logged_in_user_entity();
-$page_owner = elgg_get_page_owner_entity();
-
-if ($page_owner && $vars['page'] != 'friends') {
-
- // friends page lists all tags; mine lists owner's
- $owner_guid = ($vars['page'] == 'friends') ? '' : $page_owner->getGUID();
- $options = array(
- 'type' => 'object',
- 'subtype' => 'blog',
- 'owner_guid' => $owner_guid,
- 'threshold' => 0,
- 'limit' => 50,
- 'tag_name' => 'tags',
- );
- echo elgg_view_tagcloud($options);
-} else {
- $options = array(
- 'type' => 'object',
- 'subtype' => 'blog',
- 'threshold' => 0,
- 'limit' => 50,
- 'tag_name' => 'tags',
- );
- echo elgg_view_tagcloud($options);
-}