shares.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. * - url is a mandatory option. It is a string representing the share URL. It
  10. * supports 3 different placeholders for custom data. The ~URL~ placeholder
  11. * represents the URL of the system used to share, it is configured by the
  12. * user. The ~LINK~ placeholder represents the link of the shared article.
  13. * The ~TITLE~ placeholder represents the title of the shared article.
  14. * - transform is an array of transformation to apply on links and titles
  15. * - help is a URL to a help page
  16. */
  17. return array(
  18. 'shaarli' => array(
  19. 'url' => '~URL~?post=~LINK~&amp;title=~TITLE~&amp;source=FreshRSS',
  20. 'transform' => array('urlencode'),
  21. 'help' => 'http://sebsauvage.net/wiki/doku.php?id=php:shaarli',
  22. 'form' => 'advanced',
  23. ),
  24. 'blogotext' => array(
  25. 'url' => '~URL~/admin/links.php?url=~LINK~',
  26. 'transform' => array(),
  27. 'help' => 'http://lehollandaisvolant.net/blogotext/fr/',
  28. 'form' => 'advanced',
  29. ),
  30. 'wallabag' => array(
  31. 'url' => '~URL~?action=add&amp;url=~LINK~',
  32. 'transform' => array(
  33. 'link' => array('base64_encode'),
  34. 'title' => array(),
  35. ),
  36. 'help' => 'http://www.wallabag.org/',
  37. 'form' => 'advanced',
  38. ),
  39. 'diaspora' => array(
  40. 'url' => '~URL~/bookmarklet?url=~LINK~&amp;title=~TITLE~',
  41. 'transform' => array('urlencode'),
  42. 'help' => 'https://diasporafoundation.org/',
  43. 'form' => 'advanced',
  44. ),
  45. 'twitter' => array(
  46. 'url' => 'https://twitter.com/share?url=~LINK~&amp;text=~TITLE~',
  47. 'transform' => array('urlencode'),
  48. 'form' => 'simple',
  49. ),
  50. 'g+' => array(
  51. 'url' => 'https://plus.google.com/share?url=~LINK~',
  52. 'transform' => array('urlencode'),
  53. 'form' => 'simple',
  54. ),
  55. 'facebook' => array(
  56. 'url' => 'https://www.facebook.com/sharer.php?u=~LINK~&amp;t=~TITLE~',
  57. 'transform' => array('urlencode'),
  58. 'form' => 'simple',
  59. ),
  60. 'email' => array(
  61. 'url' => 'mailto:?subject=~TITLE~&amp;body=~LINK~',
  62. 'transform' => array(
  63. 'link' => array('urlencode'),
  64. 'title' => array(),
  65. ),
  66. 'form' => 'simple',
  67. ),
  68. 'print' => array(
  69. 'url' => '#',
  70. 'transform' => array(),
  71. 'form' => 'simple',
  72. ),
  73. );