aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/pages/bookmarks/all.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-18 01:31:22 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-18 01:31:22 +0000
commit01435072dc7d9b46bc30a3216501684a72e716a1 (patch)
tree7099a30d696c47302afea2f482e3142f9afec81a /mod/bookmarks/pages/bookmarks/all.php
parent231ca23ea10335a03b185d60a07ae3c92e9dfd63 (diff)
downloadelgg-01435072dc7d9b46bc30a3216501684a72e716a1.tar.gz
elgg-01435072dc7d9b46bc30a3216501684a72e716a1.tar.bz2
Refs #3158 namespaced pages for bookmarks and thewire
git-svn-id: http://code.elgg.org/elgg/trunk@8759 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/pages/bookmarks/all.php')
-rw-r--r--mod/bookmarks/pages/bookmarks/all.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/mod/bookmarks/pages/bookmarks/all.php b/mod/bookmarks/pages/bookmarks/all.php
new file mode 100644
index 000000000..07ae5d327
--- /dev/null
+++ b/mod/bookmarks/pages/bookmarks/all.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * Elgg bookmarks plugin everyone page
+ *
+ * @package ElggBookmarks
+ */
+
+elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());
+
+$offset = (int)get_input('offset', 0);
+$content = elgg_list_entities(array(
+ 'type' => 'object',
+ 'subtype' => 'bookmarks',
+ 'limit' => 10,
+ 'offset' => $offset,
+ 'full_view' => false,
+ 'view_toggle_type' => false
+));
+
+$title = elgg_echo('bookmarks:everyone');
+
+$body = elgg_view_layout('content', array(
+ 'filter_context' => 'all',
+ 'content' => $content,
+ 'title' => $title
+));
+
+echo elgg_view_page($title, $body); \ No newline at end of file