1<?php 2/** 3 * Template header, included in the main and detail files 4 * 5 * Modifed by Gero Gothe <practical@medizin-lernen.de> 6 */ 7 8// must be run from within DokuWiki 9if (!defined('DOKU_INC')) die(); 10?> 11 12<!-- ********** HEADER ********** --> 13<div id="dokuwiki__header" ><div class="pad group"> 14 15 <?php tpl_includeFile('header.html') ?> 16 17 <div class="headings group"> 18 <ul class="a11y skip"> 19 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li> 20 </ul> 21 22 <h1 class="kkh_template_title"><?php 23 // get logo either out of the template images folder or data/media folder 24 $logoSize = array(); 25 $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false, $logoSize); 26 if ($conf['tpl']['kkh']['logo_image'] != "") $logo = DOKU_URL."lib/exe/fetch.php?media=".$conf['tpl']['kkh']['logo_image']; 27 28 // display logo and wiki title in a link to the home page 29 if ($conf['tpl']['kkh']['logo link'] == '') $conf['tpl']['kkh']['logo link'] = wl(); 30 tpl_link( 31 $conf['tpl']['kkh']['logo link'], 32 '<img src="'.$logo.'" alt="" /> ', 33 'accesskey="h" title="[H]"' 34 ); 35 echo '<a href="'.wl().'"><span>'.$conf['title'].'</span></a>'; 36 ?></h1> 37 <?php if ($conf['tagline']): ?> 38 <p class="claim"><?php echo $conf['tagline']; ?></p> 39 <?php endif ?> 40 </div> 41 42 <div class="tools group"> 43 <!-- USER TOOLS --> 44 <?php if ($conf['useacl']): ?> 45 <div id="dokuwiki__usertools"> 46 <span class="a11y"><?php echo $lang['user_tools']; ?></span> 47 <span> 48 <?php 49 if (!empty($_SERVER['REMOTE_USER'])) { 50 echo '<li class="user">'; 51 tpl_userinfo(); /* 'Logged in as ...' */ 52 echo '</li>'; 53 } 54 echo (new \dokuwiki\Menu\UserMenu())->getListItems('action '); 55 56 ?> 57 58 </span> 59 </div> 60 <?php endif ?> 61 62 <!-- SITE TOOLS --> 63 <div id="dokuwiki__sitetools"> 64 <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3> 65 66 <!-- Anpassung Grünstadt --> 67 <!-- Suche-Formular entfernt und mit AddNew-Page-Zeile ersetzt --> 68 <?php 69 $list = plugin_list(); 70 if(in_array('addnewpage',$list) && $conf['tpl']['kkh']['hide search']===1) { 71 echo p_render('xhtml',p_get_instructions('{{NEWPAGE}}'),$info); 72 } elseif ($conf['tpl']['kkh']['hide search']==0) tpl_searchform(); 73 ?> 74 <!-------------------------> 75 76 <div class="mobileTools"> 77 <?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?> 78 </div> 79 <ul> 80 <?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false); ?> 81 </ul> 82 </div> 83 </div> 84 85 86 87 88 89 <hr class="a11y" /> 90</div></div><!-- /header --> 91