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<!-- ********** HEADER ********** -->
10<div id="dokuwiki__header">
11    <div class="pad group">
12        <!-- logo -->
13        <div class="headings group">
14            <h1><?php
15                // get logo either out of the template images folder or data/media folder
16                $logoSize = array();
17                $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false, $logoSize);
18
19                // display logo and wiki title in a link to the home page
20                tpl_link(
21                    wl(),
22                    '<img src="'.$logo.'" height="30" width="30" alt="" /> <span>'.$conf['title'].'</span>',
23                    'accesskey="h" title="[H]"'
24                );
25            ?></h1>
26            <?php if ($conf['tagline']): ?>
27                <p class="claim"><?php echo $conf['tagline']; ?></p>
28            <?php endif ?>
29        </div>
30        <!-- tools group -->
31        <div class="tools group">
32            <?php if ($conf['useacl']): ?>
33               <!--  <li class="pure-menu-item pure-menu-has-children pure-menu-allow-hover"> -->
34               <li class="menu">
35                    <a href="#" class="holder">Manage</a>
36                    <ul>
37                        <?php
38                            // if (!empty($_SERVER['REMOTE_USER'])) {
39                            //     echo '<li>';
40                            //     tpl_userinfo(); /* 'Logged in as ...' */
41                            //     echo '</li>';
42                            // }
43                            tpl_action('admin', 1, 'li');
44                            tpl_action('profile', 1, 'li');
45                            tpl_action('register', 1, 'li');
46                            tpl_action('login', 1, 'li');
47                        ?>
48                      <!--   <li class="pure-menu-item"><a href="#" class="pure-menu-link">Email</a></li>
49                        <li class="pure-menu-item"><a href="#" class="pure-menu-link">Twitter</a></li>
50                        <li class="pure-menu-item"><a href="#" class="pure-menu-link">Tumblr Blog</a></li> -->
51                    </ul>
52                </li>
53            <?php endif ?>
54        </div>
55
56        <!-- search tools -->
57            <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3>
58            <?php tpl_searchform(); ?>
59            <div class="mobileTools">
60                <?php tpl_actiondropdown($lang['tools']); ?>
61            </div>
62        <!-- links -->
63        <div class="links group">
64            <ul>
65                <?php
66                    tpl_action('recent', 1, 'li');
67                    tpl_action('media', 1, 'li');
68                    tpl_action('index', 1, 'li');
69                ?>
70            </ul>
71        </div>
72    </div>
73    <!-- BREADCRUMBS -->
74    <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?>
75        <div class="breadcrumbs">
76            <?php if($conf['breadcrumbs']): ?>
77                <div class="trace"><?php tpl_breadcrumbs() ?>
78                <?php
79                    if (!empty($_SERVER['REMOTE_USER'])) {
80                        echo '<span class="info">';
81                        tpl_userinfo(); /* 'Logged in as ...' */
82                        echo '</span>';
83                    }
84                ?>
85                </div>
86            <?php endif ?>
87            <?php if($conf['youarehere']): ?>
88                <div class="youarehere"><?php tpl_youarehere() ?></div>
89            <?php endif ?>
90        </div>
91
92    <?php endif ?>
93    <?php html_msgarea() ?>
94    <hr class="a11y" />
95</div>
96<!-- /header -->
97