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