From: Evan Prodromou Date: Fri, 13 Aug 2010 18:35:36 +0000 (-0700) Subject: show notice title for notices in a notice list X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=91c914fa3b988c2e5b38b0cdff3fd2d596a6a0ce;p=quix0rs-gnu-social.git show notice title for notices in a notice list --- diff --git a/plugins/NoticeTitle/NoticeTitlePlugin.php b/plugins/NoticeTitle/NoticeTitlePlugin.php index 86a74a4da5..e8377f5b0b 100644 --- a/plugins/NoticeTitle/NoticeTitlePlugin.php +++ b/plugins/NoticeTitle/NoticeTitlePlugin.php @@ -151,5 +151,16 @@ class NoticeTitlePlugin extends Plugin return true; } + + function onStartShowNoticeItem($nli) + { + $title = Notice_title::fromNotice($nli->notice); + + if (!empty($title)) { + $nli->out->element('h4', array('class' => 'notice_title'), $title); + } + + return true; + } }