aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages/index.php')
-rw-r--r--mod/pages/index.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/mod/pages/index.php b/mod/pages/index.php
deleted file mode 100644
index 6a89e6092..000000000
--- a/mod/pages/index.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-/**
- * List a user's or group's pages
- *
- * @package ElggPages
- */
-
-$owner = elgg_get_page_owner_entity();
-if (!$owner) {
-
-}
-
-// access check for closed groups
-group_gatekeeper();
-
-$title = elgg_echo('pages:owner', array($owner->name));
-
-elgg_push_breadcrumb($owner->name);
-
-$content = elgg_list_entities(array(
- 'types' => 'object',
- 'subtypes' => 'page_top',
- 'container_guid' => elgg_get_page_owner_guid(),
- 'limit' => $limit,
- 'full_view' => false,
-));
-if (!$content) {
- $content = '<p>' . elgg_echo('pages:none') . '</p>';
-}
-
-$filter_context = '';
-if (elgg_get_page_owner_guid() == elgg_get_logged_in_user_guid()) {
- $filter_context = 'mine';
-}
-
-$params = array(
- 'filter_context' => $filter_context,
- 'content' => $content,
- 'title' => $title,
- 'sidebar' => elgg_view('pages/sidebar/navigation'),
-);
-
-if (elgg_instanceof($owner, 'group')) {
- $params['filter'] = '';
-}
-
-$body = elgg_view_layout('content', $params);
-
-echo elgg_view_page($title, $body);