make everything except comment/list less broken
git-svn-id: file:///home/shish/svn/shimmie2/trunk@846 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
d5255bbb1a
commit
2181c233e5
@ -15,6 +15,7 @@ class CustomCommentListTheme extends CommentListTheme {
|
|||||||
$page_title = $config->get_string('title');
|
$page_title = $config->get_string('title');
|
||||||
$page->set_title($page_title);
|
$page->set_title($page_title);
|
||||||
$page->set_heading($page_title);
|
$page->set_heading($page_title);
|
||||||
|
$page->disable_left();
|
||||||
$page->add_block(new Block(null, $this->build_upload_box(), "main", 0));
|
$page->add_block(new Block(null, $this->build_upload_box(), "main", 0));
|
||||||
$page->add_block(new Block(null, "<hr>", "main", 2));
|
$page->add_block(new Block(null, "<hr>", "main", 2));
|
||||||
$this->display_paginator($page, "comment/list", null, $page_number, $total_pages, 5);
|
$this->display_paginator($page, "comment/list", null, $page_number, $total_pages, 5);
|
||||||
|
@ -41,6 +41,15 @@ class Layout {
|
|||||||
$subheading = "<div id='subtitle'>{$page->subheading}</div>";
|
$subheading = "<div id='subtitle'>{$page->subheading}</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($page->left_enabled) {
|
||||||
|
$left = "<div id='nav'>$left_block_html</div>";
|
||||||
|
$withleft = "withleft";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$left = "";
|
||||||
|
$withleft = "";
|
||||||
|
}
|
||||||
|
|
||||||
print <<<EOD
|
print <<<EOD
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||||
<html>
|
<html>
|
||||||
@ -57,7 +66,8 @@ $header_html
|
|||||||
<h1>{$page->heading}</h1>
|
<h1>{$page->heading}</h1>
|
||||||
$subheading
|
$subheading
|
||||||
|
|
||||||
<div id="body">$main_block_html</div>
|
$left
|
||||||
|
<div id="body" class="$withleft">$main_block_html</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<hr>
|
<hr>
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class Page extends GenericPage {
|
class Page extends GenericPage {
|
||||||
// no changes from default
|
var $left_enabled = true;
|
||||||
|
public function disable_left() {
|
||||||
|
$this->left_enabled = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -32,6 +32,31 @@ A, A:visited {text-decoration: none; color: #0000EE;}
|
|||||||
A:hover {text-decoration: underline; color: #DD0000;}
|
A:hover {text-decoration: underline; color: #DD0000;}
|
||||||
HR {border: none; border-top: 1px solid #D9BFB7; height: 0px; clear: both;}
|
HR {border: none; border-top: 1px solid #D9BFB7; height: 0px; clear: both;}
|
||||||
|
|
||||||
|
#nav {
|
||||||
|
width: 150px;
|
||||||
|
float: left;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
#nav TABLE {
|
||||||
|
width: 150px;
|
||||||
|
}
|
||||||
|
#nav TD {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
#nav INPUT {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
#nav SELECT {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
#nav H3 {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.withleft {
|
||||||
|
margin-left: 160px;
|
||||||
|
}
|
||||||
|
|
||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* specific page types *
|
* specific page types *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user