diff --git a/inc/navbar.php b/inc/navbar.php index f460880..c7486b6 100644 --- a/inc/navbar.php +++ b/inc/navbar.php @@ -29,14 +29,20 @@ function loginBar($sp = 'default-sp') { require_once(__DIR__ . '/../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); $as = new SimpleSAML_Auth_Simple($sp); + $svg = ' + + + +'; + $attr = $as->getAttributes(); if($attr) { $uname = $attr['uid'][0]; $result .= "\t

logget inn som: " . htmlspecialchars($uname) . "

\n"; } else { - $result .= "\tgetLoginURL()) . "\">logg inn\n"; + $result .= "\tgetLoginURL()) . "\">${svg}Logg inn\n"; } - $result .= "\tMENU ☰\n"; + $result .= "\t☰ MENU\n"; return $result; }