]> git.mjollnir.org Git - moodle.git/commitdiff
Print a theme README.txt if there is one.
authormoodler <moodler>
Sat, 22 May 2004 08:04:10 +0000 (08:04 +0000)
committermoodler <moodler>
Sat, 22 May 2004 08:04:10 +0000 (08:04 +0000)
theme/index.php

index 6cf54d4d0a6960dc3cf8f8cfde2185c0a17e7f5b..4e2d07acb6f2a595ab239d22a8cd7a936f22c5dd 100644 (file)
         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 {
             echo "</TD>";
             echo "<TD>&nbsp;</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();
 
 ?>