summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/NoticeTitle/NoticeTitlePlugin.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/NoticeTitle/NoticeTitlePlugin.php b/plugins/NoticeTitle/NoticeTitlePlugin.php
index 86a74a4da..e8377f5b0 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;
+ }
}