1<?php 2/** 3 * DokuWiki DokuKIT Template, based on DokuCMS 4 * 5 * @link https://github.com/particleKIT/dokuKIT 6 * @author Martin Gabelmann <martin@gabelmann.biz> 7 */ 8 9// must be run from within DokuWiki 10if (!defined('DOKU_INC')) die(); 11 12// include custom template functions stolen from arctic template 13require_once(dirname(__FILE__).'/tpl_functions.php'); 14 15// load translation plugin (if present) 16$translation = plugin_load('helper','translation'); 17 18 19echo ' 20 <!DOCTYPE html> 21 <html lang="', $conf['lang'], '" dir="', $lang['direction'], '"> 22 <head> 23 <meta charset="utf-8" /> 24 <title>', tpl_getConf("title_prefix"), 25 // print title without language namespace 26 preg_replace('/^'.$conf['lang'].':/','',tpl_pagetitle(null, true)), '</title>', 27 // set viewport for mobile devices 28 '<meta name="viewport" content="width=device-width, initial-scale=1.0">'; 29 30tpl_metaheaders(); 31echo tpl_favicon(array('favicon', 'mobile')), ' 32 </head> 33 <body> 34 <div class="dokuwiki"> 35 <div id="wrapper">'; 36 37html_msgarea(); 38 39// print the upper navigation with translation and login buttons 40echo '<div id="metanavigation">'; 41tpl_link(wl(),'HOME','name="dokuwiki__top" id="dokuwiki__top"'); 42tpl_link('https://www.kit.edu/impressum.php', tpl_getLang('imprint')); 43tpl_link('https://www.kit.edu/', 'KIT'); 44if ($translation) { 45 if(!$_SERVER['REMOTE_USER']) $conf['plugin']['translation']['checkage'] = 0; 46 echo $translation->showTranslations(); 47 if(null != tpl_getConf("institute_".$conf['lang'])) $conf['title'] = tpl_getConf("institute_".$conf['lang']); 48} 49// various user buttons 50tpl_button('admin'); 51if($_SERVER['REMOTE_USER']) tpl_button('profile'); 52if($ACT != 'login' && $ACT != 'logout' && $_SERVER['REMOTE_USER'] || tpl_getConf("showlogin")) tpl_button('login'); 53 54 55echo ' 56 </div> 57 <div id="head"> 58 <div id="logo"> 59 <a href="https://www.kit.edu" title="'.tpl_getLang('kitlogo').'"><img src="'.DOKU_URL.'/lib/tpl/dokukit/images/logo_'.$conf['lang'].'_163.jpg" alt="'.tpl_getLang('kitlogo').'"></a> 60 </div> 61 <div id="head-image" > 62 <div id="head-text" class="big_font">'; 63 64 $title = $conf['title']; 65 $short_institute = tpl_getConf('shortnstitute'); 66 if ($short_institute) { 67 $title .= ' ('.$short_institute.')'; 68 } 69 70tpl_link(wl(), $title, 'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"'); 71 72echo ' 73 </div> 74 <div id="head-text-corner"> </div> 75 </div> 76 </div> 77 78 <div id="toggle_space" class="spacer"> 79 <span style="display:none;" class="big_font"> show/hide Menu </a> 80 </div> 81 '; 82 83// send output to browser 84tpl_flush(); 85 86// print content with sidebars on most locations 87if( 88 $ACT != 'diff' && 89 $ACT != 'edit' && 90 $ACT != 'preview' && 91 $ACT != 'admin' && 92 $ACT != 'login' && 93 $ACT != 'logout' && 94 $ACT != 'profile' && 95 $ACT != 'revisions' 96 && $ACT != 'media' 97) { 98 echo ' 99 <div id="container"> 100 <div id="left-row"> 101 <div id="menu-box">'; 102 103 if(tpl_getConf('showsearch')) { 104 echo '<div id="suchen">'; 105 tpl_searchform(); 106 echo '</div>'; 107 } 108 _tpl_sidebar(); 109 echo '</div></div>'; 110 _tpl_infobox(); 111 112 if($_SERVER['REMOTE_USER']){ 113 echo '<div class="site_tools">'; 114 tpl_button('subscribe'); 115 tpl_button('history'); 116 tpl_button('revert'); 117 if($ACT != 'login' && $ACT != 'logout'){ 118 tpl_button('media'); 119 tpl_button('edit'); 120 } 121 echo '</div>'; 122 } 123 124 echo ' 125 <div id="middle-row"> 126 <div id="content">'; 127 tpl_content(); 128 129// print content without sidebars 130} else { 131 echo ' 132 <div id="container" style="background-color: #fff;"> 133 <div id="middle-row" style="margin-left:0; width: 960px;float:none;"> 134 <div id="content">'; 135 tpl_content(); 136} 137 138echo '</div></div>'; 139tpl_flush(); 140 141echo ' 142 <div class="clear"><!-- --></div> 143 <div id="footer-container"> 144 <div class="spacer"><!-- --></div> 145 <div id="footer"> 146 <div id="footer-corner"><!-- --></div> 147 <div id="footer-text"> 148 <div id="footer-content"> 149 <a href="#top" class="footer-right"><img src="'.DOKU_URL.'/lib/tpl/dokukit/images/totop.png" style="margin-top:6px" title="Nach oben" /></a> 150 </div> 151 </div> 152 </div> 153 <div id="owner"> 154 <span id="owner-text" style="float:right; margin-right:31px">'; 155 156if($ACT != 'diff' && $ACT != 'edit' && $ACT != 'preview' && $ACT != 'admin' && $ACT != 'login' && $ACT != 'logout' && $ACT != 'profile' && $ACT != 'revisions') _tpl_pageinfo(); 157 158echo ' 159 </span> 160 <span id="owner-text">'.tpl_getLang('kitfooter').'</span> 161 </div>'; 162 163 164/* provide DokuWiki housekeeping, required in all templates */ 165if($_SERVER['REMOTE_USER']) tpl_indexerWebBug(); 166 167echo ' 168 </div> 169 </div> 170 </div> 171 </body> 172 </html>'; 173 174?> 175