forked from GNUsocial/gnu-social
Refactored show() into showNotice(), showNoticeInfo(),
showNoticeOptions(). Kept the existing naming convention for the rest of the methods the same for now.
This commit is contained in:
parent
c50a6bc523
commit
1b66ac64b7
@ -169,17 +169,36 @@ class NoticeListItem
|
|||||||
function show()
|
function show()
|
||||||
{
|
{
|
||||||
$this->showStart();
|
$this->showStart();
|
||||||
$this->showFaveForm();
|
$this->showNotice();
|
||||||
|
$this->showNoticeInfo();
|
||||||
|
$this->showNoticeOptions();
|
||||||
|
$this->showEnd();
|
||||||
|
}
|
||||||
|
|
||||||
|
function showNotice()
|
||||||
|
{
|
||||||
|
$this->elementStart('div', 'entry-title');
|
||||||
$this->showAuthor();
|
$this->showAuthor();
|
||||||
$this->showContent();
|
$this->showNoticeContent();
|
||||||
$this->startTimeSection();
|
$this->elementEnd('div');
|
||||||
|
}
|
||||||
|
|
||||||
|
function showNoticeInfo()
|
||||||
|
{
|
||||||
|
$this->elementStart('div', 'entry-content');
|
||||||
$this->showNoticeLink();
|
$this->showNoticeLink();
|
||||||
$this->showNoticeSource();
|
$this->showNoticeSource();
|
||||||
$this->showReplyTo();
|
$this->showReplyTo();
|
||||||
|
$this->elementEnd('div');
|
||||||
|
}
|
||||||
|
|
||||||
|
function showNoticeOptions()
|
||||||
|
{
|
||||||
|
$this->elementStart('div', 'notice-options');
|
||||||
|
$this->showFaveForm();
|
||||||
$this->showReplyLink();
|
$this->showReplyLink();
|
||||||
$this->showDeleteLink();
|
$this->showDeleteLink();
|
||||||
$this->endTimeSection();
|
$this->elementEnd('div');
|
||||||
$this->showEnd();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user