From 8423cda014c6aee9fb3a3f7ebe78bc0465e7355f Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 22 Jan 2011 20:33:28 +0000 Subject: finished the first pass on the pages plugin for using the new HTML/CSS git-svn-id: http://code.elgg.org/elgg/trunk@7904 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/pages/history.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'mod/pages/history.php') diff --git a/mod/pages/history.php b/mod/pages/history.php index cb8a52ee2..5a31723cb 100644 --- a/mod/pages/history.php +++ b/mod/pages/history.php @@ -19,7 +19,12 @@ if (!$container) { elgg_set_page_owner_guid($container->getGUID()); -elgg_push_breadcrumb($container->name, $container->getURL()); +if (elgg_instanceof($container, 'group')) { + elgg_push_breadcrumb($container->name, "pg/pages/group/$container->guid/owner"); +} else { + elgg_push_breadcrumb($container->name, "pg/pages/owner/$container->username"); +} +pages_prepare_parent_breadcrumbs($page); elgg_push_breadcrumb($page->title, $page->getURL()); elgg_push_breadcrumb(elgg_echo('pages:history')); @@ -27,15 +32,12 @@ $title = $page->title . ": " . elgg_echo('pages:history'); $content = list_annotations($page_guid, 'page', 20, false); -pages_set_navigation_parent($page); -$sidebar = elgg_view('pages/sidebar/tree'); - $body = elgg_view_layout('content', array( 'filter' => '', 'buttons' => '', 'content' => $content, 'title' => $title, - 'sidebar' => $sidebar, + 'sidebar' => elgg_view('pages/sidebar/navigation', array('page' => $page)), )); echo elgg_view_page($title, $body); -- cgit v1.2.3