| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- /*
- * This is a configuration file. You shouldn't modify it unless you know what
- * you are doing. If you want to add a share type, this is where you need to do
- * it.
- *
- * For each share there is different configuration options. Here is the description
- * of those options:
- * - url is a mandatory option. It is a string representing the share URL. It
- * supports 3 different placeholders for custom data. The ~URL~ placeholder
- * 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.
- * The ~TITLE~ placeholder represents the title of the shared article.
- * - transform is an array of transformation to apply on links and titles
- * - help is a URL to a help page
- */
- return array(
- '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',
- ),
- 'blogotext' => array(
- 'url' => '~URL~/admin/links.php?url=~LINK~',
- 'transform' => array(),
- 'help' => 'http://lehollandaisvolant.net/blogotext/fr/',
- 'form' => 'advanced',
- ),
- 'wallabag' => array(
- 'url' => '~URL~?action=add&url=~LINK~',
- 'transform' => array(
- 'link' => array('base64_encode'),
- 'title' => array(),
- ),
- 'help' => 'http://www.wallabag.org/',
- 'form' => 'advanced',
- ),
- 'wallabagv2' => array(
- 'url' => '~URL~/bookmarklet?url=~LINK~',
- 'transform' => array(
- 'link' => array('rawurlencode'),
- 'title' => array(),
- ),
- 'help' => 'http://www.wallabag.org/',
- 'form' => 'advanced',
- ),
- 'diaspora' => array(
- 'url' => '~URL~/bookmarklet?url=~LINK~&title=~TITLE~',
- 'transform' => array('rawurlencode'),
- 'help' => 'https://diasporafoundation.org/',
- 'form' => 'advanced',
- ),
- 'movim' => array(
- 'url' => '~URL~/?share/~LINK~',
- 'transform' => array('rawurlencode', 'urlencode'),
- 'help' => 'https://github.com/edhelas/movim',
- 'form' => 'advanced',
- ),
- 'twitter' => array(
- 'url' => 'https://twitter.com/share?url=~LINK~&text=~TITLE~',
- 'transform' => array('rawurlencode'),
- 'form' => 'simple',
- ),
- 'g+' => array(
- 'url' => 'https://plus.google.com/share?url=~LINK~',
- 'transform' => array('rawurlencode'),
- 'form' => 'simple',
- ),
- 'facebook' => array(
- 'url' => 'https://www.facebook.com/sharer.php?u=~LINK~&t=~TITLE~',
- 'transform' => array('rawurlencode'),
- 'form' => 'simple',
- ),
- 'email' => array(
- 'url' => 'mailto:?subject=~TITLE~&body=~LINK~',
- 'transform' => array('rawurlencode'),
- 'form' => 'simple',
- ),
- 'print' => array(
- 'url' => '#',
- 'transform' => array(),
- 'form' => 'simple',
- ),
- 'jdh' => array(
- 'url' => 'https://www.journalduhacker.net/stories/new?url=~LINK~&title=~TITLE~',
- 'transform' => array('rawurlencode'),
- 'form' => 'simple',
- ),
- );
|