summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
authorsarven <csarven@plantard.controlezvous.ca>2009-01-15 00:03:06 +0000
committersarven <csarven@plantard.controlezvous.ca>2009-01-15 00:03:06 +0000
commit442dcfde0e998e7bc2936a28805629951208ce38 (patch)
treec3b267e44d2cc599039127c3f6b075243d893085 /lib/noticelist.php
parenteb53e96942e2237515f6746354e972596feb673d (diff)
showAuthor() minor update. Using a single anchor to wrap both avatar and
nickname instead of two anchors.
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r--lib/noticelist.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 71db067d0..45d4abb29 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -191,7 +191,8 @@ class NoticeListItem
function showStart()
{
// XXX: RDFa
- common_element_start('li', array('class' => 'notice_single hentry',
+ // TODO: add notice_type class e.g., notice_video, notice_image
+ common_element_start('li', array('class' => 'hentry notice',
'id' => 'notice-' . $this->notice->id));
}
@@ -224,8 +225,11 @@ class NoticeListItem
function showAuthor()
{
common_element_start('span', 'vcard author');
+ common_element_start('a', array('href' => $this->profile->profileurl),
+ 'class' => 'url');
$this->showAvatar();
$this->showNickname();
+ common_element_end('a');
common_element_end('span');
}
@@ -241,18 +245,17 @@ class NoticeListItem
function showAvatar()
{
$avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
- 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),
- 'class' => 'avatar stream photo',
+ 'class' => 'avatar photo',
'width' => AVATAR_STREAM_SIZE,
'height' => AVATAR_STREAM_SIZE,
'alt' =>
($this->profile->fullname) ?
$this->profile->fullname :
$this->profile->nickname));
- common_element_end('a');
}
/**
@@ -265,8 +268,7 @@ class NoticeListItem
function showNickname()
{
- common_element('a', array('href' => $this->profile->profileurl,
- 'class' => 'nickname fn url'),
+ common_element('span', array('class' => 'nickname fn'),
$this->profile->nickname);
}