Browse Source

Firefox Share app. Paper plane icon is public domain. Shorted the name in ffsapi > compare it with other providers. Changed bookmark (checkmark) item to selfmade Hubzilla bookmark icon for Firefox (bookmark icon = bootstrap icon).

jeroenpraat 4 years ago
parent
commit
94437a8fcd
4 changed files with 8 additions and 3 deletions
  1. 4 0
      app/firefoxshare.apd
  2. BIN
      app/firefoxshare.png
  3. BIN
      images/hz-bookmark-32.png
  4. 4 3
      mod/ffsapi.php

+ 4 - 0
app/firefoxshare.apd

@@ -0,0 +1,4 @@
+url: $baseurl/ffsapi
+requires: local_channel
+name: Firefox Share
+photo: $baseurl/app/firefoxshare.png

BIN
app/firefoxshare.png


BIN
images/hz-bookmark-32.png


+ 4 - 3
mod/ffsapi.php

@@ -4,7 +4,7 @@
 function ffsapi_content(&$a) {
 
 $baseurl = z_root();
-$name = sprintf( t('Social Provider on %1$s'), get_config('system','sitename'));
+$name = sprintf( t('%1$s'), get_config('system','sitename'));
 $description = t('Share content from Firefox to $Projectname');
 $author = 'Mike Macgirvin';
 $homepage = 'http://hubzilla.org';
@@ -35,8 +35,9 @@ var data = {
   // social bookmarks are available in Firefox 26
   "markURL": baseurl+"/rbmark?f=&url=%{url}&title=%{title}",
   // icons should be 32x32 pixels
-  "markedIcon": baseurl+"/images/checkbox-checked-32.png",
-  "unmarkedIcon": baseurl+"/images/checkbox-unchecked-32.png",
+  // "markedIcon": baseurl+"/images/checkbox-checked-32.png",
+  // "unmarkedIcon": baseurl+"/images/checkbox-unchecked-32.png",
+  "unmarkedIcon": baseurl+"/images/hz-bookmark-32.png",
 
   // should be available for display purposes
   "description": '$description',