Initial commit from plugin wizard
This commit is contained in:
27
README
Normal file
27
README
Normal file
@@ -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 <michal@fykos.cz>
|
||||
|
||||
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
|
||||
40
action.php
Normal file
40
action.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* DokuWiki Plugin cookielaw (Action Component)
|
||||
*
|
||||
* @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
|
||||
* @author Michal Koutny <michal@fykos.cz>
|
||||
*/
|
||||
|
||||
// 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:
|
||||
8
conf/default.php
Normal file
8
conf/default.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* Default settings for the cookielaw plugin
|
||||
*
|
||||
* @author Michal Koutny <michal@fykos.cz>
|
||||
*/
|
||||
|
||||
//$conf['fixme'] = 'FIXME';
|
||||
10
conf/metadata.php
Normal file
10
conf/metadata.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* Options for the cookielaw plugin
|
||||
*
|
||||
* @author Michal Koutny <michal@fykos.cz>
|
||||
*/
|
||||
|
||||
|
||||
//$meta['fixme'] = array('string');
|
||||
|
||||
16
lang/en/lang.php
Normal file
16
lang/en/lang.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* English language file for cookielaw plugin
|
||||
*
|
||||
* @author Michal Koutny <michal@fykos.cz>
|
||||
*/
|
||||
|
||||
// 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 :
|
||||
13
lang/en/settings.php
Normal file
13
lang/en/settings.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* english language file for cookielaw plugin
|
||||
*
|
||||
* @author Michal Koutny <michal@fykos.cz>
|
||||
*/
|
||||
|
||||
// keys need to match the config setting name
|
||||
// $lang['fixme'] = 'FIXME';
|
||||
|
||||
|
||||
|
||||
//Setup VIM: ex: et ts=4 :
|
||||
7
plugin.info.txt
Normal file
7
plugin.info.txt
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user