diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-01 05:52:58 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-01 05:52:58 +0000 |
commit | 9aefe356f87750d2a66f8e7f0dd3f0247dafd3e0 (patch) | |
tree | 9caf2b6256b391043ea874ad34550a7aefc96f1f /views/default/page/layouts | |
parent | 3504042929dc5b8b4d52c59d9f85611a6c44cdb6 (diff) | |
download | elgg-9aefe356f87750d2a66f8e7f0dd3f0247dafd3e0.tar.gz elgg-9aefe356f87750d2a66f8e7f0dd3f0247dafd3e0.tar.bz2 |
Refs #2895: Content header now emits a "title" menu
git-svn-id: http://code.elgg.org/elgg/trunk@8530 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page/layouts')
-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"> |