From 1cab702df9f99417ee81d238e33435502cde49c8 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 25 Aug 2011 12:19:22 -0400 Subject: [PATCH] add source class to notice list items --- lib/noticelistitem.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/noticelistitem.php b/lib/noticelistitem.php index 8fc2f13ca2..cfdcaf581c 100644 --- a/lib/noticelistitem.php +++ b/lib/noticelistitem.php @@ -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)); -- 2.39.5