From ee00b8b948a4dfd9d3ee5ca47686bed2b686d553 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 7 Aug 2003 16:15:14 +0000 Subject: [PATCH] There's always one, isn't there? --- index.php | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/index.php b/index.php index f48298d147..86259d3f5f 100644 --- a/index.php +++ b/index.php @@ -35,8 +35,18 @@ true, "", "
$loginstring$langmenu
"); $firstcolumn = false; // for now + $lastcolumn = false; // for now $side = 175; + if (isediting($site->id)) { + $site->summary .= "
"; + } + + if ($site->summary) { + $lastcolumn = true; + } + + ?> @@ -93,7 +103,11 @@ if ($firstcolumn) { echo ""; } - echo ""; + if ($lastcolumn) { + echo ""; + } else { + echo ""; + } switch ($CFG->frontpage) { /// Display the main part of the front page. case FRONTPAGENEWS: @@ -131,7 +145,9 @@ print_heading_block(get_string("availablecourses")); print_spacer(8,1); if (count_records("course_categories") > 1) { + print_simple_box_start("center", "100%"); print_whole_category_list(); + print_simple_box_end(); } else { print_courses(0, "100%"); } @@ -141,15 +157,13 @@ } echo ""; - echo ""; - - if (isediting($site->id)) { - $site->summary .= "
"; - } - print_simple_box($site->summary, "", "100%", $THEME->cellcontent2, 5, "siteinfo"); - print_spacer(1,$side); - echo ""; + if ($lastcolumn) { + echo ""; + print_simple_box($site->summary, "", "100%", $THEME->cellcontent2, 5, "siteinfo"); + print_spacer(1,$side); + echo ""; + } ?> -- 2.39.5