Commit 1b66ac64 authored by sarven's avatar sarven

Refactored show() into showNotice(), showNoticeInfo(),

showNoticeOptions(). Kept the existing naming convention for the rest
of the methods the same for now.
parent c50a6bc5
......@@ -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');
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment