diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-22 00:17:32 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-22 00:17:32 +0000 |
commit | c349de1a1ce19c2fdfab3f6f2e97dca9d03e36ea (patch) | |
tree | 8b8ffdebd0a358e58ac65cb580bb8b841d60bf19 /mod/file | |
parent | 58655326f516c136473568c21d2a3f37bcb060d6 (diff) | |
download | elgg-c349de1a1ce19c2fdfab3f6f2e97dca9d03e36ea.tar.gz elgg-c349de1a1ce19c2fdfab3f6f2e97dca9d03e36ea.tar.bz2 |
Refs #2090 added sidebar comment block to file and pages plugins
git-svn-id: http://code.elgg.org/elgg/trunk@8810 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file')
-rw-r--r-- | mod/file/pages/file/owner.php | 4 | ||||
-rw-r--r-- | mod/file/pages/file/world.php | 1 | ||||
-rw-r--r-- | mod/file/views/default/file/sidebar.php | 9 |
3 files changed, 11 insertions, 3 deletions
diff --git a/mod/file/pages/file/owner.php b/mod/file/pages/file/owner.php index 617e4c7f4..b7bfb00f8 100644 --- a/mod/file/pages/file/owner.php +++ b/mod/file/pages/file/owner.php @@ -56,9 +56,7 @@ if (!$content) { } $sidebar = file_get_type_cloud(elgg_get_page_owner_guid()); -if (elgg_instanceof($owner, 'user')) { - $sidebar .= elgg_view_latest_comments(elgg_get_page_owner_guid(), 'object', 'file'); -} +$sidebar = elgg_view('file/sidebar'); $params['content'] = $content; $params['title'] = $title; diff --git a/mod/file/pages/file/world.php b/mod/file/pages/file/world.php index a55dcb452..2cd942369 100644 --- a/mod/file/pages/file/world.php +++ b/mod/file/pages/file/world.php @@ -21,6 +21,7 @@ $content = elgg_list_entities(array( elgg_pop_context(); $sidebar = file_get_type_cloud(); +$sidebar = elgg_view('file/sidebar'); $body = elgg_view_layout('content', array( 'filter_context' => 'all', diff --git a/mod/file/views/default/file/sidebar.php b/mod/file/views/default/file/sidebar.php new file mode 100644 index 000000000..864965e98 --- /dev/null +++ b/mod/file/views/default/file/sidebar.php @@ -0,0 +1,9 @@ +<?php +/** + * File sidebar + */ + +echo elgg_view('page/elements/comments_block', array( + 'subtypes' => 'file', + 'owner_guid' => elgg_get_page_owner_guid(), +)); |