common_notice_form();
}
- $this->show_notices($profile);
-
$this->show_sidebar($profile);
+ $this->show_notices($profile);
+
common_show_footer();
}
function show_profile($profile) {
common_element_start('div', 'profile');
- common_element('h2', 'nickname', $profile->nickname);
-
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
if ($avatar) {
common_element('img', array('src' => $avatar->url,
'alt' => $profile->nickname));
}
if ($profile->fullname) {
+ common_element_start('div', 'fullname');
if ($profile->homepage) {
- common_element('a', array('href' => $profile->homepage,
- 'class' => 'fullname'),
+ common_element('a', array('href' => $profile->homepage),
$profile->fullname);
} else {
- common_element('span', 'fullname', $profile->fullname);
+ common_text($profile->fullname);
}
+ common_element_end('div');
}
if ($profile->location) {
- common_element('span', 'location', $profile->location);
+ common_element('div', 'location', $profile->location);
}
if ($profile->bio) {
common_element('div', 'bio', $profile->bio);
}
function show_subscriptions($profile) {
-
+ global $config;
+
# XXX: add a limit
$subs = $profile->getLink('id', 'subscription', 'subscriber');
'href' => $subs->profileurl,
'class' => 'subscription'));
$avatar = $subs->getAvatar(AVATAR_MINI_SIZE);
- common_element('img', array('src' => (($avatar) ? $avatar->url : DEFAULT_MINI_AVATAR),
+ common_element('img', array('src' => (($avatar) ? $avatar->url : $config['avatar']['default']['mini']),
'width' => AVATAR_MINI_SIZE,
'height' => AVATAR_MINI_SIZE,
'class' => 'avatar mini',
'href' => $noticeurl));
common_element('span', 'title', common_date_string($notice->created));
common_element('span', 'desc', $notice->content);
+ common_element_end('a');
common_element_end('li');
}
}