Very first version of admin bar

This commit is contained in:
slawkens
2020-06-06 07:17:09 +02:00
parent 54dfb642b1
commit d7fc45a72d
3 changed files with 120 additions and 0 deletions

View File

@@ -357,6 +357,14 @@ if($config['backward_support']) {
$topic = $title;
}
/**
* @var OTS_Account $account_logged
*/
if ($logged && admin()) {
$content .= $twig->render('admin-bar.html.twig', [
'username' => USE_ACCOUNT_NAME ? $account_logged->getName() : $account_logged->getId()
]);
}
$title_full = (isset($title) ? $title . $config['title_separator'] : '') . $config['lua']['serverName'];
require $template_path . '/' . $template_index;