]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Link to add to Firefox as feedreader
authorStephen Paul Weber <singpolyma@singpolyma.net>
Wed, 28 Oct 2015 01:10:28 +0000 (01:10 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Wed, 28 Oct 2015 01:10:28 +0000 (01:10 +0000)
plugins/OStatus/OStatusPlugin.php

index 0dace39db0a542da1031df2f40de0abe0560ee61..aed81b47547abfb63b62bb671fa01186be079f07 100644 (file)
@@ -419,6 +419,17 @@ class OStatusPlugin extends Plugin
         return null;
     }
 
+    function onEndProfileSettingsActions($out) {
+        $siteName = common_config('site', 'name');
+        $js = 'navigator.registerContentHandler("application/vnd.mozilla.maybe.feed", "'.addslashes(common_local_url('ostatussub', null, array('profile' => '%s'))).'", "'.addslashes($siteName).'")';
+        $out->elementStart('li');
+        $out->element('a',
+                      array('href' => 'javascript:'.$js),
+                      // TRANS: Option in profile settings to add this instance to Firefox as a feedreader
+                      _('Add to Firefox as feedreader'));
+        $out->elementEnd('li');
+    }
+
     /**
      * Make sure necessary tables are filled out.
      */