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