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
21        <?php if ($conf['tagline']): ?>
22            <p class="claim"><?php echo $conf['tagline']; ?></p>
23        <?php endif ?>
24    </div>
25
26    <div class="tools group">
27        <!-- USER TOOLS -->
28        <?php if ($conf['useacl']): ?>
29            <div id="dokuwiki__usertools">
30                <h3 class="a11y"><?php echo $lang['user_tools']; ?></h3>
31                <ul>
32                    <?php
33                        if (!empty($_SERVER['REMOTE_USER'])) {
34                            echo '<li class="user">';
35                            tpl_userinfo(); /* 'Logged in as ...' */
36                            echo '</li>';
37                        }
38                        echo (new \dokuwiki\Menu\UserMenu())->getListItems('action ');
39                    ?>
40                </ul>
41            </div>
42        <?php endif ?>
43
44        <!-- SITE TOOLS -->
45        <div id="dokuwiki__sitetools">
46            <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3>
47            <?php tpl_searchform(); ?>
48            <div class="mobileTools">
49                <?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?>
50            </div>
51            <ul>
52                <?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false); ?>
53            </ul>
54        </div>
55
56    </div>
57
58    <!-- BREADCRUMBS -->
59    <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?>
60        <div class="breadcrumbs">
61            <?php if($conf['youarehere']): ?>
62                <div class="youarehere"><?php tpl_youarehere() ?></div>
63            <?php endif ?>
64            <?php if($conf['breadcrumbs']): ?>
65                <div class="trace"><?php tpl_breadcrumbs() ?></div>
66            <?php endif ?>
67        </div>
68    <?php endif ?>
69
70
71
72    <hr class="a11y" />
73</div></div><!-- /header -->
74