From 263d1f649574083be4b8826a57688a85d48d4d15 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 15 Jul 2015 12:05:36 +0200 Subject: PLUGIN wallabag Add a Wallabag icon in linklist for each link. --- COPYING | 4 ++++ plugins/wallabag/README.md | 29 +++++++++++++++++++++++++++++ plugins/wallabag/config.php.dist | 3 +++ plugins/wallabag/wallabag.html | 1 + plugins/wallabag/wallabag.php | 31 +++++++++++++++++++++++++++++++ plugins/wallabag/wallabag.png | Bin 0 -> 369 bytes 6 files changed, 68 insertions(+) create mode 100644 plugins/wallabag/README.md create mode 100644 plugins/wallabag/config.php.dist create mode 100644 plugins/wallabag/wallabag.html create mode 100644 plugins/wallabag/wallabag.php create mode 100644 plugins/wallabag/wallabag.png diff --git a/COPYING b/COPYING index 1044a3b0..22929463 100644 --- a/COPYING +++ b/COPYING @@ -68,6 +68,10 @@ Files: inc/awesomplete* License: MIT License (http://opensource.org/licenses/MIT) Copyright: (C) 2015 Lea Verou - https://github.com/LeaVerou/awesomplete +Files: plugins/wallabag/wallabag.png +License: MIT License (http://opensource.org/licenses/MIT) +Copyright: (C) 2015 Nicolas Lœuillet - https://github.com/wallabag/wallabag + ---------------------------------------------------- ZLIB/LIBPNG LICENSE diff --git a/plugins/wallabag/README.md b/plugins/wallabag/README.md new file mode 100644 index 00000000..08e0d44a --- /dev/null +++ b/plugins/wallabag/README.md @@ -0,0 +1,29 @@ +## Save to Wallabag plugin for Shaarli + +For each link in your Shaarli, adds a button to save the target page in your [wallabag](https://www.wallabag.org/). + +### Installation/configuration +Clone this repository inside your `tpl/plugins/` directory, or download the archive and unpack it there. +The directory structure should look like: + +``` +└── tpl + └── plugins +    └── wallabag +    ├── README.md +    ├── wallabag.html +    └── wallabag.png +``` + +To enable the plugin, add `'wallabag'` to your list of enabled plugins in `data/options.php` (`PLUGINS` array) +. This should look like: + +``` +$GLOBALS['config']['PLUGINS'] = array('qrcode', 'any_other_plugin', 'wallabag') +``` + +Then, set the `WALLABAG_URL` variable in `data/options.php` pointing to your wallabag URL. Example: + +``` +$GLOBALS['config']['WALLABAG_URL'] = 'http://demo.wallabag.org' ; //Base URL of your wallabag installation +``` \ No newline at end of file diff --git a/plugins/wallabag/config.php.dist b/plugins/wallabag/config.php.dist new file mode 100644 index 00000000..7cf0d303 --- /dev/null +++ b/plugins/wallabag/config.php.dist @@ -0,0 +1,3 @@ + diff --git a/plugins/wallabag/wallabag.php b/plugins/wallabag/wallabag.php new file mode 100644 index 00000000..db8151c9 --- /dev/null +++ b/plugins/wallabag/wallabag.php @@ -0,0 +1,31 @@ +