name); $lines = []; foreach ($parts as $part) { if ($part["name"] == "User Options") { continue; } $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")); } // Override to display login block in the head and in the left column // (with css media queries deciding which one is visible) public function display_login_block(Page $page) { $page->add_block(new Block("Login", $this->create_login_block(), "head", 90)); $page->add_block(new Block("Login", $this->create_login_block(), "left", 15)); } }