aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/demo_plugin/demo_plugin.php
Commit message (Collapse)AuthorAgeFilesLines
* New init function for plugins, supports errors reportingArthurHoaro2016-10-141-0/+17
| | | | | | | | All plugins can optionally add an init function named `pluginname_init()` which is called when the plugin is loaded. This function is aware of the config, and can return initialization errors, which are displayed in the header template. Note that the previous error system hack no longer work.
* Plugin: add render_feed hook and call it while generating ATOM and RSS feed.ArthurHoaro2016-03-181-1/+26
| | | | Create an example of the new hook in the demo plugin.
* Merge pull request #408 from ArthurHoaro/gototopVirtualTam2015-12-091-0/+6
|\ | | | | Adding a new placeholder in render_footer hook.
| * Adding a new placeholder in render_footer hook.ArthurHoaro2015-12-081-0/+6
| | | | | | | | Allow free elements at the end of the page.
* | Fixes #403: build the daily page through renderPage()ArthurHoaro2015-12-081-0/+2
|/ | | | | * new entry in the Router for daily page. * add an always displayed button in demo_plugin
* cleanup: remove the executable bit from source scriptsVirtualTam2015-11-111-0/+0
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* PLUGIN demo_pluginArthurHoaro2015-11-081-0/+317
This plugin try to cover Shaarli's plugin API entirely. Can be used by plugin developper to make their own.