ModPlus and some layouting issues regarding fixes

This commit is contained in:
Mikael Nordfeldth 2014-07-06 01:37:31 +02:00
parent fffacaa27c
commit aadc7398dc
4 changed files with 15 additions and 7 deletions

View File

@ -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()

View File

@ -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;

View File

@ -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;
}

View File

@ -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;