1<?php 2/** 3 * Template header, included in the main and detail files 4 * 5 * Taken from the DokuWiki standard template. 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><?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 27 // display logo and wiki title in a link to the home page 28 tpl_link( 29 wl(), 30 '<img src="'.$logo.'" '.$logoSize[3].' alt="" /> <span>'.$conf['title'].'</span>', 31 'accesskey="h" title="[H]"' 32 ); 33 ?></h1> 34 <?php if ($conf['tagline']): ?> 35 <p class="claim"><?php echo $conf['tagline']; ?></p> 36 <?php endif ?> 37 </div> 38 39 <div class="tools group"> 40 <!-- USER TOOLS --> 41 <?php if ($conf['useacl']): ?> 42 <div id="dokuwiki__usertools"> 43 <h3 class="a11y"><?php echo $lang['user_tools']; ?></h3> 44 <ul> 45 <?php 46 if (!empty($_SERVER['REMOTE_USER'])) { 47 echo '<li class="user">'; 48 tpl_userinfo(); /* 'Logged in as ...' */ 49 echo '</li>'; 50 } 51 echo (new \dokuwiki\Menu\UserMenu())->getListItems('action '); 52 ?> 53 </ul> 54 </div> 55 <?php endif ?> 56 57 <!-- SITE TOOLS --> 58 <div id="dokuwiki__sitetools"> 59 <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3> 60 <?php tpl_searchform(); ?> 61 <div class="mobileTools"> 62 <?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?> 63 </div> 64 <ul> 65 <?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false); ?> 66 </ul> 67 </div> 68 69 </div> 70 71 <!-- BREADCRUMBS --> 72 <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?> 73 <div class="breadcrumbs"> 74 <?php if($conf['youarehere']): ?> 75 <div class="youarehere"><?php tpl_youarehere() ?></div> 76 <?php endif ?> 77 <?php if($conf['breadcrumbs']): ?> 78 <div class="trace"><?php tpl_breadcrumbs() ?></div> 79 <?php endif ?> 80 </div> 81 <?php endif ?> 82 83 84 85 <hr class="a11y" /> 86</div></div><!-- /header --> 87