1<?php
2
3    global $conf;
4    global $_SERVER;
5    $showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER['REMOTE_USER'] );
6
7?>
8<div id="header">
9</div>
10<div id="top">
11    <?php
12        tpl_include_page(tpl_getConf('menuID'));
13    ?>
14</div>
15<div id="searchform"><?php tpl_searchform() ?></div>
16<!-- ********** HEADER ********** -->
17<div id="aranheader"><div id="dokuwiki__header">
18    <div class="pad">
19
20    <div class="headings">
21        <ul class="a11y skip">
22            <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
23        </ul>
24        <div class="clearer"></div>
25    </div>
26
27    <div class="tools">
28        <?php if ($conf['useacl'] && $showTools): ?>
29        <!-- USER TOOLS -->
30        <div id="dokuwiki__usertools">
31            <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
32            <ul>
33                <?php /* the optional second parameter of tpl_action() switches between a link and a button,
34                                     e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
35                if ($_SERVER['REMOTE_USER']) {
36                echo '<li class="user">';
37                tpl_userinfo(); /* 'Logged in as ...' */
38                echo '</li>';
39                }
40                tpl_action('recent', 1, 'li');
41                tpl_action('media', 1, 'li');
42                tpl_action('index', 1, 'li');
43                tpl_action('admin', 1, 'li');
44                _tpl_action('userpage', 1, 'li');
45                tpl_action('profile', 1, 'li');
46                tpl_action('register', 1, 'li'); /* DW versions < 2011-02-20 need to use _tpl_action('register', 1, 'li') */
47                tpl_action('login', 1, 'li');
48                ?>
49            </ul>
50        </div>
51
52        <?php endif ?>
53
54    </div>
55
56    <!-- BREADCRUMBS -->
57    <?php if($conf['breadcrumbs']){ ?>
58    <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
59    <?php } ?>
60    <?php if($conf['youarehere']){ ?>
61    <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
62    <?php } ?>
63
64    <div class="clearer"></div>
65    <hr class="a11y" />
66</div></div></div><!-- /header -->