diff --git a/themes/danbooru/layout.class.php b/themes/danbooru/layout.class.php
index 75fc5edf..af2aa468 100644
--- a/themes/danbooru/layout.class.php
+++ b/themes/danbooru/layout.class.php
@@ -44,7 +44,7 @@ Tips
class Layout {
public function display_page($page) {
- global $config;
+ global $config, $user;
$theme_name = $config->get_string('theme');
$base_href = $config->get_string('base_href');
@@ -98,7 +98,12 @@ class Layout {
// bzchan: CUSTOM LINKS are prepared here, change these to whatever you like
$custom_links = "";
- $custom_links .= "
My Account";
+ if($user->is_anonymous()) {
+ $custom_links .= "My Account";
+ }
+ else {
+ $custom_links .= "My Account";
+ }
$custom_links .= "Posts";
$custom_links .= "Comments";
$custom_links .= "Tags";
diff --git a/themes/danbooru/style.css b/themes/danbooru/style.css
index 0cbb2a79..1b9412a7 100644
--- a/themes/danbooru/style.css
+++ b/themes/danbooru/style.css
@@ -66,15 +66,18 @@ font-size:1.4em;
h5 {
font-size:1.2em;
}
+table.zebra {border-collapse: collapse;border-spacing: 0;}
+table.zebra > tbody > tr:hover {background: #FFD;}
+table.zebra th {color: #171BB3; padding-right: 8px;}
+table.zebra td {border: 1px dotted #EEE;margin: 0;padding-right: 8px;}
+table.zebra th {margin: 0;text-align: left;}
thead {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
-background:#DEDEDE none repeat scroll 0 0;
font-weight:bold;
}
td {
-text-align:center;
vertical-align:top;
}
#subtitle {
diff --git a/themes/danbooru/user.theme.php b/themes/danbooru/user.theme.php
index 0f149704..d1bd459a 100644
--- a/themes/danbooru/user.theme.php
+++ b/themes/danbooru/user.theme.php
@@ -2,15 +2,36 @@
class CustomUserPageTheme extends UserPageTheme {
public function display_login_page($page) {
+ global $config;
$page->set_title("Login");
$page->set_heading("Login");
- $page->add_block(new NavBlock());
- $page->add_block(new Block("Login There",
- "There should be a login box to the left"));
+ $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, $user, $parts) {
- // $page->add_block(new Block("User Links", join("
", $parts), "left", 10));
+ // no block in this theme
+ }
+ public function display_login_block(Page $page) {
+ // no block in this theme
}
public function display_user_block($page, $user, $parts) {
@@ -49,7 +70,7 @@ class CustomUserPageTheme extends UserPageTheme {
$page->set_title("Create Account");
$page->set_heading("Create Account");
- $page->add_block(new NavBlock());
+ $page->disable_left();
$page->add_block(new Block("Signup", $html));
}