*/ // must be run from within DokuWiki if (!defined('DOKU_INC')) die(); // include custom template functions stolen from arctic template require_once(dirname(__FILE__).'/tpl_functions.php'); // load translation plugin (if present) $translation = plugin_load('helper','translation'); echo ' ', tpl_getConf("title_prefix"), // print title without language namespace preg_replace('/^'.$conf['lang'].':/','',tpl_pagetitle(null, true)), '', // set viewport for mobile devices ''; tpl_metaheaders(); echo tpl_favicon(array('favicon', 'mobile')), '
'; html_msgarea(); // print the upper navigation with translation and login buttons echo '
'; tpl_link(wl(),'HOME','name="dokuwiki__top" id="dokuwiki__top"'); tpl_link('https://www.kit.edu/impressum.php', tpl_getLang('imprint')); tpl_link('https://www.kit.edu/', 'KIT'); if ($translation) { if(!$_SERVER['REMOTE_USER']) $conf['plugin']['translation']['checkage'] = 0; echo $translation->showTranslations(); if(null != tpl_getConf("institute_".$conf['lang'])) $conf['title'] = tpl_getConf("institute_".$conf['lang']); } // various user buttons tpl_button('admin'); if($_SERVER['REMOTE_USER']) tpl_button('profile'); if($ACT != 'login' && $ACT != 'logout' && $_SERVER['REMOTE_USER'] || tpl_getConf("showlogin")) tpl_button('login'); echo '
'; // send output to browser tpl_flush(); // print content with sidebars on most locations if( $ACT != 'diff' && $ACT != 'edit' && $ACT != 'preview' && $ACT != 'admin' && $ACT != 'login' && $ACT != 'logout' && $ACT != 'profile' && $ACT != 'revisions' && $ACT != 'media' ) { echo '
'; _tpl_infobox(); if($_SERVER['REMOTE_USER']){ echo '
'; tpl_button('subscribe'); tpl_button('history'); tpl_button('revert'); if($ACT != 'login' && $ACT != 'logout'){ tpl_button('media'); tpl_button('edit'); } echo '
'; } echo '
'; tpl_content(); // print content without sidebars } else { echo '
'; tpl_content(); } echo '
'; tpl_flush(); echo '
'; ?>