getGUID(); } else { $guid = elgg_get_logged_in_user_guid(); } $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 <<