getGUID(); } else { $guid = get_loggedin_userid(); } $new_link = elgg_get_array_value('new_link', $vars, "pg/$context/add/$guid/"); $params = array( 'href' => $new_link = elgg_normalize_url($new_link), 'text' => elgg_echo("$context:add"), 'class' => 'elgg-action-button', ); $buttons = elgg_view('output/url', $params); } } echo <<