From fe1e012db3a5b8570c8e8c0e998c9e58b7e05b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20A=CC=8Ane?= Date: Tue, 13 Feb 2018 16:24:16 +0100 Subject: [PATCH] Add login icon --- inc/navbar.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; }