', '', $html ); $html = str_replace( '

', '', $html ); $pos = strrpos($ID, ":"); if ($pos === false) { $html = str_replace( ' AUTH_READ ) { print ''; } } /** * Displays the bottombar * */ function tpl_bottombar() { global $INFO,$ID,$lang; $perm = $INFO['perm']; echo ''.$lang['btn_recent'].'' .' · '; if($perm > AUTH_READ) { echo ''.$lang['btn_revs'].'' .' · '; if(file_exists(wikiFN($ID))) { echo ''.$lang['btn_edit'].''; } else { echo ''.$lang['btn_create'].''; } echo ' · '; } else { echo ''.$lang['btn_source'].'' .' · '; } if($perm > AUTH_WRITE) { echo ''.$lang['btn_admin'].'' .' · '; } if(isset($INFO['userinfo']['name'])) { echo ''.$lang['btn_profile'].'' .' · '; echo ''.$lang['btn_logout'].''; } else { echo ''.$lang['btn_login'].''; } } /** * Displays the menu2 * */ function tpl_menu2() { global $conf, $ID, $REV, $INFO, $lang; $currID = false; $pos = strrpos($ID, ":"); if ($pos !== false) { $namespacechar = ":"; } else { $namespacechar = "/"; } if ( $conf['tpl_simpleClean']['menu2Permanent'] ) { $path = ""; } else { if ( false != strpos($ID, $namespacechar) ) { $path = substr($ID, 0, strpos($ID, $namespacechar)); } else { $path = $ID; } } if ( $INFO['perm'] >= AUTH_READ ) { print "

"; print $path; print "

"; print p_wiki_xhtml($path.$namespacechar."menu2", '', false); } if ( $INFO['perm'] > AUTH_READ ) { print ''; } } /** * Check if menu2 is present for this page * */ function tpl_isMenu2() { global $conf, $ID, $REV, $INFO, $ACT; if ( $ACT == 'edit' || $ACT == 'preview' ) { return false; } // Permanent Sidebar if ( true == $conf['tpl_simpleClean']['menu2Permanent'] && true == file_exists( (wikiFN("menu2") ) ) ) { return true; } if ( false != strpos($ID, ":") ) { $path = substr($ID, 0, strpos($ID, ":")); } else { $path = $ID; } $path .= ":"; if ( file_exists(wikiFN($path."menu2")) ) { return true; } else { return false; } } ?>