Removed inline styles from notice list items
This commit is contained in:
parent
69e88546fd
commit
9f23807af4
|
@ -180,25 +180,14 @@ class NoticeListItem extends Widget
|
||||||
$this->showStart();
|
$this->showStart();
|
||||||
$this->showNotice();
|
$this->showNotice();
|
||||||
$this->showNoticeAttachments();
|
$this->showNoticeAttachments();
|
||||||
$this->showNoticeOptions();
|
|
||||||
$this->showNoticeInfo();
|
$this->showNoticeInfo();
|
||||||
|
$this->showNoticeOptions();
|
||||||
$this->showEnd();
|
$this->showEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
function showNotice()
|
function showNotice()
|
||||||
{
|
{
|
||||||
if(0)
|
$this->out->elementStart('div', 'entry-title');
|
||||||
$this->out->elementStart('entry-title');
|
|
||||||
else
|
|
||||||
|
|
||||||
if ('shownotice' === $this->out->args['action']) {
|
|
||||||
$width = '85%';
|
|
||||||
} else {
|
|
||||||
$width = '90%';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$this->out->elementStart('div', array('class' => 'entry-title', 'style' => "float: left; width: $width;"));
|
|
||||||
$this->showAuthor();
|
$this->showAuthor();
|
||||||
$this->showContent();
|
$this->showContent();
|
||||||
$this->out->elementEnd('div');
|
$this->out->elementEnd('div');
|
||||||
|
@ -248,17 +237,7 @@ else
|
||||||
|
|
||||||
function showNoticeInfo()
|
function showNoticeInfo()
|
||||||
{
|
{
|
||||||
if(0)
|
|
||||||
$this->out->elementStart('div', 'entry-content');
|
$this->out->elementStart('div', 'entry-content');
|
||||||
else
|
|
||||||
|
|
||||||
if ('shownotice' === $this->out->args['action']) {
|
|
||||||
$width = '85%';
|
|
||||||
} else {
|
|
||||||
$width = '90%';
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->out->elementStart('div', array('class' => 'entry-content', 'style' => "float: left; width: $width;"));
|
|
||||||
$this->showNoticeLink();
|
$this->showNoticeLink();
|
||||||
$this->showNoticeSource();
|
$this->showNoticeSource();
|
||||||
$this->showContext();
|
$this->showContext();
|
||||||
|
@ -269,10 +248,7 @@ else
|
||||||
{
|
{
|
||||||
$user = common_current_user();
|
$user = common_current_user();
|
||||||
if ($user) {
|
if ($user) {
|
||||||
if(0)
|
|
||||||
$this->out->elementStart('div', 'notice-options');
|
$this->out->elementStart('div', 'notice-options');
|
||||||
else
|
|
||||||
$this->out->elementStart('div', array('class' => 'notice-options', 'style' => 'float: right; width: 16%;'));
|
|
||||||
$this->showFaveForm();
|
$this->showFaveForm();
|
||||||
$this->showReplyLink();
|
$this->showReplyLink();
|
||||||
$this->showDeleteLink();
|
$this->showDeleteLink();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user