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<header id="dokuwiki__header"><div class="pad group">
12
13
14    <?php tpl_includeFile('header.html') ?>
15
16    <div class="headings group">
17        <ul class="a11y skip">
18            <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li>
19        </ul>
20
21        <h1 class="logo"><?php
22            // get logo either out of the template images folder or data/media folder
23            $logoSize = array();
24            $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false, $logoSize);
25
26            // display logo and wiki title in a link to the home page
27            // @20cones-template@ : Title is optional in this template
28            if (tpl_getConf("20cones_showdokutitle"))
29                tpl_link(
30                    wl(),
31                    '<img src="'.$logo.'" '.$logoSize[3].' alt="" /> <span>'.$conf['title'].'</span>',
32                    'accesskey="h" title="' . tpl_getLang('home') . ' [h]"'
33                );
34            else
35                tpl_link(
36                    wl(),
37                    '<img src="'.$logo.'" '.$logoSize[3].' alt="" />',
38                    'accesskey="h" title="' . tpl_getLang('home') . ' [h]"'
39            );
40        ?></h1>
41        <?php if ($conf['tagline']): ?>
42            <p class="claim"><?php echo $conf['tagline']; ?></p>
43        <?php endif ?>
44    </div>
45
46    <div class="tools group">
47
48        <!-- USER TOOLS -->
49        <?php if ($conf['useacl']): ?>
50            <div id="dokuwiki__usertools">
51                <h3 class="a11y"><?php echo $lang['user_tools']; ?></h3>
52                <ul>
53                    <?php
54                        if (!empty($_SERVER['REMOTE_USER'])) {
55                            echo '<li class="user">';
56                            tpl_userinfo(); /* 'Logged in as ...' */
57                            echo '</li>';
58                        }
59                        echo (new \dokuwiki\Menu\UserMenu())->getListItems('action ');
60                    ?>
61                </ul>
62            </div>
63        <?php endif ?>
64
65        <!-- SITE TOOLS -->
66        <div id="dokuwiki__sitetools">
67            <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3>
68            <?php tpl_searchform(); ?>
69            <div class="mobileTools">
70                <?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?>
71            </div>
72            <!-- @20cones-template@ : Wrapper for plugin translation -->
73            <div id="plugin_translation_wrapper">
74                <ul>
75                    <?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false); ?>
76                </ul>
77                <?php
78                    $translation = plugin_load('helper','translation');
79                    if ($translation) echo $translation->showTranslations();
80                ?>
81             </div>
82
83        </div>
84
85
86
87
88
89
90    </div>
91
92    <!-- TOPBAR - @20cones-template@ -->
93    <div id="topbar">
94      <?php if (tpl_getConf("20cones_htmltopbar"))
95               tpl_includeFile('topbar.html');
96            else
97               tpl_includeFile('topbar.php');
98               ?>
99    </div>
100
101    <!-- BREADCRUMBS -->
102    <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?>
103        <div class="breadcrumbs">
104            <?php if($conf['youarehere']): ?>
105                <div class="youarehere"><?php tpl_youarehere() ?></div>
106            <?php endif ?>
107            <?php if($conf['breadcrumbs']): ?>
108                <div class="trace"><?php tpl_breadcrumbs() ?></div>
109            <?php endif ?>
110        </div>
111    <?php endif ?>
112
113    <hr class="a11y" />
114</div></header><!-- /header -->
115