From 2181c233e57c8dae07438874fcdbfb5aed00cf4b Mon Sep 17 00:00:00 2001 From: shish Date: Fri, 16 May 2008 21:54:21 +0000 Subject: [PATCH] make everything except comment/list less broken git-svn-id: file:///home/shish/svn/shimmie2/trunk@846 7f39781d-f577-437e-ae19-be835c7a54ca --- themes/futaba/comment.theme.php | 1 + themes/futaba/layout.class.php | 12 +++++++++++- themes/futaba/page.class.php | 5 ++++- themes/futaba/style.css | 25 +++++++++++++++++++++++++ 4 files changed, 41 insertions(+), 2 deletions(-) diff --git a/themes/futaba/comment.theme.php b/themes/futaba/comment.theme.php index b25afa58..30f07fde 100644 --- a/themes/futaba/comment.theme.php +++ b/themes/futaba/comment.theme.php @@ -15,6 +15,7 @@ class CustomCommentListTheme extends CommentListTheme { $page_title = $config->get_string('title'); $page->set_title($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, "
", "main", 2)); $this->display_paginator($page, "comment/list", null, $page_number, $total_pages, 5); diff --git a/themes/futaba/layout.class.php b/themes/futaba/layout.class.php index bd4d61ae..523bdb22 100644 --- a/themes/futaba/layout.class.php +++ b/themes/futaba/layout.class.php @@ -41,6 +41,15 @@ class Layout { $subheading = "
{$page->subheading}
"; } + if($page->left_enabled) { + $left = ""; + $withleft = "withleft"; + } + else { + $left = ""; + $withleft = ""; + } + print << @@ -57,7 +66,8 @@ $header_html

{$page->heading}

$subheading -
$main_block_html
+ $left +
$main_block_html