theme = $preview; $CFG->stylesheet = "$CFG->wwwroot/theme/$CFG->theme/styles.php?themename=$preview"; $CFG->header = "$CFG->dirroot/theme/$CFG->theme/header.html"; $CFG->footer = "$CFG->dirroot/theme/$CFG->theme/footer.html"; include ("$CFG->theme/config.php"); } $stradministration = get_string("administration"); $strconfiguration = get_string("configuration"); $strthemes = get_string("themes"); $strpreview = get_string("preview"); $strsavechanges = get_string("savechanges"); $strtheme = get_string("theme"); $strthemesaved = get_string("themesaved"); print_header("$site->shortname: $strthemes", $site->fullname, "wwwroot/admin/index.php\">$stradministration -> ". "wwwroot/admin/configure.php\">$strconfiguration -> $strthemes"); if ($choose) { if (set_config("theme", $choose)) { print_heading(get_string("themesaved")); print_continue("$CFG->wwwroot/"); if (file_exists("$choose/README.html")) { print_simple_box_start("center"); readfile("$choose/README.html"); print_simple_box_end(); } else if (file_exists("$choose/README.txt")) { print_simple_box_start("center"); $file = file("$choose/README.txt"); echo format_text(implode('', $file), FORMAT_MOODLE); print_simple_box_end(); } print_footer(); exit; } else { error("Could not set the theme!"); } } print_heading(get_string("previeworchoose")); $themes = get_list_of_plugins("theme"); echo "
$strtheme | |||
---|---|---|---|
body\">$theme | "; echo "$strsavechanges | "; } else { echo "body\">"; echo "$theme"; echo " | "; echo ""; } echo " |