'Mischa The Evil', 'email' => 'mischa_the_evil@hotmail.com', 'date' => '2009-03-09', 'name' => 'Progressbar', 'desc' => 'Makes progress bars on wiki pages.', 'url' => 'https://www.dokuwiki.org/plugin:progressbar', ); } /** * What kind of syntax are we? */ function getType() { return 'substition'; } /** * Where to sort in? */ function getSort() { return 999; } /** * Connect pattern to lexer */ function connectTo($mode) { $this->Lexer->addSpecialPattern('', $mode, 'plugin_progressbar'); } /** * Handle the match */ function handle($match, $state, $pos, &$handler) { substr($match, 10, -1); return array(substr($match, 10, -1)); } /** * Create output */ function render($mode, &$renderer, $data) { $renderer->doc .= '' . $data[0] . '% completed'; return true; } }