This commit is contained in:
2023-10-13 06:43:02 +02:00
parent 53cdad5218
commit 94d8c8f707
44 changed files with 7453 additions and 0 deletions

29
action.php Normal file
View File

@ -0,0 +1,29 @@
<?php
/**
* @license http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.html
* @author Francois Merciol <dokuplugin@merciol.fr>
*
* Plugin Schedule: manage events per wiki @groups
*/
if (!defined ('DOKU_INC'))
die ();
if (!defined ('DOKU_PLUGIN'))
define ('DOKU_PLUGIN', DOKU_INC.'lib/plugins/');
require_once (DOKU_PLUGIN.'action.php');
class action_plugin_schedule extends DokuWiki_Action_Plugin {
// ============================================================
function register (Doku_Event_Handler $controller) {
$controller->register_hook ('DOKUWIKI_STARTED', 'AFTER', $this, '_defconf');
}
function _defconf (&$event, $param) {
global $JSINFO;
$JSINFO ['schedule']['useMap'] = $this->getConf ('useMap');
$JSINFO ['schedule']['defaultCenter'] = json_decode ($this->getConf ('defaultCenter'), true);
$JSINFO ['schedule']['defaultZoom'] = json_decode ($this->getConf ('defaultZoom'), true);
}
// ============================================================
}