aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-21 02:22:06 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-21 02:22:06 +0000
commit521930af5bdcbd26afa5b1c7d960358f26c10c37 (patch)
tree537873bed579f2e8372476a14d4f163d1bd1ef38 /mod/bookmarks
parentd8e7579df3f89587f1a43b64d9bd9a76b6842d5e (diff)
downloadelgg-521930af5bdcbd26afa5b1c7d960358f26c10c37.tar.gz
elgg-521930af5bdcbd26afa5b1c7d960358f26c10c37.tar.bz2
Refs #2090 added latest comments to bookmarks sidebar
git-svn-id: http://code.elgg.org/elgg/trunk@8802 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks')
-rw-r--r--mod/bookmarks/pages/bookmarks/all.php3
-rw-r--r--mod/bookmarks/pages/bookmarks/owner.php3
-rw-r--r--mod/bookmarks/views/default/bookmarks/sidebar.php9
3 files changed, 13 insertions, 2 deletions
diff --git a/mod/bookmarks/pages/bookmarks/all.php b/mod/bookmarks/pages/bookmarks/all.php
index 07ae5d327..e49b25b05 100644
--- a/mod/bookmarks/pages/bookmarks/all.php
+++ b/mod/bookmarks/pages/bookmarks/all.php
@@ -22,7 +22,8 @@ $title = elgg_echo('bookmarks:everyone');
$body = elgg_view_layout('content', array(
'filter_context' => 'all',
'content' => $content,
- 'title' => $title
+ 'title' => $title,
+ 'sidebar' => elgg_view('bookmarks/sidebar'),
));
echo elgg_view_page($title, $body); \ No newline at end of file
diff --git a/mod/bookmarks/pages/bookmarks/owner.php b/mod/bookmarks/pages/bookmarks/owner.php
index d1564f751..f12d1d83f 100644
--- a/mod/bookmarks/pages/bookmarks/owner.php
+++ b/mod/bookmarks/pages/bookmarks/owner.php
@@ -34,7 +34,8 @@ if ($page_owner->getGUID() == elgg_get_logged_in_user_guid()) {
$vars = array(
'filter_context' => $filter_context,
'content' => $content,
- 'title' => $title
+ 'title' => $title,
+ 'sidebar' => elgg_view('bookmarks/sidebar'),
);
// don't show filter if out of filter context
diff --git a/mod/bookmarks/views/default/bookmarks/sidebar.php b/mod/bookmarks/views/default/bookmarks/sidebar.php
new file mode 100644
index 000000000..7d77221b1
--- /dev/null
+++ b/mod/bookmarks/views/default/bookmarks/sidebar.php
@@ -0,0 +1,9 @@
+<?php
+/**
+ * Bookmarks sidebar
+ */
+
+echo elgg_view('page/elements/comments_block', array(
+ 'subtypes' => 'bookmarks',
+ 'owner_guid' => elgg_get_page_owner_guid(),
+));