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. --- 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 5 files changed, 64 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 (limited to 'plugins/wallabag') 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 @@ +