Lexer->addSpecialPattern('{{no-footer}}', $mode, 'plugin_revealjs_footer'); } /** * Handler to prepare matched data for the rendering process. * * @param $aMatch String The text matched by the patterns. * @param $aState Integer The lexer state for the match. * @param $aPos Integer The character position of the matched text. * @param $aHandler Object Reference to the Doku_Handler object. * @return Integer The current lexer state for the match. * @public * @see render() * @static */ public function handle($match, $state, $pos, Doku_Handler $handler) { $data = array(); $data['position'] = $pos; return $data; } /** * Handle the actual output creation. * * @param $aFormat String The output format to generate. * @param $aRenderer Object A reference to the renderer object. * @param $aData Array The data created by the handle() * method. * @return Boolean TRUE if rendered successfully, or * FALSE otherwise. * @public * @see handle() */ public function render($mode, Doku_Renderer $renderer, $data) { if($mode == 'xhtml'){ if (is_a($renderer, 'renderer_plugin_revealjs')){ //slideshow: here we use the keyword, this will pasted $renderer->next_slide_no_footer = true; } else { //normal wiki page $renderer->wikipage_next_slide_no_footer = true; $renderer->wikipage_next_slide_no_footer_position = $data['position']; } return true; } return false; } }