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-left.png',':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="" /> ',
29                ''
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            </div>
43        <?php endif ?>
44
45        <!-- SITE TOOLS -->
46        <div id="dokuwiki__sitetools">
47            <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3>
48            <?php tpl_searchform(); ?>
49            <div class="mobileTools">
50                <?php tpl_actiondropdown($lang['tools']); ?>
51            </div>
52        </div>
53
54    </div>
55
56    <!-- BREADCRUMBS -->
57    <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?>
58        <div class="breadcrumbs">
59            <?php if($conf['youarehere']): ?>
60                <div class="youarehere"><?php tpl_youarehere() ?></div>
61            <?php endif ?>
62            <?php if($conf['breadcrumbs']): ?>
63                <div class="trace"><?php tpl_breadcrumbs() ?></div>
64            <?php endif ?>
65        </div>
66    <?php endif ?>
67
68    <?php html_msgarea() ?>
69
70</div></div><!-- /header -->
71