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',
|
'class' => 'h-card p-author',
|
||||||
'title' => $this->profile->getNickname());
|
'title' => $this->profile->getNickname());
|
||||||
|
|
||||||
|
if (Event::handle('StartShowNoticeItemAuthor', array($this->profile, $this->out, &$attrs))) {
|
||||||
$this->out->elementStart('a', $attrs);
|
$this->out->elementStart('a', $attrs);
|
||||||
$this->showAvatar($this->profile);
|
$this->showAvatar($this->profile);
|
||||||
$this->out->text($this->profile->getStreamName());
|
$this->out->text($this->profile->getStreamName());
|
||||||
$this->out->elementEnd('a');
|
$this->out->elementEnd('a');
|
||||||
|
Event::handle('EndShowNoticeItemAuthor', array($this->profile, $this->out));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showAddressees()
|
function showAddressees()
|
||||||
|
@ -371,6 +371,11 @@ class ThreadedNoticeListMoreItem extends NoticeListItem
|
|||||||
$this->out->elementStart('li', array('class' => 'notice-reply-comments'));
|
$this->out->elementStart('li', array('class' => 'notice-reply-comments'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showEnd()
|
||||||
|
{
|
||||||
|
$this->out->elementEnd('li');
|
||||||
|
}
|
||||||
|
|
||||||
function showMiniForm()
|
function showMiniForm()
|
||||||
{
|
{
|
||||||
$id = $this->notice->conversation;
|
$id = $this->notice->conversation;
|
||||||
|
@ -83,9 +83,9 @@ class ModPlusPlugin extends Plugin
|
|||||||
* @param NoticeListItem $item
|
* @param NoticeListItem $item
|
||||||
* @return boolean hook value
|
* @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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
background: url(../../theme/base/images/icons/twotone/green/admin.gif) no-repeat 8px 8px white;
|
background: url(../../theme/base/images/icons/twotone/green/admin.gif) no-repeat 8px 8px white;
|
||||||
border: solid 1px #c0c0c0;
|
border: solid 1px #c0c0c0;
|
||||||
|
|
||||||
margin-top: 56px;
|
margin-top: 32px;
|
||||||
|
|
||||||
padding: 6px 16px;
|
padding: 6px 16px;
|
||||||
padding-left: 32px;
|
padding-left: 32px;
|
||||||
|
Loading…
Reference in New Issue
Block a user