From e4b5c8c0cd2dd8ea03efebc5c147b4451854c07b Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 10 Jun 2002 13:35:19 +0000 Subject: [PATCH] More tweaks and simplification when possible --- index.php | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/index.php b/index.php index 246bf21f3fd..6c2578ccde2 100644 --- a/index.php +++ b/index.php @@ -18,30 +18,31 @@ -
- cellheading"); ?> + + format > 0 or $readings or $USER->editing) { + + print_simple_box("Main Menu", $align="CENTER", $width="100%", $color="$THEME->cellheading"); -
  • Home
  • -
  • Courses
  • - format > 0 ) { ?> -
  • Forums
  • - + if ($site->format > 0 ) { + echo "
  • Courses
  • "; + echo "
  • id?>\">Forums
  • "; + } - $reading"; + if ($readings) { + foreach ($readings as $reading) { + echo "
  • $reading"; + } } } if ($USER->editing) { echo "

    wwwroot/course/mod.php?id=$site->id&week=0&add=reading\">Add Reading...

    "; + echo "

    "; } - ?> -

    - - cellheading"); echo "
  • wwwroot/admin/\">Admin Page...
  • ";