shaarli/Shaarli — pull request #45 by nodiscc (2014-11-06 01:26:57+00:00)
Title: Plugin system draft + example plugin

Very rough work in progress. This (will) add a plugin system for page elements. Do not merge.

The example plugin adds a `readityourself` link for each Shaarli link, pointing to a readable version of the page ([example](http://www.readityourself.net/readityourself.php?url=https%3A%2F%2Fprojects.eff.org%2F~barlow%2FDeclaration-Final.html)).
The [readityourself](https://github.com/memiks/readityourself) server URL is configurable.
Requested in https://github.com/sebsauvage/Shaarli/issues/66. To test it, `git clone https://github.com/nodiscc/Shaarli shaarli-test; cd shaarli-test; git checkout readityourself`

![howitlooks](https://cloud.githubusercontent.com/assets/3950390/4929487/b373d0b4-6553-11e4-8493-8f67151a8982.png)

#### TODO - PLUGIN SYSTEM
* all options should be in options.php, + https://github.com/shaarli/Shaarli/issues/41
* `LINKLIST_PLUGINS` should be an array
* It's a list of enabled plugins that will get included/run when raintpl generates the linklist
* adaptable to `PAGEHEADER_PLUGINS`, `EDITLINK_PLUGINS`...
* remove the new `if` condition line 51, instead:
* [loop](http://www.raintpl.com/Documentation/Documentation-for-web-designers/RainTPL-Tags/_loop_%20array%20___loop_/) over all plugin names in the arry, for each, [include](http://www.raintpl.com/Documentation/Documentation-for-web-designers/RainTPL-Tags/_include_%20template%20_/) `inc/plugins/$pluginname/$pluginname.html` (find a correct location).
* the `