Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4d2c25
commit 428ebb6
Showing
7 changed files
with
506 additions
and
506 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
<?php | ||
/** | ||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) | ||
* @author Stephan Dekker <stephan@sparklingsoftware.com.au> | ||
*/ | ||
|
||
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_rigrr_javascript extends DokuWiki_Action_Plugin { | ||
|
||
function register(&$controller) { | ||
$controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this, '_hook_header'); | ||
} | ||
|
||
function rigrr_javascript() | ||
{ | ||
$rigrr = DOKU_URL.'lib/plugins/rigrr/lib/rigrr.nocache.js'; | ||
$script = '<script src="'.$rigrr.'" ></script>'; | ||
|
||
return $script; | ||
} | ||
|
||
function _hook_header(&$event, $param) { | ||
$data = $this->rigrr_javascript(); | ||
ptln($data); | ||
|
||
//$event->data['script'][] = array( | ||
// 'type' => 'text/javascript', | ||
// 'charset' => 'utf-8', | ||
// '_data' => $data, | ||
//); | ||
} | ||
|
||
} | ||
<?php | ||
/** | ||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) | ||
* @author Stephan Dekker <stephan@sparklingsoftware.com.au> | ||
*/ | ||
|
||
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_rigrr_javascript extends DokuWiki_Action_Plugin { | ||
|
||
function register(&$controller) { | ||
$controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this, '_hook_header'); | ||
} | ||
|
||
function rigrr_javascript() | ||
{ | ||
$rigrr = DOKU_URL.'lib/plugins/rigrr/lib/rigrr.nocache.js'; | ||
$script = '<script src="'.$rigrr.'" ></script>'; | ||
|
||
return $script; | ||
} | ||
|
||
function _hook_header(&$event, $param) { | ||
$data = $this->rigrr_javascript(); | ||
ptln($data); | ||
|
||
//$event->data['script'][] = array( | ||
// 'type' => 'text/javascript', | ||
// 'charset' => 'utf-8', | ||
// '_data' => $data, | ||
//); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
3rd Party Software & Licenses used by Rigrr | ||
=========================================== | ||
|
||
Google Web Toolkit (GWT) | ||
Copyright 2012 Google Inc. | ||
https://developers.google.com/web-toolkit | ||
Apache License v. 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt | ||
Information regarding bundled 3rd party software: https://developers.google.com/web-toolkit/terms#licenses | ||
|
||
gwt-graphics | ||
Copyright 2012 Henri Kerola | ||
http://code.google.com/p/gwt-graphics | ||
Apache License v. 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt | ||
|
||
jQuery | ||
Copyright 2012 jQuery Foundation and other contributors | ||
http://jquery.com | ||
https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt | ||
|
||
|
||
|
||
3rd Party Software & Licenses used by Rigrr | ||
=========================================== | ||
Google Web Toolkit (GWT) | ||
Copyright 2012 Google Inc. | ||
https://developers.google.com/web-toolkit | ||
Apache License v. 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt | ||
Information regarding bundled 3rd party software: https://developers.google.com/web-toolkit/terms#licenses | ||
gwt-graphics | ||
Copyright 2012 Henri Kerola | ||
http://code.google.com/p/gwt-graphics | ||
Apache License v. 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt | ||
jQuery | ||
Copyright 2012 jQuery Foundation and other contributors | ||
http://jquery.com | ||
https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt | ||
Oops, something went wrong.