Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweaks for highlighting

  • Loading branch information...
commit 2e9e77eba0a07e0f1780a78efb369a16cb288121 1 parent 499ab37
moodler authored
Showing with 9 additions and 6 deletions.
  1. +8 −6 course/topics.php
  2. +1 −0  theme/cordoroyblue/styles.php
View
14 course/topics.php
@@ -144,17 +144,19 @@
$currenttopic = ($course->marker == $section);
if ($currenttopic) {
- $highlightcolor = "bgcolor=\"$THEME->cellheading2\" class=\"topicsoutlinesidehighlight\"";
+ $colorsides = "bgcolor=\"$THEME->cellheading2\" class=\"topicsoutlinesidehighlight\"";
+ $colormain = "bgcolor=\"$THEME->cellcontent\" class=\"topicsoutlinecontenthighlight\"";
} else {
- $highlightcolor = "bgcolor=\"$THEME->cellheading\" class=\"topicsoutlineside\"";
+ $colorsides = "bgcolor=\"$THEME->cellheading\" class=\"topicsoutlineside\"";
+ $colormain = "bgcolor=\"$THEME->cellcontent\" class=\"topicsoutlinecontent\"";
}
echo "<TR>";
- echo "<TD NOWRAP $highlightcolor VALIGN=top WIDTH=20>";
+ echo "<TD NOWRAP $colorsides 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\" class=\"topicsoutlinecontent\" WIDTH=\"100%\">";
+ echo "<TD VALIGN=top $colormain WIDTH=\"100%\">";
if (! $thissection = $sections[$section]) {
$thissection->course = $course->id; // Create a new section structure
@@ -166,7 +168,7 @@
}
if (isediting($course->id)) {
- $thissection->summary .= "&nbsp;<A HREF=editsection.php?id=$thissection->id><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"$streditsummary\"></A></P>";
+ $thissection->summary .= "&nbsp;<A HREF=editsection.php?id=$thissection->id><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"$streditsummary\"></A>";
}
echo text_to_html($thissection->summary);
@@ -181,7 +183,7 @@
}
echo "</TD>";
- echo "<TD NOWRAP $highlightcolor VALIGN=top ALIGN=CENTER WIDTH=10>";
+ echo "<TD NOWRAP $colorsides VALIGN=top ALIGN=CENTER WIDTH=10>";
echo "<FONT SIZE=1>";
if (isset($USER->topic)) {
$strshowalltopics = get_string("showalltopics");
View
1  theme/cordoroyblue/styles.php
@@ -197,6 +197,7 @@
}
.topicsoutlinecontenthighlight {
+ background: #FDFBF1;
border-width: 0px;
border-top: 1px;
border-bottom: 1px;
Please sign in to comment.
Something went wrong with that request. Please try again.