Lines Matching defs:tabs

20                 'desc'   => 'Render tabs HTML of DokuWiki pages',

23 'tabs' => array('page'=>'page ID','title'=>'page title','error'=>'error msg'),
30 'desc' => 'Render tabs ODT of DokuWiki pages',
33 'tabs' => array('page'=>'page ID','title'=>'page title','error'=>'error msg'),),
54 // loop for tabs
55 $tabs = array();
66 $init_page_idx=count($tabs);
85 $init_page_idx = count($tabs);
95 if($asterisk) $init_page_idx = count($tabs);
122 $tabs[] = array('error'=>tpl_link(wl($page),$page,'',true).' - '.$this->getLang('error_notfound'));
125 $tabs[] = array('error'=>$this->getLang('error_parent'));
127 $tabs[] = array('page'=>hsc($page),'title'=>hsc($title));
130 return array(DOKU_LEXER_MATCHED,$tabs,$init_page_idx,hsc(trim($class)));
136 function renderTabsHtml(&$renderer,$tabs,$init_page_idx,$class='') {
142 $sz = count($tabs);
144 if(empty($tabs[$i]['error'])){
146 $html.='<li class="dwpl-ti-tab"><div class="dwpl-ti-tab-title'.$selected_class.'" value="'.$tabs[$i]['page'].'">'.$tabs[$i]['title'].'</div></li>'.NL;
148 $html.='<li class="dwpl-ti-tab"><div class="dwpl-ti-tab-title error">'.$tabs[$i]['error'].'</div></li>'.NL;
158 $html.='<div id="dwpl-ti-read-init-page" class="hidden" value="'.$tabs[$init_page_idx]['page'].'"></div>';
162 $pagelink = tpl_link(wl($tabs[$init_page_idx]['page']),$goto,'',true);
166 $html.=tpl_include_page($tabs[$init_page_idx]['page'],false);
177 $renderer->doc.="<!-- \n".print_r(array($tabs,$init_page_idx,$class),true)."\n -->";
185 function renderLinkTabs(&$renderer,$tabs,$init_page_idx,$class='') {
194 $sz = count($tabs);
196 if(empty($tabs[$i]['error'])){
199 $html.=tpl_link(wl($ID,'tabpage_idx='.$i.'#dokuwiki__content'),$tabs[$i]['title'],'class="'.$selected_class.'"',true);
203 $html.='<div class="dwpl-ti-tab-title error">'.$tabs[$i]['error'].'</div>';
212 $pagelink = tpl_link(wl($tabs[$init_page_idx]['page']),$goto,'',true);
215 $html.=tpl_include_page($tabs[$init_page_idx]['page'],false);
224 $renderer->doc.="<!-- \n".print_r(array($tabs,$init_page_idx,$class),true)."\n -->";
231 * Get embed tabs XHTML from pagenames
233 function renderEmbedTabs(&$renderer,$tabs,$init_page_idx,$class='') {
238 // render all tabs !
242 $sz = count($tabs);
244 if(empty($tabs[$i]['error'])){
247 $html.='<div class="dwpl-ti-tab-embd-title'.$selected_class.'">'.$tabs[$i]['title'].'</div></li>'.NL;
251 $html.='<div class="dwpl-ti-tab-title error">'.$tabs[$i]['error'].'</div>';
265 $pagelink = tpl_link(wl($tabs[$i]['page']),$goto,'',true);
268 $html.=tpl_include_page($tabs[$i]['page'],false);
280 $renderer->doc.="<!-- \n".print_r(array($tabs,$init_page_idx,$class),true)."\n -->";
288 function getOdtHtml(&$renderer,$tabs){
296 $page = $tabs[$i]['page'];
297 $title = $tabs[$i]['title'];
300 if(empty($tabs[$i]['error'])){
314 $renderer->doc.=$tabs[$i]['error'];
323 $renderer->doc.="<!-- \n".print_r(array($tabs,$init_page_idx,$class),true)."\n -->";