getGUID(); } 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), 'text' => elgg_echo("$context:add"), 'class' => 'elgg-button elgg-button-action', ); $buttons = elgg_view('output/url', $params); } } echo <<