Update deprecated template syntax
This commit is contained in:
parent
567962c947
commit
9f45271b18
|
@ -51,17 +51,17 @@ function loginBar($sp = null, $pdo = null) {
|
||||||
$userManager = new \pvv\admin\UserManager($pdo);
|
$userManager = new \pvv\admin\UserManager($pdo);
|
||||||
$isAdmin = $userManager->isAdmin($uname);
|
$isAdmin = $userManager->isAdmin($uname);
|
||||||
}
|
}
|
||||||
$result .= "\t<a id=\"login\" href=\"#usermenu\" aria-hidden=\"true\">${svg}" . htmlspecialchars($uname) . "</a>\n";
|
$result .= "\t<a id=\"login\" href=\"#usermenu\" aria-hidden=\"true\">{$svg}" . htmlspecialchars($uname) . "</a>\n";
|
||||||
|
|
||||||
$result .= "\n\t<ul id=\"usermenu\">\n";
|
$result .= "\n\t<ul id=\"usermenu\">\n";
|
||||||
$result .= "\n\t\t<li><a id=\"login\" href=\"#\">${svg}" . htmlspecialchars($uname) . "</a></li>\n";
|
$result .= "\n\t\t<li><a id=\"login\" href=\"#\">{$svg}" . htmlspecialchars($uname) . "</a></li>\n";
|
||||||
if ($isAdmin) {
|
if ($isAdmin) {
|
||||||
$result .= "\n\t\t<li><a href=\"/admin/\">Admin</a></li>\n";
|
$result .= "\n\t\t<li><a href=\"/admin/\">Admin</a></li>\n";
|
||||||
}
|
}
|
||||||
$result .= "\n\t\t<li><a href=\"" . htmlspecialchars($as->getLogoutURL()) . "\">Logg ut</a></li>\n";
|
$result .= "\n\t\t<li><a href=\"" . htmlspecialchars($as->getLogoutURL()) . "\">Logg ut</a></li>\n";
|
||||||
$result .= "\n\t</ul>\n";
|
$result .= "\n\t</ul>\n";
|
||||||
} else {
|
} else {
|
||||||
$result .= "\t<a id=\"login\" href=\"" . htmlspecialchars($as->getLoginURL()) . "\">${svg}Logg inn</a>\n";
|
$result .= "\t<a id=\"login\" href=\"" . htmlspecialchars($as->getLoginURL()) . "\">{$svg}Logg inn</a>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$result .= "\n\t<a href=\"#menu\" id=\"menu_toggle\" aria-hidden=\"true\"><big>☰ </big>MENU</a>\n";
|
$result .= "\n\t<a href=\"#menu\" id=\"menu_toggle\" aria-hidden=\"true\"><big>☰ </big>MENU</a>\n";
|
||||||
|
|
Loading…
Reference in New Issue