]> git.mjollnir.org Git - moodle.git/commitdiff
Tweak teacher colour
authormartin <martin>
Sat, 10 Aug 2002 13:50:38 +0000 (13:50 +0000)
committermartin <martin>
Sat, 10 Aug 2002 13:50:38 +0000 (13:50 +0000)
course/lib.php

index 18af8e799f3f4fb93e501b36dfdd31fe85d35de0..e8d1eadbeafc51ba8d928d51a4c713677d6d9da7 100644 (file)
@@ -12,7 +12,9 @@ $COURSE_SECTION = array (
              "topics" => "topic"
            );
 
-$COURSE_MAX_LOG_DISPLAY = 150;  // days
+$COURSE_MAX_LOG_DISPLAY = 150;     // days
+
+$COURSETEACHERCOLOR = "#990000";   // To hilight certain items
 
 
 function print_log_selector_form($course, $selecteduser=0, $selecteddate="today") {
@@ -257,7 +259,7 @@ function print_recent_activity($course) {
     // This function trawls through the logs looking for 
     // anything new since the user's last login
 
-    global $CFG, $USER;
+    global $CFG, $USER, $COURSETEACHERCOLOR;
 
     if (! $USER->lastlogin ) {
         echo "<P>Welcome to the course! Here you will find a list of what's new since your last login.</P>";
@@ -359,7 +361,7 @@ function print_recent_activity($course) {
                         if (!isteacher($course->id)) {
                             continue;
                         } else {
-                            $teacherpost = "COLOR=#666666";
+                            $teacherpost = "COLOR=$COURSETEACHERCOLOR";
                         }
                     }
                 }