aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/pages/friends.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bookmarks/pages/friends.php')
-rw-r--r--mod/bookmarks/pages/friends.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/mod/bookmarks/pages/friends.php b/mod/bookmarks/pages/friends.php
new file mode 100644
index 000000000..5c930434b
--- /dev/null
+++ b/mod/bookmarks/pages/friends.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Elgg bookmarks plugin friends page
+ *
+ * @package ElggBookmarks
+ */
+$guid = get_input('guid');
+
+elgg_set_page_owner_guid($guid);
+$owner = elgg_get_page_owner_entity();
+
+elgg_push_context('bookmarks');
+elgg_push_breadcrumb(elgg_echo('bookmarks'), 'pg/bookmarks/all');
+elgg_push_breadcrumb($owner->name, "pg/bookmarks/owner/$owner->username");
+elgg_push_breadcrumb(elgg_echo('friends'));
+
+$title = elgg_echo('bookmarks:friends');
+
+$content = list_user_friends_objects($owner->guid, 'bookmarks', 10, false);
+if (!$content) {
+ $content = elgg_echo('bookmarks:none');
+}
+
+$params = array(
+ 'filter_context' => 'friends',
+ 'content' => $content,
+ 'title' => $title,
+);
+
+$body = elgg_view_layout('content', $params);
+
+echo elgg_view_page($title, $body);
+elgg_pop_context(); \ No newline at end of file