forked from GNUsocial/gnu-social
show notice title for notices in a notice list
This commit is contained in:
parent
67ff9ea490
commit
91c914fa3b
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user