forked from GNUsocial/gnu-social
ModPlus and some layouting issues regarding fixes
This commit is contained in:
parent
fffacaa27c
commit
aadc7398dc
@ -200,10 +200,13 @@ class NoticeListItem extends Widget
|
||||
'class' => 'h-card p-author',
|
||||
'title' => $this->profile->getNickname());
|
||||
|
||||
$this->out->elementStart('a', $attrs);
|
||||
$this->showAvatar($this->profile);
|
||||
$this->out->text($this->profile->getStreamName());
|
||||
$this->out->elementEnd('a');
|
||||
if (Event::handle('StartShowNoticeItemAuthor', array($this->profile, $this->out, &$attrs))) {
|
||||
$this->out->elementStart('a', $attrs);
|
||||
$this->showAvatar($this->profile);
|
||||
$this->out->text($this->profile->getStreamName());
|
||||
$this->out->elementEnd('a');
|
||||
Event::handle('EndShowNoticeItemAuthor', array($this->profile, $this->out));
|
||||
}
|
||||
}
|
||||
|
||||
function showAddressees()
|
||||
|
@ -371,6 +371,11 @@ class ThreadedNoticeListMoreItem extends NoticeListItem
|
||||
$this->out->elementStart('li', array('class' => 'notice-reply-comments'));
|
||||
}
|
||||
|
||||
function showEnd()
|
||||
{
|
||||
$this->out->elementEnd('li');
|
||||
}
|
||||
|
||||
function showMiniForm()
|
||||
{
|
||||
$id = $this->notice->conversation;
|
||||
|
@ -83,9 +83,9 @@ class ModPlusPlugin extends Plugin
|
||||
* @param NoticeListItem $item
|
||||
* @return boolean hook value
|
||||
*/
|
||||
function onStartShowNoticeItem(NoticeListItem $item)
|
||||
function onEndShowNoticeItemAuthor(Profile $profile, HTMLOutputter $out)
|
||||
{
|
||||
$this->showProfileOptions($item->out, $item->profile);
|
||||
$this->showProfileOptions($out, $profile);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
background: url(../../theme/base/images/icons/twotone/green/admin.gif) no-repeat 8px 8px white;
|
||||
border: solid 1px #c0c0c0;
|
||||
|
||||
margin-top: 56px;
|
||||
margin-top: 32px;
|
||||
|
||||
padding: 6px 16px;
|
||||
padding-left: 32px;
|
||||
|
Loading…
Reference in New Issue
Block a user