From 94437a8fcd0b0b15b49deceeacef7602b801dac1 Mon Sep 17 00:00:00 2001 From: jeroenpraat Date: Thu, 5 Nov 2015 22:57:52 +0100 Subject: 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). --- app/firefoxshare.apd | 4 ++++ app/firefoxshare.png | Bin 0 -> 3170 bytes images/hz-bookmark-32.png | Bin 0 -> 973 bytes mod/ffsapi.php | 7 ++++--- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 app/firefoxshare.apd create mode 100644 app/firefoxshare.png create mode 100644 images/hz-bookmark-32.png diff --git a/app/firefoxshare.apd b/app/firefoxshare.apd new file mode 100644 index 000000000..5e0f38b4e --- /dev/null +++ b/app/firefoxshare.apd @@ -0,0 +1,4 @@ +url: $baseurl/ffsapi +requires: local_channel +name: Firefox Share +photo: $baseurl/app/firefoxshare.png diff --git a/app/firefoxshare.png b/app/firefoxshare.png new file mode 100644 index 000000000..755952284 Binary files /dev/null and b/app/firefoxshare.png differ diff --git a/images/hz-bookmark-32.png b/images/hz-bookmark-32.png new file mode 100644 index 000000000..f3a09d9b4 Binary files /dev/null and b/images/hz-bookmark-32.png differ diff --git a/mod/ffsapi.php b/mod/ffsapi.php index de47408bd..3822a8e94 100644 --- a/mod/ffsapi.php +++ b/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', -- cgit v1.2.3