Remove kalender and aktiviteter from navbar, add Hendelser. Change webmail to /mail
Finally
This commit is contained in:
parent
6c7241a2ac
commit
f5c088fdc1
@ -3,18 +3,20 @@ function navbar($depth, $active = NULL) {
|
||||
$result = "\n\t<ul id=\"menu\">\n";
|
||||
$menuItems = [
|
||||
'Hjem' => '',
|
||||
'Kalender' => 'kalender',
|
||||
'Aktiviteter' => 'aktiviteter',
|
||||
'Hendelser' => 'hendelser',
|
||||
//'Kalender' => 'kalender',
|
||||
//'Aktiviteter' => 'aktiviteter',
|
||||
'Prosjekter' => 'prosjekt',
|
||||
'Kontakt' => 'kontakt',
|
||||
'Webmail' => 'https://webmail.pvv.ntnu.no/',
|
||||
'Webmail' => 'mail',
|
||||
//'Webmail' => 'https://webmail.pvv.ntnu.no/',
|
||||
'Wiki' => 'pvv',
|
||||
];
|
||||
foreach($menuItems as $caption => $link) {
|
||||
$isActive = $active === $link;
|
||||
if ($caption !== 'Webmail') {
|
||||
//if ($caption !== 'Webmail') {
|
||||
$link = rtrim(str_repeat('../', $depth) . $link, '/') . '/';
|
||||
}
|
||||
//}
|
||||
if ($isActive) $link = '#';
|
||||
$result .= "\t\t<li" . ($isActive ? ' class="active"' : '') . '>'
|
||||
. '<a href="' . $link . '">'
|
||||
|
@ -34,6 +34,7 @@ nav {
|
||||
height: 3em;
|
||||
display: table;
|
||||
white-space: nowrap;
|
||||
border: #024 0.1em solid;
|
||||
}
|
||||
nav #menu, nav #login {
|
||||
display: table-cell;
|
||||
@ -64,6 +65,7 @@ nav #menu_toggle {
|
||||
nav li, nav #menu_toggle, nav #login {
|
||||
line-height: 3em;
|
||||
height: 3em;
|
||||
border-bottom: 2px solid #024;
|
||||
}
|
||||
nav a {
|
||||
display: inline-block;
|
||||
|
Loading…
Reference in New Issue
Block a user