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) { global $config; $html = "
Name
Password
"; if ($config->get_bool("login_signup_enabled")) { $html .= "Create Account"; } $page->add_block(new Block("Login", $html, "head", 90)); } }