+ common_element_start('p');
+ common_element('a', array('href' => common_local_url('recoverpassword')),
+ _t('Lost or forgotten password?'));
+ common_element_end('p');
+ common_show_footer();
+ }
+
+ function get_instructions() {
+ return _t('Login with your username and password. ' .
+ 'Don\'t have a username yet? ' .
+ '[Register](%%action.register%%) a new account, or ' .
+ 'try [OpenID](%%action.openidlogin%%). ');
+ }
+
+ function show_top($error=NULL) {
+ if ($error) {
+ common_element('p', 'error', $error);
+ } else {
+ $instr = $this->get_instructions();
+ $output = common_markup_to_html($instr);
+ common_element_start('p', 'instructions');
+ common_raw($output);
+ common_element_end('p');
+ }