diff options
author | cash <cash.costello@gmail.com> | 2011-06-26 15:56:35 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-06-26 15:56:35 -0400 |
commit | fe1e3b3923659a4bea73e1596e0ba946f473635c (patch) | |
tree | ae8e98a12caa77f78dbfdbc9c492ee808c411c1c /mod/pages/pages/pages/view.php | |
parent | 3c34ddf59804767e6a7deea3e3ee6c81d4a09601 (diff) | |
download | elgg-fe1e3b3923659a4bea73e1596e0ba946f473635c.tar.gz elgg-fe1e3b3923659a4bea73e1596e0ba946f473635c.tar.bz2 |
this should update all the core pages and plugins using 'buttons'
Diffstat (limited to 'mod/pages/pages/pages/view.php')
-rw-r--r-- | mod/pages/pages/pages/view.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/mod/pages/pages/pages/view.php b/mod/pages/pages/pages/view.php index 06064d993..5dfb76b55 100644 --- a/mod/pages/pages/pages/view.php +++ b/mod/pages/pages/pages/view.php @@ -32,20 +32,18 @@ elgg_push_breadcrumb($title); $content = elgg_view_entity($page, array('full_view' => true)); $content .= elgg_view_comments($page); -$buttons = ''; if (elgg_get_logged_in_user_guid() == $page->getOwnerGuid()) { $url = "pages/add/$page->guid"; - $buttons = elgg_view('output/url', array( - 'text' => elgg_echo('pages:newchild'), + elgg_register_menu_item('title', array( + 'name' => 'subpage', 'href' => $url, - 'class' => 'elgg-button elgg-button-action', - )); - $buttons = "<ul class=\"elgg-menu elgg-menu-title\"><li>$buttons</li></ul>"; + 'text' => elgg_echo('pages:newchild'), + 'link_class' => 'elgg-button elgg-button-action', + )); } $body = elgg_view_layout('content', array( 'filter' => '', - 'buttons' => $buttons, 'content' => $content, 'title' => $title, 'sidebar' => elgg_view('pages/sidebar/navigation'), |