helper = plugin_load('helper','tabinclude'); } function getType(){ return 'substition'; } function getSort(){ return 158; } function connectTo($mode){ $this->Lexer->addSpecialPattern('', $mode, 'plugin_tabinclude_lines'); } /** * handle syntax */ function handle($match, $state, $pos, Doku_Handler $handler){ $match = substr($match,7,-9); // strip markup return $this->helper->getTabPages($match,false); } /** * Render tab control */ function render($mode, Doku_Renderer $renderer, $data) { list($state, $tabs,$init_page_idx,$class) = $data; if ($mode=='xhtml'){ $this->helper->renderTabsHtml($renderer,$tabs,$init_page_idx,$class); return true; }else if($mode=='odt'){ $this->helper->getOdtHtml($renderer,$tabs); return true; } return false; } }