]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show notice title for notices in a notice list
authorEvan Prodromou <evan@status.net>
Fri, 13 Aug 2010 18:35:36 +0000 (11:35 -0700)
committerEvan Prodromou <evan@status.net>
Fri, 13 Aug 2010 18:35:36 +0000 (11:35 -0700)
plugins/NoticeTitle/NoticeTitlePlugin.php

index 86a74a4da54e00757303d40cb7e0f37bfd8c31cf..e8377f5b0b5b0803a02c165010109c9f4620ea3f 100644 (file)
@@ -151,5 +151,16 @@ class NoticeTitlePlugin extends Plugin
 
         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;
+    }
 }