]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
visual tweaks for RemoteProfileAction
authorBrion Vibber <brion@pobox.com>
Mon, 15 Nov 2010 23:57:57 +0000 (15:57 -0800)
committerBrion Vibber <brion@pobox.com>
Mon, 15 Nov 2010 23:57:57 +0000 (15:57 -0800)
plugins/ModPlus/remoteprofileaction.php

index 9c089ee23e76db9f56ff55c6dd6e0e2047c3f716..f3ddbc7c6511163842da3b474a0c683d131f99c4 100644 (file)
@@ -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();