From abbc3d5b49cc0edcdb44dc875e2acd1751cca370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Koutn=C3=BD?= Date: Fri, 14 Aug 2015 23:47:50 +0200 Subject: [PATCH] Initial commit from plugin wizard --- README | 27 +++++++++++++++++++++++++++ action.php | 40 ++++++++++++++++++++++++++++++++++++++++ conf/default.php | 8 ++++++++ conf/metadata.php | 10 ++++++++++ lang/en/lang.php | 16 ++++++++++++++++ lang/en/settings.php | 13 +++++++++++++ plugin.info.txt | 7 +++++++ 7 files changed, 121 insertions(+) create mode 100644 README create mode 100644 action.php create mode 100644 conf/default.php create mode 100644 conf/metadata.php create mode 100644 lang/en/lang.php create mode 100644 lang/en/settings.php create mode 100644 plugin.info.txt diff --git a/README b/README new file mode 100644 index 0000000..6a2bf9c --- /dev/null +++ b/README @@ -0,0 +1,27 @@ +cookielaw Plugin for DokuWiki + +Inserts banner for user's consent with cookie storing. + +All documentation for this plugin can be found at +https://github.com/fykosak/dokuwiki-plugin-cookielaw + +If you install this plugin manually, make sure it is installed in +lib/plugins/cookielaw/ - if the folder is called different it +will not work! + +Please refer to http://www.dokuwiki.org/plugins for additional info +on how to install plugins in DokuWiki. + +---- +Copyright (C) Michal Koutny + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; version 2 of the License + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +See the COPYING file in your DokuWiki folder for details diff --git a/action.php b/action.php new file mode 100644 index 0000000..6201840 --- /dev/null +++ b/action.php @@ -0,0 +1,40 @@ + + */ + +// must be run within Dokuwiki +if(!defined('DOKU_INC')) die(); + +class action_plugin_cookielaw extends DokuWiki_Action_Plugin { + + /** + * Registers a callback function for a given event + * + * @param Doku_Event_Handler $controller DokuWiki's event controller object + * @return void + */ + public function register(Doku_Event_Handler $controller) { + + $controller->register_hook('TPL_ACT_RENDER', 'FIXME', $this, 'handle_tpl_act_render'); + + } + + /** + * [Custom event handler which performs action] + * + * @param Doku_Event $event event object by reference + * @param mixed $param [the parameters passed as fifth argument to register_hook() when this + * handler was registered] + * @return void + */ + + public function handle_tpl_act_render(Doku_Event &$event, $param) { + } + +} + +// vim:ts=4:sw=4:et: diff --git a/conf/default.php b/conf/default.php new file mode 100644 index 0000000..8373ad9 --- /dev/null +++ b/conf/default.php @@ -0,0 +1,8 @@ + + */ + +//$conf['fixme'] = 'FIXME'; diff --git a/conf/metadata.php b/conf/metadata.php new file mode 100644 index 0000000..21fca94 --- /dev/null +++ b/conf/metadata.php @@ -0,0 +1,10 @@ + + */ + + +//$meta['fixme'] = array('string'); + diff --git a/lang/en/lang.php b/lang/en/lang.php new file mode 100644 index 0000000..26f0089 --- /dev/null +++ b/lang/en/lang.php @@ -0,0 +1,16 @@ + + */ + +// menu entry for admin plugins +// $lang['menu'] = 'Your menu entry'; + +// custom language strings for the plugin +// $lang['fixme'] = 'FIXME'; + + + +//Setup VIM: ex: et ts=4 : diff --git a/lang/en/settings.php b/lang/en/settings.php new file mode 100644 index 0000000..f88bc22 --- /dev/null +++ b/lang/en/settings.php @@ -0,0 +1,13 @@ + + */ + +// keys need to match the config setting name +// $lang['fixme'] = 'FIXME'; + + + +//Setup VIM: ex: et ts=4 : diff --git a/plugin.info.txt b/plugin.info.txt new file mode 100644 index 0000000..93a223a --- /dev/null +++ b/plugin.info.txt @@ -0,0 +1,7 @@ +base cookielaw +author Michal Koutny +email michal@fykos.cz +date 2015-08-14 +name cookielaw plugin +desc Inserts banner for user's consent with cookie storing. +url https://github.com/fykosak/dokuwiki-plugin-cookielaw