]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add source class to notice list items
authorEvan Prodromou <evan@status.net>
Thu, 25 Aug 2011 16:19:22 +0000 (12:19 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 25 Aug 2011 16:19:22 +0000 (12:19 -0400)
lib/noticelistitem.php

index 8fc2f13ca26c6c84e13adbc697b3afa5445fe5e5..cfdcaf581cb200487bc3a7d5530c7d5dbcaef4c7 100644 (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));