forked from GNUsocial/gnu-social
visual cleanup on ModPlus remote profile info popup menu
This commit is contained in:
@@ -56,6 +56,11 @@ class ModPlusPlugin extends Plugin
|
||||
return true;
|
||||
}
|
||||
|
||||
function onEndShowStatusNetStyles($action) {
|
||||
$action->cssLink('plugins/ModPlus/modplus.css');
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Autoloader
|
||||
*
|
||||
@@ -95,4 +100,17 @@ class ModPlusPlugin extends Plugin
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function onStartShowNoticeItem($item)
|
||||
{
|
||||
$profile = $item->profile;
|
||||
$isRemote = !(User::staticGet('id', $profile->id));
|
||||
if ($isRemote) {
|
||||
$target = common_local_url('remoteprofile', array('id' => $profile->id));
|
||||
$label = _m('Remote profile options...');
|
||||
$item->out->elementStart('div', 'remote-profile-options');
|
||||
$item->out->element('a', array('href' => $target), $label);
|
||||
$item->out->elementEnd('div');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user