diff --git a/index.php b/index.php index f48298d1476..86259d3f5fc 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 ""; + } ?>