aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/view.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 20:33:28 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 20:33:28 +0000
commit8423cda014c6aee9fb3a3f7ebe78bc0465e7355f (patch)
treee1baa523308221d33908e4ea4014191ade8d5d66 /mod/pages/view.php
parentcec8a4f34681d4c2a43e0c07de0a68bc22f1b558 (diff)
downloadelgg-8423cda014c6aee9fb3a3f7ebe78bc0465e7355f.tar.gz
elgg-8423cda014c6aee9fb3a3f7ebe78bc0465e7355f.tar.bz2
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
Diffstat (limited to 'mod/pages/view.php')
-rw-r--r--mod/pages/view.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/mod/pages/view.php b/mod/pages/view.php
index 19f7c8227..69ae5686c 100644
--- a/mod/pages/view.php
+++ b/mod/pages/view.php
@@ -21,14 +21,17 @@ if (!$container) {
$title = $page->title;
-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($title);
$content = elgg_view_entity($page, true);
$content .= elgg_view_comments($page);
-$sidebar = elgg_view('pages/sidebar/tree', array('page' => $page));
-
$buttons = '';
if ($page->canEdit()) {
$url = "pg/pages/add/$page->guid";
@@ -44,7 +47,7 @@ $body = elgg_view_layout('content', array(
'buttons' => $buttons,
'content' => $content,
'title' => $title,
- 'sidebar' => $sidebar,
+ 'sidebar' => elgg_view('pages/sidebar/navigation'),
));
echo elgg_view_page($title, $body);