1<?php 2/** 3 * Template header, included in the main and detail files 4 */ 5 6// must be run from within DokuWiki 7if (!defined('DOKU_INC')) die(); 8?> 9 10<!-- ********** HEADER ********** --> 11<div id="dokuwiki__header"><div class="pad group"> 12 13 <?php tpl_includeFile('header.html') ?> 14 15 <div class="headings group"> 16 <ul class="a11y skip"> 17 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li> 18 </ul> 19 20 <h1><?php 21 // get logo either out of the template images folder or data/media folder 22 $logoSize = array(); 23 $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false, $logoSize); 24 25 // display logo and wiki title in a link to the home page 26 tpl_link( 27 wl(), 28 '<img src="'.$logo.'" '.$logoSize[3].' alt="" /> <span>'.$conf['title'].'</span>', 29 'accesskey="h" title="[H]"' 30 ); 31 ?></h1> 32 <?php if ($conf['tagline']): ?> 33 <p class="claim"><?php echo $conf['tagline']; ?></p> 34 <?php endif ?> 35 </div> 36 37 <div class="tools group"> 38 <!-- USER TOOLS --> 39 <?php if ($conf['useacl']): ?> 40 <div id="dokuwiki__usertools"> 41 <h3 class="a11y"><?php echo $lang['user_tools']; ?></h3> 42 <ul> 43 <?php 44 if (!empty($_SERVER['REMOTE_USER'])) { 45 echo '<li class="user">'; 46 tpl_userinfo(); /* 'Logged in as ...' */ 47 echo '</li>'; 48 } 49 echo (new \dokuwiki\Menu\UserMenu())->getListItems('action '); 50 ?> 51 </ul> 52 </div> 53 <?php endif ?> 54 55 <!-- SITE TOOLS --> 56 <div id="dokuwiki__sitetools"> 57 <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3> 58 <?php tpl_searchform(); ?> 59 <div class="mobileTools"> 60 <?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?> 61 </div> 62 <ul> 63 <?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false); ?> 64 </ul> 65 </div> 66 67 </div> 68 69 <!-- BREADCRUMBS --> 70 <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?> 71 <div class="breadcrumbs"> 72 <?php if($conf['youarehere']): ?> 73 <div class="youarehere"><?php tpl_youarehere() ?></div> 74 <?php endif ?> 75 <?php if($conf['breadcrumbs']): ?> 76 <div class="trace"><?php tpl_breadcrumbs() ?></div> 77 <?php endif ?> 78 </div> 79 <?php endif ?> 80 81 82 83 <hr class="a11y" /> 84</div></div><!-- /header --> 85