Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

made Print_Heading more general

  • Loading branch information...
commit 2a46a71bf3fc65c13d45f3c3330d71da0dcf884b 1 parent 0d1a6b9
martin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/moodlelib.php
View
4 lib/moodlelib.php
@@ -56,8 +56,8 @@ function print_navigation ($navigation) {
}
}
-function print_heading($heading) {
- echo "<P ALIGN=CENTER><FONT SIZE=4><B>$heading</B></FONT></P>";
+function print_heading($text, $align="CENTER", $size=3) {
+ echo "<P ALIGN=\"$align\"><FONT SIZE=\"$size\"><B>$text</B></FONT></P>";
}
function print_simple_box($message, $align="", $width="", $color="#FFFFFF", $padding=5) {
Please sign in to comment.
Something went wrong with that request. Please try again.