diff options
author | Brion Vibber <brion@pobox.com> | 2010-11-15 15:57:57 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-11-15 15:57:57 -0800 |
commit | 88c35c2ccea5edcd08708f30247dc51a7473ecce (patch) | |
tree | d9bf1dc528acdf5ff937149b6970a8f2a4fbc169 /plugins/ModPlus | |
parent | 16f1c764c0ac89f922654f9f663faaada611b8e2 (diff) |
visual tweaks for RemoteProfileAction
Diffstat (limited to 'plugins/ModPlus')
-rw-r--r-- | plugins/ModPlus/remoteprofileaction.php | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/plugins/ModPlus/remoteprofileaction.php b/plugins/ModPlus/remoteprofileaction.php index 9c089ee23..f3ddbc7c6 100644 --- a/plugins/ModPlus/remoteprofileaction.php +++ b/plugins/ModPlus/remoteprofileaction.php @@ -47,12 +47,23 @@ class RemoteProfileAction extends ShowstreamAction } else { $base = $this->profile->nickname; } + $host = parse_url($this->profile->profileurl, PHP_URL_HOST); + return sprintf(_m('%s on %s'), $base, $host); } - function showContent() + /** + * Instead of showing notices, link to the original offsite profile. + */ + function showNotices() { - $this->showProfile(); - // don't show notices + $url = $this->profile->profileurl; + $host = parse_url($url, PHP_URL_HOST); + $markdown = sprintf( + _m('This profile is registered on another site; see [the profile page on %s](%s).'), + $host, + $url); + $html = common_markup_to_html($markdown); + $this->raw($html); } function getFeeds() @@ -64,10 +75,13 @@ class RemoteProfileAction extends ShowstreamAction { // none } + function showLocalNav() { - // none...? + $nav = new PublicGroupNav($this); + $nav->show(); } + function showSections() { ProfileAction::showSections(); |