add source class to notice list items

This commit is contained in:
Evan Prodromou 2011-08-25 12:19:22 -04:00
parent 3b4d3c6ac3
commit 1cab702df9
1 changed files with 3 additions and 0 deletions

View File

@ -167,6 +167,9 @@ class NoticeListItem extends Widget
if ($this->notice->scope != 0 && $this->notice->scope != 1) {
$class .= ' limited-scope';
}
if (!empty($this->notice->source)) {
$class .= ' notice-source-'.$this->notice->source;
}
$this->out->elementStart('li', array('class' => $class,
'id' => 'notice-' . $id));
Event::handle('EndOpenNoticeListItemElement', array($this));