-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.php
38 lines (30 loc) · 1 KB
/
action.php
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
30
31
32
33
34
35
36
37
38
<?php
/**
* cookieCuttr Plugin: EU cookie law compatible.
*
* @author Martyn Eggleton <[email protected]>
*/
if(!defined('DOKU_INC')) die();
class action_plugin_ppecdg extends DokuWiki_Action_Plugin {
/**
* Register its handlers with the DokuWiki's event controller
*/
function register(&$controller) {
$controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this,
'_hookjs');
}
function _hookjs(&$event, $param) {
$event->data['script'][] = array(
'type' => 'text/javascript',
#'charset' => 'utf-8',
'_data' => '',
'src' => 'https://www.paypalobjects.com/js/external/dg.js');
/*
$event->data["script"][] = array (
"type" => "text/javascript",
# "charset" => "utf-8",
"_data" => "var dg = new PAYPAL.apps.DGFlow({trigger: 'paypal_submit',expType: 'instant'});",
);
*/
}
}