From: Mikael Nordfeldth Date: Fri, 8 Apr 2016 11:44:22 +0000 (+0200) Subject: "In conversation" text in noticelistitem X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4645033b98833f083767f3a8aabfcd44b97e9b14;p=quix0rs-gnu-social.git "In conversation" text in noticelistitem --- diff --git a/lib/noticelistitem.php b/lib/noticelistitem.php index a0dcf6f30c..cbff03d973 100644 --- a/lib/noticelistitem.php +++ b/lib/noticelistitem.php @@ -189,6 +189,7 @@ class NoticeListItem extends Widget function showNoticeInfo() { if (Event::handle('StartShowNoticeInfo', array($this))) { + $this->showContextLink(); $this->showNoticeLink(); $this->showNoticeSource(); $this->showNoticeLocation(); @@ -375,14 +376,10 @@ class NoticeListItem extends Widget */ function showNoticeLink() { - $this->out->elementStart('a', array('rel' => 'bookmark', - 'class' => 'timestamp', - 'href' => Conversation::getUrlFromNotice($this->notice))); $this->out->element('time', array('class' => 'dt-published', 'datetime' => common_date_iso8601($this->notice->created), 'title' => common_exact_date($this->notice->created)), common_date_string($this->notice->created)); - $this->out->elementEnd('a'); } /** @@ -568,6 +565,18 @@ class NoticeListItem extends Widget } } + /** + * Show link to conversation view. + */ + function showContextLink() + { + $this->out->element('a', array('rel' => 'bookmark', + 'class' => 'timestamp', + 'href' => Conversation::getUrlFromNotice($this->notice)), + // TRANS: A link to the conversation view of a notice, on the local server. + _('In conversation')); + } + /** * show a link to reply to the current notice *