Theming - add some new markup to DM and new notice pages

This commit is contained in:
Zach Copley 2011-04-12 11:54:12 -07:00
parent e53e60f782
commit fcd863bba9
2 changed files with 47 additions and 2 deletions

View File

@ -352,10 +352,27 @@ class NewnoticeAction extends Action
$inreplyto = null;
}
$notice_form = new NoticeForm($this, array('content' => $content,
'inreplyto' => $inreplyto));
$this->elementStart('div', 'input_forms');
$this->elementStart(
'div',
array(
'id' => 'input_form_status',
'class' => 'input_form current'
)
);
$notice_form = new NoticeForm(
$this,
array(
'content' => $content,
'inreplyto' => $inreplyto
)
);
$notice_form->show();
$this->elementEnd('div');
$this->elementEnd('div');
}
/**

View File

@ -178,4 +178,32 @@ class MessageForm extends Form
// TRANS: Button text for sending a direct notice.
'value' => _m('Send button for sending notice', 'Send')));
}
/**
* Show the form
*
* Uses a recipe to output the form.
*
* @return void
* @see Widget::show()
*/
function show()
{
$this->elementStart('div', 'input_forms');
$this->elementStart(
'div',
array(
'id' => 'input_form_direct',
'class' => 'input_form current'
)
);
parent::show();
$this->elementEnd('div');
$this->elementEnd('div');
}
}