shares.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?php
  2. /*
  3. * This is a configuration file. You shouldn’t modify it unless you know what
  4. * you are doing. If you want to add a share type, this is where you need to do
  5. * it.
  6. *
  7. * For each share there is different configuration options. Here is the description
  8. * of those options:
  9. * - 'deprecated' (optional) is a boolean. Default: 'false'.
  10. * 'true', if the sharing service is planned to remove in the future.
  11. * Add more information into the documentation center.
  12. * - 'url' is a mandatory option. It is a string representing the share URL. It
  13. * supports 4 different placeholders for custom data. The ~URL~ placeholder
  14. * represents the URL of the system used to share, it is configured by the
  15. * user. The ~LINK~ placeholder represents the link of the shared article.
  16. * The ~TITLE~ placeholder represents the title of the shared article. The
  17. * ~ID~ placeholder represents the id of the shared article (only useful
  18. * for internal use)
  19. * - 'transform' is an array of transformation to apply on links and titles
  20. * - 'help' is a URL to a help page (mandatory for form = 'advanced')
  21. * - 'form' is the type of form to display during configuration. It’s either
  22. * 'simple' or 'advanced'. 'simple' is used when only the name is configurable,
  23. * 'advanced' is used when the name and the location are configurable.
  24. * - 'method' is the HTTP method (POST or GET) used to share a link.
  25. */
  26. return array(
  27. 'archivePH' => array(
  28. 'url' => 'https://archive.ph/submit/?url=~LINK~',
  29. 'transform' => array(),
  30. 'help' => 'https://archive.ph/',
  31. 'form' => 'simple',
  32. 'method' => 'GET',
  33. ),
  34. 'blogotext' => array(
  35. 'deprecated' => true,
  36. 'url' => '~URL~/admin/links.php?url=~LINK~',
  37. 'transform' => array(),
  38. 'help' => 'http://lehollandaisvolant.net/blogotext/fr/',
  39. 'form' => 'advanced',
  40. 'method' => 'GET',
  41. ),
  42. 'clipboard' => array(
  43. 'HTMLtag' => 'button',
  44. 'url' => '~LINK~',
  45. 'transform' => array(),
  46. 'form' => 'simple',
  47. 'method' => 'GET',
  48. ),
  49. 'diaspora' => array(
  50. 'url' => '~URL~/bookmarklet?url=~LINK~&amp;title=~TITLE~',
  51. 'transform' => array('rawurlencode'),
  52. 'help' => 'https://diasporafoundation.org/',
  53. 'form' => 'advanced',
  54. 'method' => 'GET',
  55. ),
  56. 'email' => array(
  57. 'url' => 'mailto:?subject=~TITLE~&amp;body=~LINK~',
  58. 'transform' => array('rawurlencode'),
  59. 'form' => 'simple',
  60. 'method' => 'GET',
  61. ),
  62. 'facebook' => array(
  63. 'url' => 'https://www.facebook.com/sharer.php?u=~LINK~&amp;t=~TITLE~',
  64. 'transform' => array('rawurlencode'),
  65. 'form' => 'simple',
  66. 'method' => 'GET',
  67. ),
  68. 'gnusocial' => array(
  69. 'url' => '~URL~/notice/new?content=~TITLE~%20~LINK~',
  70. 'transform' => array('urlencode'),
  71. 'help' => 'https://gnu.io/social/',
  72. 'form' => 'advanced',
  73. 'method' => 'GET',
  74. ),
  75. 'jdh' => array(
  76. 'url' => 'https://www.journalduhacker.net/stories/new?url=~LINK~&title=~TITLE~',
  77. 'transform' => array('rawurlencode'),
  78. 'form' => 'simple',
  79. 'method' => 'GET',
  80. ),
  81. 'Known' => array(
  82. 'url' => '~URL~/share?share_url=~LINK~&share_title=~TITLE~',
  83. 'transform' => array('rawurlencode'),
  84. 'help' => 'https://withknown.com/',
  85. 'form' => 'advanced',
  86. 'method' => 'GET',
  87. ),
  88. 'lemmy' => array(
  89. 'url' => '~URL~/create_post?url=~LINK~&name=~TITLE~',
  90. 'transform' => array('rawurlencode'),
  91. 'help' => 'https://join-lemmy.org/',
  92. 'form' => 'advanced',
  93. 'method' => 'GET',
  94. ),
  95. 'linkding' => array(
  96. 'url' => '~URL~/bookmarks/new?url=~LINK~&auto_close',
  97. 'transform' => array('rawurlencode'),
  98. 'help' => 'https://github.com/sissbruecker/linkding/blob/master/docs/how-to.md',
  99. 'form' => 'advanced',
  100. 'method' => 'GET',
  101. ),
  102. 'linkedin' => array(
  103. 'url' => 'https://www.linkedin.com/shareArticle?url=~LINK~&amp;title=~TITLE~&amp;source=FreshRSS',
  104. 'transform' => array('rawurlencode'),
  105. 'form' => 'simple',
  106. 'method' => 'GET',
  107. ),
  108. 'mastodon' => array(
  109. 'url' => '~URL~/share?title=~TITLE~&url=~LINK~',
  110. 'transform' => array('rawurlencode'),
  111. 'help' => 'https://joinmastodon.org/',
  112. 'form' => 'advanced',
  113. 'method' => 'GET',
  114. ),
  115. 'movim' => array(
  116. 'url' => '~URL~/?share/~LINK~',
  117. 'transform' => array('urlencode'),
  118. 'help' => 'https://movim.eu/',
  119. 'form' => 'advanced',
  120. 'method' => 'GET',
  121. ),
  122. 'pinboard' => array(
  123. 'url' => 'https://pinboard.in/add?next=same&amp;url=~LINK~&amp;title=~TITLE~',
  124. 'transform' => array('urlencode'),
  125. 'help' => 'https://pinboard.in/api/',
  126. 'form' => 'simple',
  127. 'method' => 'GET',
  128. ),
  129. 'pinterest' => array(
  130. 'url' => 'https://pinterest.com/pin/create/button/?url=~LINK~',
  131. 'transform' => array('rawurlencode'),
  132. 'help' => 'https://pinterest.com/',
  133. 'form' => 'simple',
  134. 'method' => 'GET',
  135. ),
  136. 'pocket' => array(
  137. 'url' => 'https://getpocket.com/save?url=~LINK~&amp;title=~TITLE~',
  138. 'transform' => array('rawurlencode'),
  139. 'form' => 'simple',
  140. 'method' => 'GET',
  141. ),
  142. 'print' => array(
  143. 'HTMLtag' => 'button',
  144. 'url' => '#',
  145. 'transform' => array(),
  146. 'form' => 'simple',
  147. 'method' => 'GET',
  148. ),
  149. 'raindrop' => array(
  150. 'url' => 'https://app.raindrop.io/add?link=~LINK~&title=~TITLE~',
  151. 'transform' => array('rawurlencode'),
  152. 'form' => 'simple',
  153. 'method' => 'GET',
  154. ),
  155. 'reddit' => array(
  156. 'url' => 'https://www.reddit.com/submit?url=~LINK~',
  157. 'transform' => array('rawurlencode'),
  158. 'help' => 'https://www.reddit.com/wiki/submitting?v=c2ae883a-04b9-11e4-a68c-12313b01a1fc',
  159. 'form' => 'simple',
  160. 'method' => 'GET',
  161. ),
  162. 'shaarli' => array(
  163. 'url' => '~URL~?post=~LINK~&amp;title=~TITLE~&amp;source=FreshRSS',
  164. 'transform' => array('rawurlencode'),
  165. 'help' => 'http://sebsauvage.net/wiki/doku.php?id=php:shaarli',
  166. 'form' => 'advanced',
  167. 'method' => 'GET',
  168. ),
  169. 'twitter' => array(
  170. 'url' => 'https://twitter.com/share?url=~LINK~&amp;text=~TITLE~',
  171. 'transform' => array('rawurlencode'),
  172. 'form' => 'simple',
  173. 'method' => 'GET',
  174. ),
  175. 'wallabag' => array(
  176. 'url' => '~URL~?action=add&amp;url=~LINK~',
  177. 'transform' => array('rawurlencode'),
  178. 'help' => 'http://www.wallabag.org/',
  179. 'form' => 'advanced',
  180. 'method' => 'GET',
  181. ),
  182. 'wallabagv2' => array(
  183. 'url' => '~URL~/bookmarklet?url=~LINK~',
  184. 'transform' => array('rawurlencode'),
  185. 'help' => 'http://www.wallabag.org/',
  186. 'form' => 'advanced',
  187. 'method' => 'GET',
  188. ),
  189. 'web-sharing-api' => array(
  190. 'HTMLtag' => 'button',
  191. 'url' => '~LINK~',
  192. 'transform' => array(),
  193. 'form' => 'simple',
  194. 'method' => 'GET',
  195. ),
  196. 'whatsapp' => array(
  197. 'url' => 'https://wa.me/?text=~TITLE~ | ~LINK~',
  198. 'transform' => array('rawurlencode'),
  199. 'help' => 'https://faq.whatsapp.com/iphone/how-to-link-to-whatsapp-from-a-different-app/?lang=en',
  200. 'form' => 'simple',
  201. 'method' => 'GET',
  202. ),
  203. 'xing' => array(
  204. 'url' => 'https://www.xing.com/spi/shares/new?url=~LINK~',
  205. 'transform' => array('rawurlencode'),
  206. 'help' => 'https://dev.xing.com/plugins/share_button/docs',
  207. 'form' => 'simple',
  208. 'method' => 'GET',
  209. ),
  210. );