name);
$lines = [];
foreach ($parts as $part) {
$lines[] = "{$part["name"]}";
}
if (count($lines) < 6) {
$html = implode("\n
", $lines);
} else {
$html = implode(" | \n", $lines);
}
$page->add_block(new Block("Logged in as $h_name", $html, "head", 90, "UserBlockhead"));
$page->add_block(new Block("Logged in as $h_name", $html, "left", 15, "UserBlockleft"));
}
public function display_login_block(Page $page)
{
global $config;
$html = "