diff options
author | Brion Vibber <brion@pobox.com> | 2010-11-15 17:32:33 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-11-15 17:32:33 -0800 |
commit | 25170f272ca853c585531894d282c7545f00bf16 (patch) | |
tree | 9d01450dd024342711239a79f41c393843ac6b08 /plugins/ModPlus/ModPlusPlugin.php | |
parent | fdcaac365354fb7315263373bae6094eab6aa3c8 (diff) |
visual cleanup on ModPlus remote profile info popup menu
Diffstat (limited to 'plugins/ModPlus/ModPlusPlugin.php')
-rw-r--r-- | plugins/ModPlus/ModPlusPlugin.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/ModPlus/ModPlusPlugin.php b/plugins/ModPlus/ModPlusPlugin.php index 89bbdf857..3e7a8c745 100644 --- a/plugins/ModPlus/ModPlusPlugin.php +++ b/plugins/ModPlus/ModPlusPlugin.php @@ -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'); + } + } } |