|
1
|
<header> |
|
2
|
<div class="status leftoftitle"><th1> |
|
3
|
if {[info exists login]} { |
|
4
|
set logintext "<a href='$home/login'>$login</a>\n" |
|
5
|
} else { |
|
6
|
set logintext "<a href='$home/login'>Login</a>\n" |
|
7
|
} |
|
8
|
html $logintext |
|
9
|
</th1></div> |
|
10
|
<div class="title">$<title></div> |
|
11
|
<div class="status"><nobr><th1> |
|
12
|
html $logintext |
|
13
|
</th1></nobr></div> |
|
14
|
</header> |
|
15
|
<nav class="mainmenu" title="Main Menu"> |
|
16
|
<th1> |
|
17
|
html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" |
|
18
|
builtin_request_js hbmenu.js |
|
19
|
foreach {name url expr class} $mainmenu { |
|
20
|
if {![capexpr $expr]} continue |
|
21
|
if {[string match /* $url]} { |
|
22
|
if {[string match $url\[/?#\]* /$current_page/]} { |
|
23
|
set class "active $class" |
|
24
|
} |
|
25
|
set url $home$url |
|
26
|
} |
|
27
|
html "<a href='$url' class='$class'>$name</a>\n" |
|
28
|
} |
|
29
|
</th1> |
|
30
|
</nav> |
|
31
|
<nav id="hbdrop" class='hbdrop' title="sitemap"></nav> |
|
32
|
|