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