2014-02-22 22:53:51 +01:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/*
|
2022-01-08 21:58:55 +01:00
|
|
|
|
* This is a configuration file. You shouldn’t modify it unless you know what
|
2014-02-22 22:53:51 +01:00
|
|
|
|
* you are doing. If you want to add a share type, this is where you need to do
|
|
|
|
|
* it.
|
2017-09-22 12:13:46 +02:00
|
|
|
|
*
|
2014-02-22 22:53:51 +01:00
|
|
|
|
* For each share there is different configuration options. Here is the description
|
|
|
|
|
* of those options:
|
2022-03-15 22:58:30 +01:00
|
|
|
|
* - 'deprecated' (optional) is a boolean. Default: 'false'.
|
|
|
|
|
* 'true', if the sharing service is planned to remove in the future.
|
|
|
|
|
* Add more information into the documentation center.
|
|
|
|
|
* - 'url' is a mandatory option. It is a string representing the share URL. It
|
2019-12-09 09:41:18 +01:00
|
|
|
|
* supports 4 different placeholders for custom data. The ~URL~ placeholder
|
2014-02-22 22:53:51 +01:00
|
|
|
|
* represents the URL of the system used to share, it is configured by the
|
|
|
|
|
* user. The ~LINK~ placeholder represents the link of the shared article.
|
2019-12-09 09:41:18 +01:00
|
|
|
|
* The ~TITLE~ placeholder represents the title of the shared article. The
|
|
|
|
|
* ~ID~ placeholder represents the id of the shared article (only useful
|
|
|
|
|
* for internal use)
|
2022-03-15 22:58:30 +01:00
|
|
|
|
* - 'transform' is an array of transformation to apply on links and titles
|
|
|
|
|
* - 'help' is a URL to a help page (mandatory for form = 'advanced')
|
|
|
|
|
* - 'form' is the type of form to display during configuration. It’s either
|
2017-11-04 21:19:51 +01:00
|
|
|
|
* 'simple' or 'advanced'. 'simple' is used when only the name is configurable,
|
|
|
|
|
* 'advanced' is used when the name and the location are configurable.
|
2022-03-15 22:58:30 +01:00
|
|
|
|
* - 'method' is the HTTP method (POST or GET) used to share a link.
|
2014-02-22 22:53:51 +01:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
return array(
|
|
|
|
|
'blogotext' => array(
|
2022-03-15 22:58:30 +01:00
|
|
|
|
'deprecated' => true,
|
2014-02-22 22:53:51 +01:00
|
|
|
|
'url' => '~URL~/admin/links.php?url=~LINK~',
|
|
|
|
|
'transform' => array(),
|
|
|
|
|
'help' => 'http://lehollandaisvolant.net/blogotext/fr/',
|
|
|
|
|
'form' => 'advanced',
|
2017-11-04 21:19:51 +01:00
|
|
|
|
'method' => 'GET',
|
2014-02-22 22:53:51 +01:00
|
|
|
|
),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'clipboard' => array(
|
2022-03-16 23:23:15 +01:00
|
|
|
|
'HTMLtag' => 'button',
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'url' => '~LINK~',
|
|
|
|
|
'transform' => array(),
|
|
|
|
|
'form' => 'simple',
|
2017-11-04 21:19:51 +01:00
|
|
|
|
'method' => 'GET',
|
2016-05-03 14:42:16 +02:00
|
|
|
|
),
|
2014-02-22 22:53:51 +01:00
|
|
|
|
'diaspora' => array(
|
|
|
|
|
'url' => '~URL~/bookmarklet?url=~LINK~&title=~TITLE~',
|
2015-01-23 01:48:02 +01:00
|
|
|
|
'transform' => array('rawurlencode'),
|
2014-02-22 22:53:51 +01:00
|
|
|
|
'help' => 'https://diasporafoundation.org/',
|
|
|
|
|
'form' => 'advanced',
|
2017-11-04 21:19:51 +01:00
|
|
|
|
'method' => 'GET',
|
2014-02-22 22:53:51 +01:00
|
|
|
|
),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'email' => array(
|
|
|
|
|
'url' => 'mailto:?subject=~TITLE~&body=~LINK~',
|
2015-01-23 01:48:02 +01:00
|
|
|
|
'transform' => array('rawurlencode'),
|
2014-02-22 22:53:51 +01:00
|
|
|
|
'form' => 'simple',
|
2017-11-04 21:19:51 +01:00
|
|
|
|
'method' => 'GET',
|
2014-02-22 22:53:51 +01:00
|
|
|
|
),
|
|
|
|
|
'facebook' => array(
|
|
|
|
|
'url' => 'https://www.facebook.com/sharer.php?u=~LINK~&t=~TITLE~',
|
2015-01-23 01:48:02 +01:00
|
|
|
|
'transform' => array('rawurlencode'),
|
2014-02-22 22:53:51 +01:00
|
|
|
|
'form' => 'simple',
|
2017-11-04 21:19:51 +01:00
|
|
|
|
'method' => 'GET',
|
2014-02-22 22:53:51 +01:00
|
|
|
|
),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'gnusocial' => array(
|
|
|
|
|
'url' => '~URL~/notice/new?content=~TITLE~%20~LINK~',
|
|
|
|
|
'transform' => array('urlencode'),
|
|
|
|
|
'help' => 'https://gnu.io/social/',
|
|
|
|
|
'form' => 'advanced',
|
2017-11-04 21:19:51 +01:00
|
|
|
|
'method' => 'GET',
|
2014-02-22 22:53:51 +01:00
|
|
|
|
),
|
2016-01-19 19:46:40 +01:00
|
|
|
|
'jdh' => array(
|
2017-02-18 17:08:27 +01:00
|
|
|
|
'url' => 'https://www.journalduhacker.net/stories/new?url=~LINK~&title=~TITLE~',
|
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'form' => 'simple',
|
2017-11-04 21:19:51 +01:00
|
|
|
|
'method' => 'GET',
|
2017-02-18 17:08:27 +01:00
|
|
|
|
),
|
2017-02-04 13:20:25 +01:00
|
|
|
|
'Known' => array(
|
|
|
|
|
'url' => '~URL~/share?share_url=~LINK~&share_title=~TITLE~',
|
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'help' => 'https://withknown.com/',
|
|
|
|
|
'form' => 'advanced',
|
2017-11-04 21:19:51 +01:00
|
|
|
|
'method' => 'GET',
|
2017-02-04 13:20:25 +01:00
|
|
|
|
),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'lemmy' => array(
|
|
|
|
|
'url' => '~URL~/create_post?url=~LINK~&name=~TITLE~',
|
2018-06-04 05:15:20 +02:00
|
|
|
|
'transform' => array('rawurlencode'),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'help' => 'https://join-lemmy.org/',
|
2017-11-04 21:19:51 +01:00
|
|
|
|
'form' => 'advanced',
|
2018-06-04 05:15:20 +02:00
|
|
|
|
'method' => 'GET',
|
2017-02-18 11:16:22 +01:00
|
|
|
|
),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'linkedin' => array(
|
|
|
|
|
'url' => 'https://www.linkedin.com/shareArticle?url=~LINK~&title=~TITLE~&source=FreshRSS',
|
2018-05-28 21:13:42 +02:00
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'form' => 'simple',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'mastodon' => array(
|
|
|
|
|
'url' => '~URL~/share?title=~TITLE~&url=~LINK~',
|
2018-07-23 22:49:23 +02:00
|
|
|
|
'transform' => array('rawurlencode'),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'help' => 'https://joinmastodon.org/',
|
|
|
|
|
'form' => 'advanced',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
|
|
|
|
'movim' => array(
|
|
|
|
|
'url' => '~URL~/?share/~LINK~',
|
|
|
|
|
'transform' => array('urlencode'),
|
|
|
|
|
'help' => 'https://movim.eu/',
|
|
|
|
|
'form' => 'advanced',
|
2018-07-23 22:49:23 +02:00
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
2018-12-12 00:20:04 +01:00
|
|
|
|
'pinboard' => array(
|
|
|
|
|
'url' => 'https://pinboard.in/add?next=same&url=~LINK~&title=~TITLE~',
|
|
|
|
|
'transform' => array('urlencode'),
|
|
|
|
|
'help' => 'https://pinboard.in/api/',
|
|
|
|
|
'form' => 'simple',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
2022-03-14 19:53:33 +01:00
|
|
|
|
'pinterest' => array(
|
|
|
|
|
'url' => 'https://pinterest.com/pin/create/button/?url=~LINK~',
|
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'help' => 'https://pinterest.com/',
|
|
|
|
|
'form' => 'simple',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'pocket' => array(
|
|
|
|
|
'url' => 'https://getpocket.com/save?url=~LINK~&title=~TITLE~',
|
2019-10-01 18:12:21 +02:00
|
|
|
|
'transform' => array('rawurlencode'),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'form' => 'simple',
|
2019-10-01 18:12:21 +02:00
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'print' => array(
|
2022-03-16 23:23:15 +01:00
|
|
|
|
'HTMLtag' => 'button',
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'url' => '#',
|
2021-01-03 18:20:15 +01:00
|
|
|
|
'transform' => array(),
|
|
|
|
|
'form' => 'simple',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
2021-08-04 11:28:39 +02:00
|
|
|
|
'raindrop' => array(
|
|
|
|
|
'url' => 'https://app.raindrop.io/add?link=~LINK~&title=~TITLE~',
|
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'form' => 'simple',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
2022-03-14 19:53:33 +01:00
|
|
|
|
'reddit' => array(
|
|
|
|
|
'url' => 'https://www.reddit.com/submit?url=~LINK~',
|
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'help' => 'https://www.reddit.com/wiki/submitting?v=c2ae883a-04b9-11e4-a68c-12313b01a1fc',
|
|
|
|
|
'form' => 'simple',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
2021-08-30 22:31:11 +02:00
|
|
|
|
'shaarli' => array(
|
|
|
|
|
'url' => '~URL~?post=~LINK~&title=~TITLE~&source=FreshRSS',
|
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'help' => 'http://sebsauvage.net/wiki/doku.php?id=php:shaarli',
|
|
|
|
|
'form' => 'advanced',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
|
|
|
|
'twitter' => array(
|
|
|
|
|
'url' => 'https://twitter.com/share?url=~LINK~&text=~TITLE~',
|
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'form' => 'simple',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
|
|
|
|
'wallabag' => array(
|
|
|
|
|
'url' => '~URL~?action=add&url=~LINK~',
|
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'help' => 'http://www.wallabag.org/',
|
|
|
|
|
'form' => 'advanced',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
|
|
|
|
'wallabagv2' => array(
|
|
|
|
|
'url' => '~URL~/bookmarklet?url=~LINK~',
|
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'help' => 'http://www.wallabag.org/',
|
|
|
|
|
'form' => 'advanced',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
2022-03-16 23:23:15 +01:00
|
|
|
|
'web-sharing-api' => array(
|
|
|
|
|
'HTMLtag' => 'button',
|
|
|
|
|
'url' => '~LINK~',
|
|
|
|
|
'transform' => array(),
|
|
|
|
|
'form' => 'simple',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
2022-03-14 19:53:33 +01:00
|
|
|
|
'whatsapp' => array(
|
|
|
|
|
'url' => 'https://wa.me/?text=~TITLE~ | ~LINK~',
|
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'help' => 'https://faq.whatsapp.com/iphone/how-to-link-to-whatsapp-from-a-different-app/?lang=en',
|
|
|
|
|
'form' => 'simple',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
|
|
|
|
'xing' => array(
|
|
|
|
|
'url' => 'https://www.xing.com/spi/shares/new?url=~LINK~',
|
|
|
|
|
'transform' => array('rawurlencode'),
|
|
|
|
|
'help' => 'https://dev.xing.com/plugins/share_button/docs',
|
|
|
|
|
'form' => 'simple',
|
|
|
|
|
'method' => 'GET',
|
|
|
|
|
),
|
2014-02-22 22:53:51 +01:00
|
|
|
|
);
|