]> git.mjollnir.org Git - moodle.git/commitdiff
More hooks to hang styles from
authormoodler <moodler>
Fri, 13 Dec 2002 03:14:19 +0000 (03:14 +0000)
committermoodler <moodler>
Fri, 13 Dec 2002 03:14:19 +0000 (03:14 +0000)
course/topics.php
course/weeks.php
index.php

index a0a9c61703b081f5df31f330800864b8cc3fecf6..f95c1a37e677fcddf906c2d6d46ab7b9c37f7152 100644 (file)
@@ -98,8 +98,8 @@
 
     if ($thistopic->summary or $thistopic->sequence or isediting($course->id)) {
         echo "<TR>";
-        echo "<TD NOWRAP BGCOLOR=\"$THEME->cellheading\" VALIGN=top WIDTH=20>&nbsp;</TD>";
-        echo "<TD VALIGN=top BGCOLOR=\"$THEME->cellcontent\" WIDTH=\"100%\">";
+        echo "<TD NOWRAP BGCOLOR=\"$THEME->cellheading\" class=\"topicsoutlineside\" VALIGN=top WIDTH=20>&nbsp;</TD>";
+        echo "<TD VALIGN=top BGCOLOR=\"$THEME->cellcontent\" class=\"topicsoutlinecontent\" WIDTH=\"100%\">";
     
         if (isediting($course->id)) {
             $thistopic->summary .= "&nbsp;<A TITLE=\"$streditsummary\" ".
         }
     
         echo "</TD>";
-        echo "<TD NOWRAP BGCOLOR=\"$THEME->cellheading\" VALIGN=top ALIGN=CENTER WIDTH=10>&nbsp;";
+        echo "<TD NOWRAP BGCOLOR=\"$THEME->cellheading\" class=\"topicsoutlineside\" VALIGN=top ALIGN=CENTER WIDTH=10>&nbsp;";
         echo "</TD>";
         echo "</TR>";
         echo "<TR><TD COLSPAN=3><IMG SRC=\"../pix/spacer.gif\" WIDTH=1 HEIGHT=1></TD></TR>";
         $currenttopic = ($course->marker == $section);
 
         if ($currenttopic) {
-            $highlightcolor = $THEME->cellheading2;
+            $highlightcolor = "bgcolor=\"$THEME->cellheading2\" class=\"topicsoutlinesidehighlight\"";
         } else {
-            $highlightcolor = $THEME->cellheading;
+            $highlightcolor = "bgcolor=\"$THEME->cellheading\" class=\"topicsoutlineside\"";
         }
 
         echo "<TR>";
-        echo "<TD NOWRAP BGCOLOR=\"$highlightcolor\" VALIGN=top WIDTH=20>";
+        echo "<TD NOWRAP $highlightcolor VALIGN=top WIDTH=20>";
         echo "<P ALIGN=CENTER><FONT SIZE=3><B>$section</B></FONT></P>";
         echo "</TD>";
 
-        echo "<TD VALIGN=top BGCOLOR=\"$THEME->cellcontent\" WIDTH=\"100%\">";
+        echo "<TD VALIGN=top BGCOLOR=\"$THEME->cellcontent\" class=\"topicsoutlinecontent\" WIDTH=\"100%\">";
 
         if (! $thissection = $sections[$section]) {
             $thissection->course = $course->id;   // Create a new section structure
         }
 
         echo "</TD>";
-        echo "<TD NOWRAP BGCOLOR=\"$highlightcolor\" VALIGN=top ALIGN=CENTER WIDTH=10>";
+        echo "<TD NOWRAP $highlightcolor VALIGN=top ALIGN=CENTER WIDTH=10>";
         echo "<FONT SIZE=1>";
         if (isset($USER->topic)) {
             $strshowalltopics = get_string("showalltopics");
index 7d66314120c5ccd892c4136b6331a21c4ab86e5f..a2aa1bd19a7176a2caec8941cdda68df62f284c3 100644 (file)
@@ -88,8 +88,8 @@
 
     if ($thisweek->summary or $thisweek->sequence or isediting($course->id)) {
         echo "<TR>";
-        echo "<TD NOWRAP BGCOLOR=\"$THEME->cellheading\" VALIGN=top WIDTH=20>&nbsp;</TD>";
-        echo "<TD VALIGN=top BGCOLOR=\"$THEME->cellcontent\" WIDTH=\"100%\">";
+        echo "<TD NOWRAP BGCOLOR=\"$THEME->cellheading\" class=\"weeklyoutlineside\" VALIGN=top WIDTH=20>&nbsp;</TD>";
+        echo "<TD VALIGN=top BGCOLOR=\"$THEME->cellcontent\" class=\"weeklyoutlinecontent\" WIDTH=\"100%\">";
 
         if (isediting($course->id)) {
             $thisweek->summary .= "&nbsp;<A TITLE=\"$streditsummary\" ".
         }
 
         echo "</TD>";
-        echo "<TD NOWRAP BGCOLOR=\"$THEME->cellheading\" VALIGN=top ALIGN=CENTER WIDTH=10>";
+        echo "<TD NOWRAP BGCOLOR=\"$THEME->cellheading\" class=\"weeklyoutlineside\" VALIGN=top ALIGN=CENTER WIDTH=10>";
         echo "</TD>";
         echo "</TR>";
         echo "<TR><TD COLSPAN=3><IMG SRC=\"../pix/spacer.gif\" WIDTH=1 HEIGHT=1></TD></TR>";
         $endweekday = userdate($weekdate+518400, " %d %B");
 
         if ($thisweek) {
-            $highlightcolor = $THEME->cellheading2;
+            $highlightcolor = "bgcolor=\"$THEME->cellheading2\" class=\"weeklyoutlinesidehighlight\"";
         } else {
-            $highlightcolor = $THEME->cellheading;
+            $highlightcolor = "bgcolor=\"$THEME->cellheading\" class=\"weeklyoutlineside\"";
         }
 
         echo "<TR>";
-        echo "<TD NOWRAP BGCOLOR=\"$highlightcolor\" VALIGN=top WIDTH=20>";
+        echo "<TD NOWRAP $highlightcolor VALIGN=top WIDTH=20>";
         echo "<P ALIGN=CENTER><FONT SIZE=3><B>$week</B></FONT></P>";
         echo "</TD>";
 
-        echo "<TD VALIGN=top BGCOLOR=\"$THEME->cellcontent\" WIDTH=\"100%\">";
+        echo "<TD VALIGN=top BGCOLOR=\"$THEME->cellcontent\" class=\"weeklyoutlinecontent\" WIDTH=\"100%\">";
         echo "<P><FONT SIZE=3 COLOR=\"$THEME->cellheading2\">$weekday - $endweekday</FONT></P>";
 
         if (! $thisweek = $sections[$week]) {
         }
 
         echo "</TD>";
-        echo "<TD NOWRAP BGCOLOR=\"$highlightcolor\" VALIGN=top ALIGN=CENTER WIDTH=10>";
+        echo "<TD NOWRAP $highlightcolor VALIGN=top ALIGN=CENTER WIDTH=10>";
         echo "<FONT SIZE=1>";
         if (isset($USER->section)) {
             $strshowallweeks = get_string("showallweeks");
index 323ddbaa8e7ee3936a1a499b7f2e4d71ea2d261e..8133898ca796fbda2023f2da4e763f18a64a849a 100644 (file)
--- a/index.php
+++ b/index.php
          $site->summary .= "<BR><CENTER><A HREF=\"admin/site.php\"><IMG SRC=\"pix/i/edit.gif\" BORDER=0></A>";
      }
 
-     print_simple_box($site->summary, "", "100%", $THEME->cellcontent2);
+     print_simple_box($site->summary, "", "100%", $THEME->cellcontent2, 5, "siteinfo");
      print_spacer(1,$side);
      echo "</TD>";
   ?>