X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fshownotice.php;h=05c547301585f3dd22fecae85a7827f8057988bc;hb=bdb83be1790c089b8c236cc57c1448c787a7ecef;hp=ec91f1d4fa2c70fc01c63a36154e4d2b4855e3e7;hpb=749178f34371aabb8a22166fe64920a42679dcc5;p=quix0rs-gnu-social.git diff --git a/actions/shownotice.php b/actions/shownotice.php index ec91f1d4fa..05c5473015 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -1,18 +1,18 @@ . */ @@ -33,37 +33,37 @@ class ShownoticeAction extends Action { if (!$notice->getProfile()) { $this->no_such_notice(); } - + # Looks like we're good; show the header - + common_show_header($profile->nickname." status on ".$notice->created); - + $this->show_notice($notice); - + common_show_footer(); } - + function no_such_notice() { common_user_error('No such notice.'); } - + function show_notice($notice) { $profile = $notice->getProfile(); # XXX: RDFa - common_element_start('div', array('class' => 'notice')); + common_element_start('div', array('class' => 'notice greenBg')); $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); if ($avatar) { common_element('img', array('src' => $avatar->url, 'class' => 'avatar profile', 'width' => AVATAR_PROFILE_SIZE, 'height' => AVATAR_PROFILE_SIZE, - 'alt' => - ($profile->fullname) ? $profile->fullname : + 'alt' => + ($profile->fullname) ? $profile->fullname : $profile->nickname)); } common_element('a', array('href' => $profile->profileurl, 'class' => 'nickname', - 'title' => + 'title' => ($profile->fullname) ? $profile->fullname : $profile->nickname), $profile->nickname);