-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.php
More file actions
29 lines (22 loc) · 860 Bytes
/
Copy pathaction.php
File metadata and controls
29 lines (22 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
// must be run within Dokuwiki
if (!defined('DOKU_INC')) die();
if (!defined('DOKU_LF')) define('DOKU_LF', "\n");
if (!defined('DOKU_TAB')) define('DOKU_TAB', "\t");
if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once DOKU_PLUGIN.'action.php';
class action_plugin_sabal extends DokuWiki_Action_Plugin {
public function register(Doku_Event_Handler &$controller) {
$controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this,
'handle_tpl_metaheader_output');
}
public function handle_tpl_metaheader_output(Doku_Event &$event, $param) {
$event->data['script'][] = array (
'type' => 'text/javascript',
'charset' => 'utf-8',
'src' => DOKU_BASE."lib/plugins/sabal/jquery.jstree.js",
'_data' => '',
);
}
}
?>