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 | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/index.php b/index.php index 246bf21f3f..6c2578ccde 100644 --- a/index.php +++ b/index.php @@ -18,30 +18,31 @@ -
- cellheading"); ?> - -
  • Home
  • -
  • Courses
  • - format > 0 ) { ?> -
  • Forums
  • - - - $reading"; +
    + format > 0 or $readings or $USER->editing) { + + print_simple_box("Main Menu", $align="CENTER", $width="100%", $color="$THEME->cellheading"); + + if ($site->format > 0 ) { + echo "
  • Courses
  • "; + echo "
  • id?>\">Forums
  • "; + } + + 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...
  • "; -- 2.39.5