danbooru theme updates for theme engine 2

git-svn-id: file:///home/shish/svn/shimmie2/trunk@225 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-07-05 20:17:29 +00:00
parent bf579ae048
commit 46d0150e61
4 changed files with 29 additions and 4 deletions

View file

@ -59,12 +59,17 @@ class Layout {
$left_block_html = ""; $left_block_html = "";
$main_block_html = ""; $main_block_html = "";
$firstmain = true;
foreach($page->blocks as $block) { foreach($page->blocks as $block) {
switch($block->section) { switch($block->section) {
case "left": case "left":
$left_block_html .= $this->block_to_html($block, true); $left_block_html .= $this->block_to_html($block, true);
break; break;
case "main": case "main":
if($firstmain) {
$firstmain = false;
$block->header = " ";
}
$main_block_html .= $this->block_to_html($block, false); $main_block_html .= $this->block_to_html($block, false);
break; break;
default: default:
@ -106,7 +111,7 @@ class Layout {
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html> <html>
<head> <head>
<title>{$this->title}</title> <title>{$page->title}</title>
<link rel="stylesheet" href="$data_href/themes/$theme_name/style.css" type="text/css"> <link rel="stylesheet" href="$data_href/themes/$theme_name/style.css" type="text/css">
$header_html $header_html
<script src='$data_href/themes/$theme_name/sidebar.js' type='text/javascript'></script> <script src='$data_href/themes/$theme_name/sidebar.js' type='text/javascript'></script>

View file

@ -0,0 +1,6 @@
<?php
class Page extends GenericPage {
// no changes from default
}
?>

View file

@ -111,8 +111,11 @@ A:hover {text-decoration: underline;}
overflow: hidden; overflow: hidden;
} }
.more:after { .tag_count {
content: " >>>"; color: #AAA;
}
.more {
content: "More ť";
} }
@ -214,7 +217,7 @@ ul.flat-list li {
text-align:left; text-align:left;
list-style-type: none; list-style-type: none;
font-weight: bold; font-weight: bold;
margin: 0 1em 0 0; margin: 0 1.3em 0 0;
} }
ul.flat-list li a { ul.flat-list li a {

View file

@ -0,0 +1,11 @@
<?php
class Themelet {
public function display_error($page, $title, $message) {
$page->set_title($title);
$page->set_heading($title);
$page->add_side_block(new NavBlock());
$page->add_main_block(new Block("Error", $message));
}
}
?>