1<header id="dokuwiki__header">
2    <?php
3    /*** disable header on login or denied pages ***/
4    if(($ACT!="login") && ($ACT!="denied")){
5    ?>
6
7    <div class="dokuwiki__header__wrapper">
8        <div class="group">
9
10            <a href="<?php echo wl(); ?>" class="wikilogo">
11                <?php
12
13
14                ?>
15                <span class="logo-img"><img src=<?php echo $logo; ?> class="media" loading="lazy" alt="" width="80"></span>
16
17                <div>
18                    <?php echo $conf['title']; ?>
19                    <?php if ($conf['tagline']): ?>
20                    <div class="claim"><?php echo $conf['tagline'] ?></div>
21                    <?php endif ?>
22                </div>
23            </a>
24        </div>
25
26        <?php
27
28        tpl_searchform();
29
30        ?>
31        <nav class="tools" aria-label="<?php echo $lang['tools'] ?>">
32            <div id="open-search">
33                <strong><?php echo inlineSVG(KIWIKI_IMAGES_PATH . 'search.svg') ?></strong>
34            </div>
35            <?php if (tpl_getConf('FullScreenBtn')){?>
36            <div id="full-screen">
37                <strong><?php echo inlineSVG(KIWIKI_IMAGES_PATH . 'full_screen.svg') ?></strong>
38            </div>
39            <?php } ?>
40
41            <?php if (!tpl_getConf('ForceTheme')){?>
42            <div id="theme-mode">
43                <strong><?php echo inlineSVG(KIWIKI_IMAGES_PATH . 'theme_mode.svg') ?></strong>
44            </div>
45            <?php } ?>
46
47            <div id="dokuwiki__pagetools">
48
49                <strong><?php echo inlineSVG(KIWIKI_IMAGES_PATH . 'preferences.svg') ?></strong>
50                <ul>
51                <!-- SITE TOOLS -->
52                <li id="sitemenu">
53                <?php
54                $items = (new \dokuwiki\Menu\SiteMenu())->getItems();
55                foreach($items as $item) {
56                    echo '<a href="'.$item->getLink().'" title="'.$item->getTitle().'">'
57                .'<span class="icon">'.inlineSVG($item->getSvg()).'</span>'
58                . '<span class="a11y">'.$item->getLabel().'</span>'
59                . '</a>';
60                }
61                ?>
62                </li>
63                <!-- PAGE TOOLS -->
64                <?php echo (new \dokuwiki\Menu\KiwikiPageMenu())->getListItems('action ', false); ?>
65                </ul>
66            </div>
67
68
69            <!-- USER TOOLS -->
70            <?php if ($conf['useacl']): ?>
71            <div id="dokuwiki__usertools">
72                <strong><?php echo inlineSVG(KIWIKI_IMAGES_PATH . 'user_icon.svg') ?></strong>
73
74                <ul>
75                    <?php
76                            if (!empty($_SERVER['REMOTE_USER'])) {
77                                echo '<li class="user">';
78                                tpl_userinfo();
79                                echo '</li>';
80                            }
81                        ?>
82                    <?php echo (new \dokuwiki\Menu\UserMenu())->getListItems('action ', false); ?>
83                </ul>
84            </div>
85            <?php endif ?>
86        </nav>
87    </div>
88    <?php
89    html_msgarea();
90
91} ?>
92</header><!-- /header -->
93