- function show_form($error=NULL) {
- common_show_header(_('Login'), NULL, $error, array($this, 'show_top'));
- common_element_start('form', array('method' => 'post',
+ function showForm($error=null)
+ {
+ $this->error = $error;
+ $this->showPage();
+ }
+
+ function title()
+ {
+ return _('Login');
+ }
+
+ function showPageNotice()
+ {
+ if ($this->error) {
+ $this->element('p', 'error', $this->error);
+ } else {
+ $instr = $this->getInstructions();
+ $output = common_markup_to_html($instr);
+ $this->raw($output);
+ }
+ }
+
+ function showContent()
+ {
+ $this->elementStart('form', array('method' => 'post',