From: Evan Prodromou Date: Fri, 13 Aug 2010 19:22:58 +0000 (-0700) Subject: hide the Whats Up Nickname if notice title enabled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b7536351b1efa5bf222fad1fb92b6dc9e33156f;p=quix0rs-gnu-social.git hide the Whats Up Nickname if notice title enabled --- diff --git a/lib/noticeform.php b/lib/noticeform.php index 84c20a5b3f..5140663569 100644 --- a/lib/noticeform.php +++ b/lib/noticeform.php @@ -169,7 +169,8 @@ class NoticeForm extends Form function formData() { if (Event::handle('StartShowNoticeFormData', array($this))) { - $this->out->element('label', array('for' => 'notice_data-text'), + $this->out->element('label', array('for' => 'notice_data-text', + 'id' => 'notice_data-text-label'), sprintf(_('What\'s up, %s?'), $this->user->nickname)); // XXX: vary by defined max size $this->out->element('textarea', array('id' => 'notice_data-text', diff --git a/plugins/NoticeTitle/NoticeTitlePlugin.php b/plugins/NoticeTitle/NoticeTitlePlugin.php index 115e1c14cf..18ffed4be2 100644 --- a/plugins/NoticeTitle/NoticeTitlePlugin.php +++ b/plugins/NoticeTitle/NoticeTitlePlugin.php @@ -137,6 +137,7 @@ class NoticeTitlePlugin extends Plugin function onStartShowNoticeFormData($form) { + $form->out->element('style', null, 'label#notice_data-text-label { display: none }'); $form->out->element('input', array('type' => 'text', 'id' => 'notice_title', 'name' => 'notice_title',