Lines Matching refs:page

23                         'tabs'             => array('page'=>'page ID','title'=>'page title','error'=>'error msg'),

33 'tabs' => array('page'=>'page ID','title'=>'page title','error'=>'error msg'),),
49 $pages = explode($page_delim,$match); // extract page names
56 $init_page_idx = 0; // initial page index
58 // Put page ID into $page
61 $page = trim($pages[$i]);
65 if($page[0]=='*'){
67 $page = substr($page,1);
69 $items = explode('|',$page);
71 list($page,$title)=$items;
76 if (preg_match('/\[\[(.+?)\]\]/', $page, $match)){
78 // each tabbed page is provided as DokuWiki unordered list syntax:
80 $p = substr($page,0,strpos($page,'[['));
81 $page = $match[1];
82 if($page=='') continue;
84 // multiple '*' means initial page!!
90 while($page[0]=='*'){
91 $page = substr($page,1);
94 if($page=='') continue;
97 list($page, $title) = explode('|', $page, 2);
98 list($page ,$section) = explode('#', $page, 2);
99 if($page=='') continue;
103 resolve_pageid(getNS($ID),$page,$exists);
107 $meta_title= p_get_metadata($page,'title');
113 // Show namespace(s) of page name in tab ?
115 $title = $this->getConf('namespace_in_tab')?$page:noNS($page);
120 if(page_exists($page)==false){
121 // page in tab exists ?
122 $tabs[] = array('error'=>tpl_link(wl($page),$page,'',true).' - '.$this->getLang('error_notfound'));
123 }else if($ID==$page){
124 // page is identical to parent ?
127 $tabs[] = array('page'=>hsc($page),'title'=>hsc($title));
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;
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);
187 // Selected page defined ?
212 $pagelink = tpl_link(wl($tabs[$init_page_idx]['page']),$goto,'',true);
215 $html.=tpl_include_page($tabs[$init_page_idx]['page'],false);
235 // Selected page defined ?
265 $pagelink = tpl_link(wl($tabs[$i]['page']),$goto,'',true);
268 $html.=tpl_include_page($tabs[$i]['page'],false);
296 $page = $tabs[$i]['page'];
298 $desc = p_get_metadata($page,'description');
303 $renderer->internallink($page,$title);