getGUID(); } else { $guid = elgg_get_logged_in_user_guid(); } 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_menu('title', array('sort_by' => 'priority', 'class' => 'elgg-menu-hz')); } echo <<

$title

$buttons HTML; }