mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Print a theme README.txt if there is one.
This commit is contained in:
parent
2367e13d6c
commit
f722b73c88
1 changed files with 10 additions and 4 deletions
|
@ -46,6 +46,12 @@
|
||||||
if (set_config("theme", $choose)) {
|
if (set_config("theme", $choose)) {
|
||||||
print_heading(get_string("themesaved"));
|
print_heading(get_string("themesaved"));
|
||||||
print_continue("$CFG->wwwroot");
|
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();
|
print_footer();
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
@ -71,15 +77,15 @@
|
||||||
echo "</TD>";
|
echo "</TD>";
|
||||||
echo "<TD> </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["frame"] = "developer.html";
|
||||||
$options["sub"] = "themes";
|
$options["sub"] = "themes";
|
||||||
print_single_button("$CFG->wwwroot/doc/index.php", $options, get_string("howtomakethemes"));
|
print_single_button("$CFG->wwwroot/doc/index.php", $options, get_string("howtomakethemes"));
|
||||||
echo "</DIV>";
|
echo "</div>";
|
||||||
print_footer();
|
print_footer();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue