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)); } public function display_user_links(Page $page, User $user, $parts) { // no block in this theme } public function display_login_block(Page $page) { // no block in this theme } public function display_user_block(Page $page, User $user, $parts) { $html = ""; $blocked = array("Pools", "Pool Changes", "Alias Editor", "My Profile"); foreach($parts as $part) { if(in_array($part["name"], $blocked)) continue; $html .= "$tac
";} $html .= " "; $page->set_title("Create Account"); $page->set_heading("Create Account"); $page->disable_left(); $page->add_block(new Block("Signup", $html)); } /** * @param Page $page * @param array $uploads * @param array $comments */ public function display_ip_list(Page $page, $uploads, $comments) { $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) |