]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Showing remote subscription button on the personal timeline
authorSarven Capadisli <csarven@status.net>
Tue, 2 Mar 2010 17:35:27 +0000 (12:35 -0500)
committerSarven Capadisli <csarven@status.net>
Tue, 2 Mar 2010 17:35:27 +0000 (12:35 -0500)
plugins/OStatus/OStatusPlugin.php
plugins/OStatus/theme/base/css/ostatus.css

index 4ffbba45b96c093574c1a2809fdb88037fba938b..64504547f49b3618c65b4f3ecd184dcb8d21e543 100644 (file)
@@ -721,6 +721,24 @@ class OStatusPlugin extends Plugin
         return true;
     }
 
+    function onStartShowAllContent($action)
+    {
+        $user = common_current_user();
+        if ($user && ($user->id == $action->profile->id)) {
+            $action->elementStart('div', 'entity_actions');
+            $action->elementStart('p', array('id' => 'entity_remote_subscribe',
+                                             'class' => 'entity_subscribe'));
+            $action->element('a', array('href' => common_local_url('ostatussub'),
+                                        'class' => 'entity_remote_subscribe')
+                                , _m('Subscribe to remote user'));
+            $action->elementEnd('p');
+            $action->elementEnd('div');
+        }
+
+        return true;
+    }
+
+
     /**
      * Ping remote profiles with updates to this profile.
      * Salmon pings are queued for background processing.
index e370810af79d30b7671ec0c403618c66626f65ce..68470f4e41fb9054996a8d6ea58710334061b176 100644 (file)
@@ -46,3 +46,7 @@ float:right;
 .entity_remote_subscribe {
 float:right;
 }
+
+#all #entity_remote_subscribe {
+margin-top:-52px;
+}