forked from GNUsocial/gnu-social
better formatting in profile
darcs-hash:20080521134849-84dde-7201729e692bccfc9649fb30a1d21a47a5eb4259.gz
This commit is contained in:
parent
139c7a7979
commit
b86a51ec8a
@ -92,8 +92,6 @@ class ShowstreamAction extends StreamAction {
|
|||||||
function show_profile($profile) {
|
function show_profile($profile) {
|
||||||
common_element_start('div', 'profile');
|
common_element_start('div', 'profile');
|
||||||
|
|
||||||
common_element('h2', 'nickname', $profile->nickname);
|
|
||||||
|
|
||||||
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
|
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
|
||||||
if ($avatar) {
|
if ($avatar) {
|
||||||
common_element('img', array('src' => $avatar->url,
|
common_element('img', array('src' => $avatar->url,
|
||||||
@ -108,11 +106,11 @@ class ShowstreamAction extends StreamAction {
|
|||||||
'class' => 'fullname'),
|
'class' => 'fullname'),
|
||||||
$profile->fullname);
|
$profile->fullname);
|
||||||
} else {
|
} else {
|
||||||
common_element('span', 'fullname', $profile->fullname);
|
common_element('div', 'fullname', $profile->fullname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($profile->location) {
|
if ($profile->location) {
|
||||||
common_element('span', 'location', $profile->location);
|
common_element('div', 'location', $profile->location);
|
||||||
}
|
}
|
||||||
if ($profile->bio) {
|
if ($profile->bio) {
|
||||||
common_element('div', 'bio', $profile->bio);
|
common_element('div', 'bio', $profile->bio);
|
||||||
|
Loading…
Reference in New Issue
Block a user