aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Ffsapi.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-02-03 09:24:09 +0100
committerMario Vavti <mario@mariovavti.com>2017-02-03 09:24:09 +0100
commitdd2a5e6b28d537b9a8c2bb1a978faa46dfb869cc (patch)
treecd4aa364519bee76e1cbec9d5f776bb494fc543f /Zotlabs/Module/Ffsapi.php
parent028b2a655de8c9d7b1f0de05a869e59c2b219818 (diff)
parent7e1e9ac94a1cf2fb01a3052f7fd9d0f2049079b5 (diff)
downloadvolse-hubzilla-dd2a5e6b28d537b9a8c2bb1a978faa46dfb869cc.tar.gz
volse-hubzilla-dd2a5e6b28d537b9a8c2bb1a978faa46dfb869cc.tar.bz2
volse-hubzilla-dd2a5e6b28d537b9a8c2bb1a978faa46dfb869cc.zip
Merge branch 'dev' into wip-app-bin
Diffstat (limited to 'Zotlabs/Module/Ffsapi.php')
-rw-r--r--Zotlabs/Module/Ffsapi.php71
1 files changed, 0 insertions, 71 deletions
diff --git a/Zotlabs/Module/Ffsapi.php b/Zotlabs/Module/Ffsapi.php
deleted file mode 100644
index f3ade73c2..000000000
--- a/Zotlabs/Module/Ffsapi.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-namespace Zotlabs\Module;
-
-
-
-class Ffsapi extends \Zotlabs\Web\Controller {
-
- function get() {
-
- $baseurl = z_root();
- $name = get_config('system','sitename');
- $description = t('Share content from Firefox to $Projectname');
- $author = 'Mike Macgirvin';
- $homepage = 'http://hubzilla.org';
- $activate = t('Activate the Firefox $Projectname provider');
-
- $s = <<< EOT
-
- <script>
-
- var baseurl = '$baseurl';
-
- var data = {
- "origin": baseurl,
- // currently required
- "name": '$name',
- "iconURL": baseurl+"/images/hz-16.png",
- "icon32URL": baseurl+"/images/hz-32.png",
- "icon64URL": baseurl+"/images/hz-64.png",
-
- // at least one of these must be defined
- // "workerURL": baseurl+"/worker.js",
- // "sidebarURL": baseurl+"/sidebar.htm",
- "shareURL": baseurl+"/rpost?f=&url=%{url}",
-
- // status buttons are scheduled for Firefox 26 or 27
- //"statusURL": baseurl+"/statusPanel.html",
-
- // 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",
- "unmarkedIcon": baseurl+"/images/hz-bookmark-32.png",
-
- // should be available for display purposes
- "description": "$description",
- "author": "$author",
- "homepageURL": "$homepage",
-
- // optional
- "version": "1.0"
- }
-
- function activate(node) {
- var event = new CustomEvent("ActivateSocialFeature");
- var jdata = JSON.stringify(data);
- node.setAttribute("data-service", JSON.stringify(data));
- node.dispatchEvent(event);
- }
- </script>
-
- <button onclick="activate(this)" title="$activate" class="btn btn-primary">$activate</button>
-
-EOT;
-
- return $s;
-
- }
-
-}