From: Zach Copley Date: Tue, 12 Apr 2011 18:55:01 +0000 (-0700) Subject: Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5454d22b79e1757a37fa253b1eb133d219986eea;hp=e39170259d44189cc84ef9851587d645d4d10ad4;p=quix0rs-gnu-social.git Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x * '1.0.x' of gitorious.org:statusnet/mainline: Show both empty and full notice search results inside event wrapper More interesting test notices in createsim.php --- diff --git a/actions/newnotice.php b/actions/newnotice.php index a8a5fa932f..fe8d8e5c5b 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -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'); } /** diff --git a/lib/messageform.php b/lib/messageform.php index bd46d7389d..8676f76b06 100644 --- a/lib/messageform.php +++ b/lib/messageform.php @@ -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'); + + } }