]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Refactored show() into showNotice(), showNoticeInfo(),
authorsarven <csarven@plantard.controlezvous.ca>
Thu, 15 Jan 2009 00:54:16 +0000 (00:54 +0000)
committersarven <csarven@plantard.controlezvous.ca>
Thu, 15 Jan 2009 00:54:16 +0000 (00:54 +0000)
showNoticeOptions(). Kept the existing naming convention for the rest
of the methods the same for now.

lib/noticelist.php

index 26aa7ed33e68181359911c5d2dfb07f4ef4d6591..fe5a6eb8a73d770e46ad46ef5ec9deb0a6a0a8d8 100644 (file)
@@ -169,17 +169,36 @@ class NoticeListItem
     function show()
     {
         $this->showStart();
-        $this->showFaveForm();
+        $this->showNotice();
+        $this->showNoticeInfo();
+        $this->showNoticeOptions();
+        $this->showEnd();
+    }
+
+    function showNotice()
+    {
+        $this->elementStart('div', 'entry-title');
         $this->showAuthor();
-        $this->showContent();
-        $this->startTimeSection();
+        $this->showNoticeContent();
+        $this->elementEnd('div');
+    }
+
+    function showNoticeInfo()
+    {
+        $this->elementStart('div', 'entry-content');
         $this->showNoticeLink();
         $this->showNoticeSource();
         $this->showReplyTo();
+        $this->elementEnd('div');
+    }
+
+    function showNoticeOptions()
+    {
+        $this->elementStart('div', 'notice-options');
+        $this->showFaveForm();
         $this->showReplyLink();
         $this->showDeleteLink();
-        $this->endTimeSection();
-        $this->showEnd();
+        $this->elementEnd('div');
     }
 
     /**