showNoticeLink()
This commit is contained in:
sarven 2009-01-15 00:36:17 +00:00
parent 35645308dc
commit c50a6bc523

View File

@ -330,14 +330,18 @@ class NoticeListItem
preg_match('/^http/', $this->notice->uri)) { preg_match('/^http/', $this->notice->uri)) {
$noticeurl = $this->notice->uri; $noticeurl = $this->notice->uri;
} }
common_element_start('a', array('class' => 'permalink', $this->elementStart('dl', 'timestamp');
'rel' => 'bookmark', $this->element('dt', _('Published'));
$this->elementStart('dd', null);
$this->element('a', array('rel' => 'bookmark',
'href' => $noticeurl)); 'href' => $noticeurl));
$dt = common_date_iso8601($this->notice->created); $dt = common_date_iso8601($this->notice->created);
common_element('abbr', array('class' => 'published', $this->element('abbr', array('class' => 'published',
'title' => $dt), 'title' => $dt),
common_date_string($this->notice->created)); common_date_string($this->notice->created));
common_element_end('a'); $this->elementEnd('a');
$this->elementEnd('dd');
$this->elementEnd('dl');
} }
/** /**
@ -397,8 +401,7 @@ class NoticeListItem
$this->elementStart('dl', 'response'); $this->elementStart('dl', 'response');
$this->element('dt', null, _('To')); $this->element('dt', null, _('To'));
$this->elementStart('dd'); $this->elementStart('dd');
$this->element('a', array('class' => 'inreplyto', $this->element('a', array('href' => $replyurl,
'href' => $replyurl,
'rel' => 'in-reply-to'), 'rel' => 'in-reply-to'),
_('in reply to')); _('in reply to'));
$this->elementEnd('dd'); $this->elementEnd('dd');