From b5e2dbf292cddd56a8171b4c9cf1d9cf0fb45582 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 19 Mar 2011 15:19:02 +0000 Subject: 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 --- mod/pages/pages/pages/history.php | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 mod/pages/pages/pages/history.php (limited to 'mod/pages/pages/pages/history.php') diff --git a/mod/pages/pages/pages/history.php b/mod/pages/pages/pages/history.php new file mode 100644 index 000000000..7ed5ad7f7 --- /dev/null +++ b/mod/pages/pages/pages/history.php @@ -0,0 +1,43 @@ +getContainerEntity(); +if (!$container) { + +} + +elgg_set_page_owner_guid($container->getGUID()); + +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($page->title, $page->getURL()); +elgg_push_breadcrumb(elgg_echo('pages:history')); + +$title = $page->title . ": " . elgg_echo('pages:history'); + +$content = list_annotations($page_guid, 'page', 20, false); + +$body = elgg_view_layout('content', array( + 'filter' => '', + 'buttons' => '', + 'content' => $content, + 'title' => $title, + 'sidebar' => elgg_view('pages/sidebar/navigation', array('page' => $page)), +)); + +echo elgg_view_page($title, $body); -- cgit v1.2.3