Lexer->addSpecialPattern("",$mode,'plugin_rowmove'); } /* * Handle the matches */ function handle($match, $state, $pos, Doku_Handler $handler){ return ($opts); } function iswriter() { global $conf; global $INFO; return(!$conf['useacl'] || $conf['useacl'] && $INFO['perm'] > AUTH_READ); } /* * Create output */ function render($mode, Doku_Renderer $renderer, $opt){ global $INFO; if($mode == 'metadata') return false; if($mode == 'xhtml') { $Hajax = plugin_load('helper', 'ajaxedit'); if(!$Hajax){ msg('Plugin ajaxedit is missing'); } //insert selector if writable if ($this->iswriter()==TRUE && $Hajax) { $image = "./lib/plugins/rowmove/images/"; $renderer->doc .= ""; $renderer->doc .= "up"; $renderer->doc .= "down"; $renderer->doc .= ""; } } return true; } }