aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks
diff options
context:
space:
mode:
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(),
+));