canWriteToContainer()) { $guid = $owner->getGUID(); elgg_register_menu_item('title', array( 'name' => 'add', 'href' => elgg_extract('new_link', $vars, "$context/add/$guid"), 'text' => elgg_echo("$context:add"), 'link_class' => 'elgg-button elgg-button-action', )); } } $buttons = elgg_view_menu('title', array('sort_by' => 'priority', 'class' => 'elgg-menu-hz')); } echo <<

$title

$buttons HTML; }