$parts */ public function display_user_block(Page $page, User $user, array $parts): void { $h_name = html_escape($user->name); $html = " | "; foreach ($parts as $part) { $html .= "{$part["name"]} | "; } $page->add_block(new Block("Logged in as $h_name", $html, "head", 90)); } public function display_login_block(Page $page): void { global $config; $html = "
Name
Password
"; if ($config->get_bool("login_signup_enabled")) { $html .= "Create Account"; } $page->add_block(new Block("Login", $html, "head", 90)); } }