aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/view.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-19 15:19:02 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-19 15:19:02 +0000
commitb5e2dbf292cddd56a8171b4c9cf1d9cf0fb45582 (patch)
treeaa7f916fba9fc61869f71492266d537f34e4d736 /mod/pages/view.php
parente603c947a5ae2869164b11fee827d4c595e4a3f8 (diff)
downloadelgg-b5e2dbf292cddd56a8171b4c9cf1d9cf0fb45582.tar.gz
elgg-b5e2dbf292cddd56a8171b4c9cf1d9cf0fb45582.tar.bz2
Fixes #3158 updated search and pages plugins for page handler scripts
git-svn-id: http://code.elgg.org/elgg/trunk@8769 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/view.php')
-rw-r--r--mod/pages/view.php54
1 files changed, 0 insertions, 54 deletions
diff --git a/mod/pages/view.php b/mod/pages/view.php
deleted file mode 100644
index d3503709d..000000000
--- a/mod/pages/view.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * View a single page
- *
- * @package ElggPages
- */
-
-$page_guid = get_input('guid');
-$page = get_entity($page_guid);
-if (!$page) {
- forward();
-}
-
-elgg_set_page_owner_guid($page->getContainerGUID());
-
-group_gatekeeper();
-
-$container = elgg_get_page_owner_entity();
-if (!$container) {
-}
-
-$title = $page->title;
-
-if (elgg_instanceof($container, 'group')) {
- elgg_push_breadcrumb($container->name, "pages/group/$container->guid/owner");
-} else {
- elgg_push_breadcrumb($container->name, "pages/owner/$container->username");
-}
-pages_prepare_parent_breadcrumbs($page);
-elgg_push_breadcrumb($title);
-
-$content = elgg_view_entity($page, true);
-$content .= elgg_view_comments($page);
-
-$buttons = '';
-if ($page->canEdit()) {
- $url = "pages/add/$page->guid";
- $buttons = elgg_view('output/url', array(
- 'text' => elgg_echo('pages:newchild'),
- 'href' => $url,
- 'class' => 'elgg-button elgg-button-action',
- ));
- $buttons = "<ul class=\"elgg-menu elgg-menu-title\"><li>$buttons</li></ul>";
-}
-
-$body = elgg_view_layout('content', array(
- 'filter' => '',
- 'buttons' => $buttons,
- 'content' => $content,
- 'title' => $title,
- 'sidebar' => elgg_view('pages/sidebar/navigation'),
-));
-
-echo elgg_view_page($title, $body);