From 91c914fa3b988c2e5b38b0cdff3fd2d596a6a0ce Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 13 Aug 2010 11:35:36 -0700 Subject: [PATCH] show notice title for notices in a notice list --- plugins/NoticeTitle/NoticeTitlePlugin.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; + } } -- 2.39.5