* @homepage: http://www.chimeric.de * @modified-by: Xan * @modified-by: Oscar M. Lage */ require_once('conf.php'); /** * fetches the page menu1 and displays it * * @author Oscar M. Lage */ function tpl_menu1() { global $conf, $ID, $REV, $INFO; print p_wiki_xhtml("menu1", '', false); } /** * fetches the sidebar-pages and displays the sidebar * * @author Michael Klier */ function tpl_sidebar() { global $conf, $ID, $REV, $INFO, $lang; $svID = $ID; $svREV = $REV; $nom = $ID.'_'.$conf['sidebar-theme']['sidebar_pagename']; $default_nom = $conf['sidebar-theme']['default_sidebar_name']; if (file_exists(wikiFN($nom))) { echo ''; } else { if (file_exists(wikiFN($default_nom))) { print ''; } else { print ' '; } } $ID = $svID; $REV = $svREV; } /** * removes the TOC of the sidebar-pages and shows a edit-button if user has enough rights * * @author Michael Klier */ function p_sidebar_xhtml($Sb) { $data = p_wiki_xhtml($Sb,'',false); if(auth_quickaclcheck($Sb) >= AUTH_EDIT) { $data .= '
'.html_btn('secedit',$Sb,'',array('do'=>'edit','rev'=>'','post')).'
'; } return preg_replace('/
.*?(<\/div>\n<\/div>)/s', '', $data); } ?>