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:
parent
bf579ae048
commit
46d0150e61
4 changed files with 29 additions and 4 deletions
|
@ -59,12 +59,17 @@ class Layout {
|
|||
$left_block_html = "";
|
||||
$main_block_html = "";
|
||||
|
||||
$firstmain = true;
|
||||
foreach($page->blocks as $block) {
|
||||
switch($block->section) {
|
||||
case "left":
|
||||
$left_block_html .= $this->block_to_html($block, true);
|
||||
break;
|
||||
case "main":
|
||||
if($firstmain) {
|
||||
$firstmain = false;
|
||||
$block->header = " ";
|
||||
}
|
||||
$main_block_html .= $this->block_to_html($block, false);
|
||||
break;
|
||||
default:
|
||||
|
@ -106,7 +111,7 @@ class Layout {
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>{$this->title}</title>
|
||||
<title>{$page->title}</title>
|
||||
<link rel="stylesheet" href="$data_href/themes/$theme_name/style.css" type="text/css">
|
||||
$header_html
|
||||
<script src='$data_href/themes/$theme_name/sidebar.js' type='text/javascript'></script>
|
6
themes/danbooru/page.class.php
Normal file
6
themes/danbooru/page.class.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
class Page extends GenericPage {
|
||||
// no changes from default
|
||||
}
|
||||
?>
|
|
@ -111,8 +111,11 @@ A:hover {text-decoration: underline;}
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
.more:after {
|
||||
content: " >>>";
|
||||
.tag_count {
|
||||
color: #AAA;
|
||||
}
|
||||
.more {
|
||||
content: "More ť";
|
||||
}
|
||||
|
||||
|
||||
|
@ -214,7 +217,7 @@ ul.flat-list li {
|
|||
text-align:left;
|
||||
list-style-type: none;
|
||||
font-weight: bold;
|
||||
margin: 0 1em 0 0;
|
||||
margin: 0 1.3em 0 0;
|
||||
}
|
||||
|
||||
ul.flat-list li a {
|
||||
|
|
11
themes/danbooru/themelet.class.php
Normal file
11
themes/danbooru/themelet.class.php
Normal 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));
|
||||
}
|
||||
}
|
||||
?>
|
Reference in a new issue