show notice title for notices in a notice list

This commit is contained in:
Evan Prodromou 2010-08-13 11:35:36 -07:00
parent 67ff9ea490
commit 91c914fa3b

View File

@ -151,5 +151,16 @@ class NoticeTitlePlugin extends Plugin
return true; 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;
}
} }