From: Evan Prodromou Date: Thu, 25 Aug 2011 16:19:22 +0000 (-0400) Subject: add source class to notice list items X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1cab702df9f99417ee81d238e33435502cde49c8;p=quix0rs-gnu-social.git add source class to notice list items --- 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));