shares.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. 'blogotext' => array(
  28. 'deprecated' => true,
  29. 'url' => '~URL~/admin/links.php?url=~LINK~',
  30. 'transform' => array(),
  31. 'help' => 'http://lehollandaisvolant.net/blogotext/fr/',
  32. 'form' => 'advanced',
  33. 'method' => 'GET',
  34. ),
  35. 'clipboard' => array(
  36. 'url' => '~LINK~',
  37. 'transform' => array(),
  38. 'form' => 'simple',
  39. 'method' => 'GET',
  40. ),
  41. 'diaspora' => array(
  42. 'url' => '~URL~/bookmarklet?url=~LINK~&amp;title=~TITLE~',
  43. 'transform' => array('rawurlencode'),
  44. 'help' => 'https://diasporafoundation.org/',
  45. 'form' => 'advanced',
  46. 'method' => 'GET',
  47. ),
  48. 'email' => array(
  49. 'url' => 'mailto:?subject=~TITLE~&amp;body=~LINK~',
  50. 'transform' => array('rawurlencode'),
  51. 'form' => 'simple',
  52. 'method' => 'GET',
  53. ),
  54. 'facebook' => array(
  55. 'url' => 'https://www.facebook.com/sharer.php?u=~LINK~&amp;t=~TITLE~',
  56. 'transform' => array('rawurlencode'),
  57. 'form' => 'simple',
  58. 'method' => 'GET',
  59. ),
  60. 'gnusocial' => array(
  61. 'url' => '~URL~/notice/new?content=~TITLE~%20~LINK~',
  62. 'transform' => array('urlencode'),
  63. 'help' => 'https://gnu.io/social/',
  64. 'form' => 'advanced',
  65. 'method' => 'GET',
  66. ),
  67. 'jdh' => array(
  68. 'url' => 'https://www.journalduhacker.net/stories/new?url=~LINK~&title=~TITLE~',
  69. 'transform' => array('rawurlencode'),
  70. 'form' => 'simple',
  71. 'method' => 'GET',
  72. ),
  73. 'Known' => array(
  74. 'url' => '~URL~/share?share_url=~LINK~&share_title=~TITLE~',
  75. 'transform' => array('rawurlencode'),
  76. 'help' => 'https://withknown.com/',
  77. 'form' => 'advanced',
  78. 'method' => 'GET',
  79. ),
  80. 'lemmy' => array(
  81. 'url' => '~URL~/create_post?url=~LINK~&name=~TITLE~',
  82. 'transform' => array('rawurlencode'),
  83. 'help' => 'https://join-lemmy.org/',
  84. 'form' => 'advanced',
  85. 'method' => 'GET',
  86. ),
  87. 'linkedin' => array(
  88. 'url' => 'https://www.linkedin.com/shareArticle?url=~LINK~&amp;title=~TITLE~&amp;source=FreshRSS',
  89. 'transform' => array('rawurlencode'),
  90. 'form' => 'simple',
  91. 'method' => 'GET',
  92. ),
  93. 'mastodon' => array(
  94. 'url' => '~URL~/share?title=~TITLE~&url=~LINK~',
  95. 'transform' => array('rawurlencode'),
  96. 'help' => 'https://joinmastodon.org/',
  97. 'form' => 'advanced',
  98. 'method' => 'GET',
  99. ),
  100. 'movim' => array(
  101. 'url' => '~URL~/?share/~LINK~',
  102. 'transform' => array('urlencode'),
  103. 'help' => 'https://movim.eu/',
  104. 'form' => 'advanced',
  105. 'method' => 'GET',
  106. ),
  107. 'pinboard' => array(
  108. 'url' => 'https://pinboard.in/add?next=same&amp;url=~LINK~&amp;title=~TITLE~',
  109. 'transform' => array('urlencode'),
  110. 'help' => 'https://pinboard.in/api/',
  111. 'form' => 'simple',
  112. 'method' => 'GET',
  113. ),
  114. 'pinterest' => array(
  115. 'url' => 'https://pinterest.com/pin/create/button/?url=~LINK~',
  116. 'transform' => array('rawurlencode'),
  117. 'help' => 'https://pinterest.com/',
  118. 'form' => 'simple',
  119. 'method' => 'GET',
  120. ),
  121. 'pocket' => array(
  122. 'url' => 'https://getpocket.com/save?url=~LINK~&amp;title=~TITLE~',
  123. 'transform' => array('rawurlencode'),
  124. 'form' => 'simple',
  125. 'method' => 'GET',
  126. ),
  127. 'print' => array(
  128. 'url' => '#',
  129. 'transform' => array(),
  130. 'form' => 'simple',
  131. 'method' => 'GET',
  132. ),
  133. 'raindrop' => array(
  134. 'url' => 'https://app.raindrop.io/add?link=~LINK~&title=~TITLE~',
  135. 'transform' => array('rawurlencode'),
  136. 'form' => 'simple',
  137. 'method' => 'GET',
  138. ),
  139. 'reddit' => array(
  140. 'url' => 'https://www.reddit.com/submit?url=~LINK~',
  141. 'transform' => array('rawurlencode'),
  142. 'help' => 'https://www.reddit.com/wiki/submitting?v=c2ae883a-04b9-11e4-a68c-12313b01a1fc',
  143. 'form' => 'simple',
  144. 'method' => 'GET',
  145. ),
  146. 'shaarli' => array(
  147. 'url' => '~URL~?post=~LINK~&amp;title=~TITLE~&amp;source=FreshRSS',
  148. 'transform' => array('rawurlencode'),
  149. 'help' => 'http://sebsauvage.net/wiki/doku.php?id=php:shaarli',
  150. 'form' => 'advanced',
  151. 'method' => 'GET',
  152. ),
  153. 'twitter' => array(
  154. 'url' => 'https://twitter.com/share?url=~LINK~&amp;text=~TITLE~',
  155. 'transform' => array('rawurlencode'),
  156. 'form' => 'simple',
  157. 'method' => 'GET',
  158. ),
  159. 'wallabag' => array(
  160. 'url' => '~URL~?action=add&amp;url=~LINK~',
  161. 'transform' => array('rawurlencode'),
  162. 'help' => 'http://www.wallabag.org/',
  163. 'form' => 'advanced',
  164. 'method' => 'GET',
  165. ),
  166. 'wallabagv2' => array(
  167. 'url' => '~URL~/bookmarklet?url=~LINK~',
  168. 'transform' => array('rawurlencode'),
  169. 'help' => 'http://www.wallabag.org/',
  170. 'form' => 'advanced',
  171. 'method' => 'GET',
  172. ),
  173. 'whatsapp' => array(
  174. 'url' => 'https://wa.me/?text=~TITLE~ | ~LINK~',
  175. 'transform' => array('rawurlencode'),
  176. 'help' => 'https://faq.whatsapp.com/iphone/how-to-link-to-whatsapp-from-a-different-app/?lang=en',
  177. 'form' => 'simple',
  178. 'method' => 'GET',
  179. ),
  180. 'xing' => array(
  181. 'url' => 'https://www.xing.com/spi/shares/new?url=~LINK~',
  182. 'transform' => array('rawurlencode'),
  183. 'help' => 'https://dev.xing.com/plugins/share_button/docs',
  184. 'form' => 'simple',
  185. 'method' => 'GET',
  186. ),
  187. );