Capitalize menu items

This commit is contained in:
Yorin Anne De Jong 2018-02-13 15:23:38 +01:00
parent 2d850c719d
commit 4efe0aaefa
1 changed files with 8 additions and 8 deletions

View File

@ -1,14 +1,14 @@
<?php <?php
function navbar($depth, $active = NULL) { function navbar($depth, $active = NULL) {
$result = "\n\t<ul>\n"; $result = "\n\t<ul id=\"menu\">\n";
$menuItems = [ $menuItems = [
'hjem' => '', 'Hjem' => '',
'kalender' => 'kalender', 'Kalender' => 'kalender',
'aktiviteter' => 'aktiviteter', 'Aktiviteter' => 'aktiviteter',
'prosjekter' => 'prosjekt', 'Prosjekter' => 'prosjekt',
'kontakt' => 'kontakt', 'Kontakt' => 'kontakt',
'webmail' => 'https://webmail.pvv.ntnu.no/', 'Webmail' => 'https://webmail.pvv.ntnu.no/',
'wiki' => 'pvv', 'Wiki' => 'pvv',
]; ];
foreach($menuItems as $caption => $link) { foreach($menuItems as $caption => $link) {
$isActive = $active === $link; $isActive = $active === $link;