summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorsarven <csarven@plantard.controlezvous.ca>2009-01-15 00:54:16 +0000
committersarven <csarven@plantard.controlezvous.ca>2009-01-15 00:54:16 +0000
commit1b66ac64b79326a55ca987e8bcc35d552c9a0be9 (patch)
tree91f66f2a77dafedb894f0c576ee9a4106fa0f3a8 /lib
parentc50a6bc52351454a77a99f3005a8f6fd404bb3a5 (diff)
Refactored show() into showNotice(), showNoticeInfo(),
showNoticeOptions(). Kept the existing naming convention for the rest of the methods the same for now.
Diffstat (limited to 'lib')
-rw-r--r--lib/noticelist.php29
1 files changed, 24 insertions, 5 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 26aa7ed33..fe5a6eb8a 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -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');
}
/**