summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-08-13 11:35:36 -0700
committerEvan Prodromou <evan@status.net>2010-08-13 11:35:36 -0700
commit91c914fa3b988c2e5b38b0cdff3fd2d596a6a0ce (patch)
tree3581838bd1a6257ac81f858aeb80a94ee0f42579 /plugins
parent67ff9ea49011fd8cc1c102c6fb236c47cd034342 (diff)
show notice title for notices in a notice list
Diffstat (limited to 'plugins')
-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;
+ }
}