mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Print a theme README.txt if there is one.
This commit is contained in:
parent
2367e13d6c
commit
f722b73c88
@ -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 "</TD>";
|
||||
echo "<TD> </TD>";
|
||||
}
|
||||
echo "</TR>";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</TABLE>";
|
||||
echo "</table>";
|
||||
|
||||
echo "<BR><DIV align=center>";
|
||||
echo "<br><div align=center>";
|
||||
$options["frame"] = "developer.html";
|
||||
$options["sub"] = "themes";
|
||||
print_single_button("$CFG->wwwroot/doc/index.php", $options, get_string("howtomakethemes"));
|
||||
echo "</DIV>";
|
||||
echo "</div>";
|
||||
print_footer();
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user