$vars['entity']->getIconUrl('medium'), 'alt' => elgg_echo('avatar'), )); $current_label = elgg_echo('avatar:current'); $revert_button = ''; if ($vars['entity']->icontime) { $revert_button = elgg_view('output/url', array( 'text' => elgg_echo('revert'), 'title' => elgg_echo('avatar:revert'), 'href' => 'action/avatar/revert?guid=' . elgg_get_page_owner_guid(), 'is_action' => true, 'class' => 'elgg-button elgg-button-cancel mll', )); } $form_params = array('enctype' => 'multipart/form-data'); $upload_form = elgg_view_form('avatar/upload', $form_params, $vars); ?>