summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsarven <csarven@plantard.controlezvous.ca>2009-01-15 00:30:06 +0000
committersarven <csarven@plantard.controlezvous.ca>2009-01-15 00:30:06 +0000
commit35645308dc76527f6c0087887e693869f53f7f0b (patch)
tree7c7d6e27ff7ec6308eb3b55a749f841d45b55f19
parent46b1e2fcec9ff084496a4ac11a65c1673f92e1f0 (diff)
Updated:
showNoticeSource() showReplyTo()
-rw-r--r--lib/noticelist.php21
1 files changed, 13 insertions, 8 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 0fe967da3..b4ea4d41c 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -225,8 +225,8 @@ class NoticeListItem
function showAuthor()
{
common_element_start('span', 'vcard author');
- common_element_start('a', array('href' => $this->profile->profileurl),
- 'class' => 'url');
+ common_element_start('a', array('href' => $this->profile->profileurl,
+ 'class' => 'url'));
$this->showAvatar();
$this->showNickname();
common_element_end('a');
@@ -352,7 +352,8 @@ class NoticeListItem
function showNoticeSource()
{
if ($this->notice->source) {
- common_element('span', null, _(' from '));
+ $this->elementStart('dl', 'device');
+ $this->element('dt', null, _('From'));
$source_name = _($this->notice->source);
switch ($this->notice->source) {
case 'web':
@@ -360,18 +361,22 @@ class NoticeListItem
case 'mail':
case 'omb':
case 'api':
- common_element('span', 'noticesource', $source_name);
+ $this->element('dd', 'noticesource', $source_name);
break;
default:
$ns = Notice_source::staticGet($this->notice->source);
if ($ns) {
- common_element('a', array('href' => $ns->url),
+ $this->elementStart('dd', null);
+ $this->element('a', array('href' => $ns->url,
+ 'rel' => 'external'),
$ns->name);
+ $this->elementEnd('dd');
} else {
- common_element('span', 'noticesource', $source_name);
+ $this->element('dd', 'noticesource', $source_name);
}
break;
}
+ $this->elementEnd('dl');
}
}
@@ -393,8 +398,8 @@ class NoticeListItem
$this->element('dt', null, _('To'));
$this->elementStart('dd');
$this->element('a', array('class' => 'inreplyto',
- 'href' => $replyurl),
- 'rel' => 'in-reply-to',
+ 'href' => $replyurl,
+ 'rel' => 'in-reply-to'),
_('in reply to'));
$this->elementEnd('dd');
$this->elementEnd('dl');