From a89fce27cbc3f3cdfe0cbc10f1ba63a85efa8ebb Mon Sep 17 00:00:00 2001 From: maTh Date: Wed, 16 Mar 2022 23:23:15 +0100 Subject: 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 * i18n: System sharing Co-authored-by: Alexandre Alapetite --- app/shares.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/shares.php') 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'), -- cgit v1.2.3