set_title("Login"); $page->set_heading("Login"); $page->disable_left(); $html = "
"; if ($config->get_bool("login_signup_enabled")) { $html .= "Create Account"; } $page->add_block(new Block("Login", $html, "main", 90)); } /** * @param array $parts */ public function display_user_links(Page $page, User $user, array $parts): void { // no block in this theme } public function display_login_block(Page $page): void { // no block in this theme } /** * @param array $parts */ public function display_user_block(Page $page, User $user, array $parts): void { $html = ""; $blocked = ["Pools", "Pool Changes", "Alias Editor", "My Profile"]; foreach ($parts as $part) { if (in_array($part["name"], $blocked)) { continue; } $html .= "{$part["name"]}"; } $b = new Block("User Links", $html, "user", 90); $b->is_content = false; $page->add_block($b); } public function display_signup_page(Page $page): void { $page->disable_left(); parent::display_signup_page($page); } /** * @param array $uploads * @param array $comments * @param array $events */ public function display_ip_list(Page $page, array $uploads, array $comments, array $events): void { $html = ""; $html .= ""; $html .= "
Uploaded from: "; foreach ($uploads as $ip => $count) { $html .= "
$ip ($count)"; } $html .= "
Commented from:"; foreach ($comments as $ip => $count) { $html .= "
$ip ($count)"; } $html .= "
(Most recent at top)
"; $page->add_block(new Block("IPs", $html)); } /** * @param string[] $stats */ public function display_user_page(User $duser, array $stats): void { global $page; $page->disable_left(); parent::display_user_page($duser, $stats); } }