]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2090 added latest comments to bookmarks sidebar
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 21 Mar 2011 02:22:06 +0000 (02:22 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 21 Mar 2011 02:22:06 +0000 (02:22 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8802 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/bookmarks/pages/bookmarks/all.php
mod/bookmarks/pages/bookmarks/owner.php
mod/bookmarks/views/default/bookmarks/sidebar.php [new file with mode: 0644]

index 07ae5d32719de8969003dd7c94767b4001a27292..e49b25b05b9bd64ff2f1933d31c98cfd501cc22c 100644 (file)
@@ -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
index d1564f751308b4ff7669b6ddba42d9cbd1583bbe..f12d1d83f97848991aecb681bcfb0413bb6e4693 100644 (file)
@@ -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 (file)
index 0000000..7d77221
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+/**
+ * Bookmarks sidebar
+ */
+
+echo elgg_view('page/elements/comments_block', array(
+       'subtypes' => 'bookmarks',
+       'owner_guid' => elgg_get_page_owner_guid(),
+));