Skip to content

Commit

Permalink
inherit signup page from default on lite theme
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Mar 25, 2020
1 parent 0094d5c commit 25248c0
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions themes/lite/user.theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,35 +53,8 @@ public function display_user_block(Page $page, User $user, $parts)

public function display_signup_page(Page $page)
{
global $config;
$tac = $config->get_string("login_tac", "");

$tfe = new TextFormattingEvent($tac);
send_event($tfe);
$tac = $tfe->formatted;

if (empty($tac)) {
$html = "";
} else {
$html = "<p>$tac</p>";
}

$html .= "
<form action='".make_link("user_admin/create")."' method='POST'>
<table style='width: 300px;'>
<tr><td>Name</td><td><input type='text' name='name'></td></tr>
<tr><td>Password</td><td><input type='password' name='pass1'></td></tr>
<tr><td>Repeat Password</td><td><input type='password' name='pass2'></td></tr>
<tr><td>Email (Optional)</td><td><input type='text' name='email'></td></tr>
<tr><td colspan='2'><input type='Submit' value='Create Account'></td></tr>
</table>
</form>
";

$page->set_title("Create Account");
$page->set_heading("Create Account");
$page->disable_left();
$page->add_block(new Block("Signup", $html));
parent::display_signup_page($page);
}

public function display_ip_list(Page $page, array $uploads, array $comments, array $events)
Expand Down

0 comments on commit 25248c0

Please sign in to comment.