aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/pages/all.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bookmarks/pages/all.php')
-rw-r--r--mod/bookmarks/pages/all.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/mod/bookmarks/pages/all.php b/mod/bookmarks/pages/all.php
new file mode 100644
index 000000000..2bde462ba
--- /dev/null
+++ b/mod/bookmarks/pages/all.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * Elgg bookmarks plugin everyone page
+ *
+ * @package ElggBookmarks
+ */
+
+elgg_push_context('bookmarks');
+elgg_push_breadcrumb(elgg_echo('bookmarks'));
+
+$page_owner = elgg_get_page_owner_entity();
+if (!$page_owner) {
+ $page_owner = get_loggedin_userid();
+ elgg_set_page_owner_guid($page_owner);
+}
+
+$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);
+elgg_pop_context(); \ No newline at end of file