From 63758c59e1df81c955ce8528d80ba3fd0e466bec Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 20 May 2008 16:11:20 -0400 Subject: reformat showstream darcs-hash:20080520201120-84dde-4b455d4e4854454cc78be8c636a3e0c7f730b93a.gz --- lib/stream.php | 3 +-- lib/util.php | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/stream.php b/lib/stream.php index d1d7ab1cd..18b80d898 100644 --- a/lib/stream.php +++ b/lib/stream.php @@ -27,7 +27,6 @@ class StreamAction extends Action { parent::handle($args); } - # XXX: for 'showstream' repeats same avatar over and over function show_notice($notice) { $profile = $notice->getProfile(); # XXX: RDFa @@ -36,7 +35,7 @@ class StreamAction extends Action { $avatar = $profile->getAvatar(AVATAR_STREAM_SIZE); common_element_start('a', array('href' => $profile->profileurl)); common_element('img', array('src' => ($avatar) ? $avatar->url : DEFAULT_STREAM_AVATAR, - 'class' => 'avatar stream floatLeft', + 'class' => 'avatar stream', 'width' => AVATAR_STREAM_SIZE, 'height' => AVATAR_STREAM_SIZE, 'alt' => diff --git a/lib/util.php b/lib/util.php index cd0a6260b..ece002812 100644 --- a/lib/util.php +++ b/lib/util.php @@ -377,6 +377,20 @@ function common_profile_url($nickname) { return common_local_url('showstream', array('nickname' => $nickname)); } +function common_notice_form() { + common_element_start('form', array('id' => 'newnotice', 'method' => 'POST', + 'action' => common_local_url('newnotice'))); + common_element_start('p'); + common_element('label', array('for' => 'content'), _t('What\'s up?')); + common_element('textarea', array('rows' => 3, 'cols' => 40, + 'name' => 'content', + 'id' => 'content', + 'class' => 'width75'), + ' '); + common_submit('submit', _t('Send')); + common_element_end('form'); + } + // XXX: set up gettext function _t($str) { -- cgit v1.2.3-54-g00ecf