aboutsummaryrefslogtreecommitdiff
path: root/app/shares.php
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2022-03-16 23:23:15 +0100
committerGravatar GitHub <noreply@github.com> 2022-03-16 23:23:15 +0100
commita89fce27cbc3f3cdfe0cbc10f1ba63a85efa8ebb (patch)
treebcc583f0a7698fa505094236b5b42b4264dbf9f9 /app/shares.php
parent9748ac48e40947b80808933213b043dc797670b6 (diff)
New sharing service: Web sharing API (#4271)
* new optional option: HTMLtag * Update main.js * add: web sharing API * Update gen.php * Update gen.php * Update gen.php * fix spaces * Update shares.php * fixed JavaScript * Update template.rtl.css * Typo * improved: if (!navigator.share) * Update main.js * comma-dangle only for arrays and objects * Update app/i18n/fr/gen.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * i18n: System sharing Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/shares.php')
-rw-r--r--app/shares.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/shares.php b/app/shares.php
index 16b2787bf..8e0134663 100644
--- a/app/shares.php
+++ b/app/shares.php
@@ -35,6 +35,7 @@ return array(
'method' => 'GET',
),
'clipboard' => array(
+ 'HTMLtag' => 'button',
'url' => '~LINK~',
'transform' => array(),
'form' => 'simple',
@@ -127,6 +128,7 @@ return array(
'method' => 'GET',
),
'print' => array(
+ 'HTMLtag' => 'button',
'url' => '#',
'transform' => array(),
'form' => 'simple',
@@ -172,6 +174,13 @@ return array(
'form' => 'advanced',
'method' => 'GET',
),
+ 'web-sharing-api' => array(
+ 'HTMLtag' => 'button',
+ 'url' => '~LINK~',
+ 'transform' => array(),
+ 'form' => 'simple',
+ 'method' => 'GET',
+ ),
'whatsapp' => array(
'url' => 'https://wa.me/?text=~TITLE~ | ~LINK~',
'transform' => array('rawurlencode'),