wwwroot/admin/"); } if (isset($USER->id)) { $headerbutton = update_course_icon($site->id); } else { $headerbutton = "".get_string("login").""; } print_header("$site->fullname", "$site->fullname", "", "", "summary))."\">", true, $headerbutton); ?>
newsitems > 0 or $readings or $USER->editing) { print_simple_box(get_string("mainmenu"), $align="CENTER", $width="100%", $color="$THEME->cellheading"); if ($site->newsitems > 0 ) { echo "
  • ". get_string("courses"). "
  • "; } if ($readings) { foreach ($readings as $reading) { echo "
  • $reading"; } } if ($USER->editing) { echo "

    wwwroot/course/mod.php?id=$site->id§ion=0&add=reading\">". get_string("addreading", "reading")."...

    "; } else { echo "

    "; } } if (isadmin()) { print_simple_box(get_string("admin"), $align="CENTER", $width="100%", $color="$THEME->cellheading"); echo "
  • wwwroot/admin/\">".get_string("adminpage")."...
  • "; echo "
  • wwwroot/course/log.php?id=$site->id\">".get_string("sitelogs")."...
  • "; echo "
  • wwwroot/admin/site.php\">".get_string("sitesettings")."...
  • "; } ?>
    newsitems == 0 ) { print_simple_box(get_string("availablecourses"), "CENTER", "100%", "$THEME->cellheading"); echo "\"\"
    "; print_all_courses(); } else { if (! $newsforum = get_course_news_forum($site->id)) { error("Could not find or create a main forum for the site"); } if (isset($USER->id)) { $SESSION->fromdiscuss = "$CFG->wwwroot"; if (is_subscribed($USER->id, $newsforum->id)) { $subtext = get_string("unsubscribe", "forum"); } else { $subtext = get_string("subscribe", "forum"); } $headertext = "
    ".get_string("sitenews")." id\">$subtext
    "; } else { $headertext = get_string("sitenews"); } print_simple_box($headertext, "CENTER", "100%", $THEME->cellheading); echo "\"\"
    "; print_forum_latest_topics($newsforum->id, $site->newsitems); } ?>
    editing) { $site->summary .= "
    "; } print_simple_box($site->summary, "", "100%", $THEME->cellheading); ?>
    dirroot/theme/$CFG->theme/footer.html"); ?>