Permalink
Browse files

register controller & handler

register controller & handler
  • Loading branch information...
Taggic committed Jun 2, 2016
1 parent 91f232c commit e3c3279d0194eb510c2cdc18b1c27deafd54a612
Showing with 6 additions and 6 deletions.
  1. +1 −1 VERSION
  2. +2 −2 action.php
  3. +1 −1 plugin.info.txt
  4. +2 −2 syntax.php
View
@@ -1 +1 @@
2012-06-22
2016-06-02
View
@@ -17,7 +17,7 @@ class action_plugin_xssnipper extends DokuWiki_Action_Plugin {
function getInfo() {
return array (
'author' => 'Heiko Barth',
'date' => '2010-03-02',
'date' => '2016-06-02',
'name' => 'Toolbar Code Button',
'desc' => 'Inserts a code button into the toolbar',
'url' => 'http://www.heiko-barth.de/download.php?id=dw_codebutton',
@@ -27,7 +27,7 @@ function getInfo() {
/**
* Register the eventhandlers
*/
function register(&$controller) {
function register(Doku_Event_Handler &$controller) {
$controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ());
}
View
@@ -3,7 +3,7 @@
base xssnipper
author Taggic
email taggic@t-online.de
date 2012-06-22
date 2016-06-02
name xssnipper
desc provides syntax plugin to retrieve code snippeds from files
url http://www.dokuwiki.org/plugin:xssnipper
View
@@ -44,7 +44,7 @@ function connectTo($mode){
/******************************************************************************/
/* handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler &$handler) {
global $ID;
$match = substr($match,strlen('{(xssnipper>'),-2); //strip markup from start and end
@@ -96,7 +96,7 @@ function handle($match, $state, $pos, &$handler) {
/* render output
* @author Taggic <taggic@t-online.de>
*/
function render($mode, &$renderer, $xssnipper) {
function render($mode, Doku_Renderer &$renderer, $xssnipper) {
global $ID;
if(!$xssnipper['type']) $xssnipper['type']='txt';
if($this->_codeblock<1) $this->_codeblock=1;

0 comments on commit e3c3279

Please sign in to comment.