]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/ExtendedProfile/ExtendedProfilePlugin.php
Edit page placeholder, link on main profile to details
[quix0rs-gnu-social.git] / plugins / ExtendedProfile / ExtendedProfilePlugin.php
index 36c8eaa2328453f270fb37987dab2031e9325360..c981a7e2fb3e40914324903b46b6933328a3ab51 100644 (file)
@@ -95,4 +95,14 @@ class ExtendedProfilePlugin extends Plugin
         $widget->showMenuItem('profiledetailsettings',_m('Details'),$title);
         return true;
     }
+
+    function onEndProfilePageProfileElements(HTMLOutputter $out, Profile $profile) {
+        $user = User::staticGet('id', $profile->id);
+        if ($user) {
+            $url = common_local_url('profiledetail', array('nickname' => $user->nickname));
+            $out->element('a', array('href' => $url), _m('More details...'));
+        }
+        return;
+    }
+
 }