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 tpl_toolsevent('usertools', array( 50 tpl_action('admin', true, 'li', true), 51 tpl_action('profile', true, 'li', true), 52 tpl_action('register', true, 'li', true), 53 tpl_action('login', true, 'li', true) 54 )); 55 ?> 56 </ul> 57 </div> 58 <?php endif ?> 59 60 <!-- SITE TOOLS --> 61 <div id="dokuwiki__sitetools"> 62 <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3> 63 <?php tpl_searchform(); ?> 64 <div class="mobileTools"> 65 <?php tpl_actiondropdown($lang['tools']); ?> 66 </div> 67 <ul> 68 <?php 69 tpl_toolsevent('sitetools', array( 70 tpl_action('recent', true, 'li', true), 71 tpl_action('media', true, 'li', true), 72 tpl_action('index', true, 'li', true) 73 )); 74 ?> 75 </ul> 76 </div> 77 78 </div> 79 80 <!-- BREADCRUMBS --> 81 <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?> 82 <div class="breadcrumbs"> 83 <?php if($conf['youarehere']): ?> 84 <div class="youarehere"><?php tpl_youarehere() ?></div> 85 <?php endif ?> 86 <?php if($conf['breadcrumbs']): ?> 87 <div class="trace"><?php tpl_breadcrumbs() ?></div> 88 <?php endif ?> 89 </div> 90 <?php endif ?> 91 92 93 94 <hr class="a11y" /> 95</div></div><!-- /header --> 96