-
Notifications
You must be signed in to change notification settings - Fork 2
/
tpl_header.php
executable file
·95 lines (92 loc) · 3.21 KB
/
tpl_header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
/**
* Template header, included in the main and detail files
*/
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
?>
<!-- ********** HEADER ********** -->
<header class="header">
<div class="header-content">
<hgroup class="header-heading fl">
<h1 class="header-title prs">
<?php
// display logo and wiki title in a link to the home page
tpl_link(
wl(),
'<span>'.$conf['title'].'</span>',
'accesskey="h" title="[H]"'
);
?>
</h1>
<?php if ($conf['tagline']): ?>
<h5 class="header-subTitle tsi"><?php echo $conf['tagline']; ?></h5>
<?php endif ?>
</hgroup>
<div class="header-nav fr pc-only">
<div class="header-navButton--menuTools has-subList">
<a class="icon-cube"></a>
<ul>
<?php
tpl_action('edit', 1, 'li');
tpl_action('revert', 1, 'li');
tpl_action('backlink', 1, 'li');
tpl_action('recent', 1, 'li');
tpl_action('media', 1, 'li');
tpl_action('index', 1, 'li');
?>
</ul>
</div>
<div class="header-navButton--userTools has-subList">
<a class="icon-user"></a>
<ul>
<?php
if (!empty($_SERVER['REMOTE_USER'])) {
echo '<li class="user">';
tpl_userinfo(); /* 'Logged in as ...' */
echo '</li>';
}
tpl_action('admin', 1, 'li');
tpl_action('profile', 1, 'li');
tpl_action('register', 1, 'li');
tpl_action('login', 1, 'li');
?>
</ul>
</div>
<div class="header-navButton--searchBar">
<?php tpl_searchform(); ?>
<a class="icon-search"></a>
</div>
</div>
<div class="header-nav fr not-pc">
<div class="header-navButton">
<a class="icon-cube"></a>
</div>
</div>
</div>
</header>
<div class="nav-for-device">
<div class="header-navButton--searchBar">
<?php tpl_searchform(); ?>
<a class="icon-search"></a>
</div>
<ul>
<?php
tpl_action('edit', 1, 'li');
tpl_action('backlink', 1, 'li');
tpl_action('recent', 1, 'li');
tpl_action('index', 1, 'li');
?>
<?php
if (!empty($_SERVER['REMOTE_USER'])) {
echo '<li class="user">';
tpl_userinfo(); /* 'Logged in as ...' */
echo '</li>';
}
tpl_action('admin', 1, 'li');
tpl_action('profile', 1, 'li');
tpl_action('register', 1, 'li');
tpl_action('login', 1, 'li');
?>
</ul>
</div>