diff options
Diffstat (limited to 'views/default/page')
-rw-r--r-- | views/default/page/layouts/content/header.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/views/default/page/layouts/content/header.php b/views/default/page/layouts/content/header.php index 2a694c28f..c5f78bd06 100644 --- a/views/default/page/layouts/content/header.php +++ b/views/default/page/layouts/content/header.php @@ -32,14 +32,16 @@ if ($context) { } else { $guid = elgg_get_logged_in_user_guid(); } - $new_link = elgg_extract('new_link', $vars, "pg/$context/add/$guid/"); - $params = array( - 'href' => $new_link = elgg_normalize_url($new_link), + + elgg_register_menu_item('title', array( + 'name' => 'add', + 'href' => elgg_extract('new_link', $vars, "pg/$context/add/$guid"), 'text' => elgg_echo("$context:add"), 'class' => 'elgg-button elgg-button-action', - ); - $buttons = elgg_view('output/url', $params); + )); } + + $buttons = elgg_view_menu('title', array('sort_by' => 'weight')); } echo <<<HTML <div class="elgg-head clearfix"> |