Skip to content

Commit

Permalink
Updated the dokuwiki plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
SparklingSoftware committed May 30, 2013
1 parent b4d2c25 commit 428ebb6
Show file tree
Hide file tree
Showing 7 changed files with 506 additions and 506 deletions.
72 changes: 36 additions & 36 deletions action/javascript.php
@@ -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,
//);
}

}
42 changes: 21 additions & 21 deletions bundled-software.txt
@@ -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

0 comments on commit 428ebb6

Please sign in to comment.