$profile -> $this->profile in noticelistitem

darcs-hash:20081211233039-84dde-9bcacf8f114025052a208e1068e58d570db05f15.gz
This commit is contained in:
Evan Prodromou 2008-12-11 18:30:39 -05:00
parent b1838f14b6
commit 677a05ff1e

View File

@ -104,22 +104,22 @@ class NoticeListItem {
} }
function show_avatar() { function show_avatar() {
$avatar = $profile->getAvatar(AVATAR_STREAM_SIZE); $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
common_element_start('a', array('href' => $profile->profileurl)); common_element_start('a', array('href' => $this->profile->profileurl));
common_element('img', array('src' => ($avatar) ? common_avatar_display_url($avatar) : common_default_avatar(AVATAR_STREAM_SIZE), common_element('img', array('src' => ($avatar) ? common_avatar_display_url($avatar) : common_default_avatar(AVATAR_STREAM_SIZE),
'class' => 'avatar stream photo', 'class' => 'avatar stream photo',
'width' => AVATAR_STREAM_SIZE, 'width' => AVATAR_STREAM_SIZE,
'height' => AVATAR_STREAM_SIZE, 'height' => AVATAR_STREAM_SIZE,
'alt' => 'alt' =>
($profile->fullname) ? $profile->fullname : ($this->profile->fullname) ? $this->profile->fullname :
$profile->nickname)); $this->profile->nickname));
common_element_end('a'); common_element_end('a');
} }
function show_nickname() { function show_nickname() {
common_element('a', array('href' => $profile->profileurl, common_element('a', array('href' => $this->profile->profileurl,
'class' => 'nickname fn url'), 'class' => 'nickname fn url'),
$profile->nickname); $this->profile->nickname);
} }
function show_content() { function show_content() {
@ -194,8 +194,8 @@ class NoticeListItem {
function show_reply_link() { function show_reply_link() {
common_element_start('a', common_element_start('a',
array('href' => common_local_url('newnotice', array('href' => common_local_url('newnotice',
array('replyto' => $profile->nickname)), array('replyto' => $this->profile->nickname)),
'onclick' => 'return doreply("'.$profile->nickname.'", '.$this->notice->id.');', 'onclick' => 'return doreply("'.$this->profile->nickname.'", '.$this->notice->id.');',
'title' => _('reply'), 'title' => _('reply'),
'class' => 'replybutton')); 'class' => 'replybutton'));
common_raw('→'); common_raw('→');