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            // @20cones-template@ : Title is optional in this template
27            if (tpl_getConf("20cones_showdokutitle"))
28              tpl_link(
29                wl(),
30                '<img src="'.$logo.'" '.$logoSize[3].' alt="" /> <span>'.$conf['title'].'</span>',
31                'accesskey="h" title="[H]"'
32            );
33            else
34              tpl_link(
35                wl(),
36                '<img src="'.$logo.'" '.$logoSize[3].' alt="" />',
37                'accesskey="h" title="[H]"'
38               );
39        ?></h1>
40        <?php if ($conf['tagline']): ?>
41            <p class="claim"><?php echo $conf['tagline']; ?></p>
42        <?php endif ?>
43    </div>
44
45    <div class="tools group">
46        <!-- USER TOOLS -->
47        <?php if ($conf['useacl']): ?>
48            <div id="dokuwiki__usertools">
49                <h3 class="a11y"><?php echo $lang['user_tools']; ?></h3>
50                <ul>
51                    <?php
52                        if (!empty($_SERVER['REMOTE_USER'])) {
53                            echo '<li class="user">';
54                            tpl_userinfo(); /* 'Logged in as ...' */
55                            echo '</li>';
56                        }
57                        tpl_action('admin', 1, 'li');
58                        tpl_action('profile', 1, 'li');
59                        tpl_action('register', 1, 'li');
60                        tpl_action('login', 1, 'li');
61                    ?>
62                </ul>
63            </div>
64        <?php endif ?>
65
66        <!-- SITE TOOLS -->
67        <div id="dokuwiki__sitetools">
68            <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3>
69            <?php tpl_searchform(); ?>
70            <div class="mobileTools">
71                <?php tpl_actiondropdown($lang['tools']); ?>
72            </div>
73
74            <!-- TRANSLATION PLUGIN - @20cones-template@ -->
75            <?php $translation = &plugin_load('helper','translation');
76                if ($translation) echo $translation->showTranslations(); ?>
77
78            <ul>
79                <?php
80                    tpl_action('recent', 1, 'li');
81                    tpl_action('media', 1, 'li');
82                    tpl_action('index', 1, 'li');
83                ?>
84            </ul>
85        </div>
86
87    </div>
88
89    <!-- TOPBAR - @20cones-template@ -->
90    <div class="topbar">
91      <?php if (tpl_getConf("20cones_htmltopbar"))
92               tpl_includeFile('topbar.html');
93            else
94               tpl_include_page(tpl_getConf("20cones_pagetopbar"),1,1);
95               ?>
96    </div>
97
98    <!-- BREADCRUMBS -->
99    <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?>
100        <div class="breadcrumbs">
101            <?php if($conf['youarehere']): ?>
102                <div class="youarehere"><?php tpl_youarehere() ?></div>
103            <?php endif ?>
104            <?php if($conf['breadcrumbs']): ?>
105                <div class="trace"><?php tpl_breadcrumbs() ?></div>
106            <?php endif ?>
107        </div>
108    <?php endif ?>
109
110    <?php html_msgarea() ?>
111
112    <hr class="a11y" />
113</div></div><!-- /header -->
114