From: moodler Date: Sat, 22 May 2004 08:04:10 +0000 (+0000) Subject: Print a theme README.txt if there is one. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f722b73c887ff0ae840d08aa538ecebea050c05b;p=moodle.git Print a theme README.txt if there is one. --- diff --git a/theme/index.php b/theme/index.php index 6cf54d4d0a..4e2d07acb6 100644 --- a/theme/index.php +++ b/theme/index.php @@ -46,6 +46,12 @@ if (set_config("theme", $choose)) { print_heading(get_string("themesaved")); print_continue("$CFG->wwwroot"); + 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 { @@ -71,15 +77,15 @@ echo ""; echo " "; } - echo ""; + echo ""; } - echo ""; + echo ""; - echo "
"; + echo "
"; $options["frame"] = "developer.html"; $options["sub"] = "themes"; print_single_button("$CFG->wwwroot/doc/index.php", $options, get_string("howtomakethemes")); - echo "
"; + echo "
"; print_footer(); ?>