From: moodler Date: Fri, 13 Dec 2002 03:14:19 +0000 (+0000) Subject: More hooks to hang styles from X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6daa3c232965d4366b3f9f5c0bbcf8165528ea91;p=moodle.git More hooks to hang styles from --- diff --git a/course/topics.php b/course/topics.php index a0a9c61703..f95c1a37e6 100644 --- a/course/topics.php +++ b/course/topics.php @@ -98,8 +98,8 @@ if ($thistopic->summary or $thistopic->sequence or isediting($course->id)) { echo ""; - echo "cellheading\" VALIGN=top WIDTH=20> "; - echo "cellcontent\" WIDTH=\"100%\">"; + echo "cellheading\" class=\"topicsoutlineside\" VALIGN=top WIDTH=20> "; + echo "cellcontent\" class=\"topicsoutlinecontent\" WIDTH=\"100%\">"; if (isediting($course->id)) { $thistopic->summary .= " "; - echo "cellheading\" VALIGN=top ALIGN=CENTER WIDTH=10> "; + echo "cellheading\" class=\"topicsoutlineside\" VALIGN=top ALIGN=CENTER WIDTH=10> "; echo ""; echo ""; echo ""; @@ -144,17 +144,17 @@ $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 ""; - echo ""; + echo ""; echo "

$section

"; echo ""; - echo "cellcontent\" WIDTH=\"100%\">"; + echo "cellcontent\" class=\"topicsoutlinecontent\" WIDTH=\"100%\">"; if (! $thissection = $sections[$section]) { $thissection->course = $course->id; // Create a new section structure @@ -181,7 +181,7 @@ } echo ""; - echo ""; + echo ""; echo ""; if (isset($USER->topic)) { $strshowalltopics = get_string("showalltopics"); diff --git a/course/weeks.php b/course/weeks.php index 7d66314120..a2aa1bd19a 100644 --- a/course/weeks.php +++ b/course/weeks.php @@ -88,8 +88,8 @@ if ($thisweek->summary or $thisweek->sequence or isediting($course->id)) { echo ""; - echo "cellheading\" VALIGN=top WIDTH=20> "; - echo "cellcontent\" WIDTH=\"100%\">"; + echo "cellheading\" class=\"weeklyoutlineside\" VALIGN=top WIDTH=20> "; + echo "cellcontent\" class=\"weeklyoutlinecontent\" WIDTH=\"100%\">"; if (isediting($course->id)) { $thisweek->summary .= " 
"; - echo "cellheading\" VALIGN=top ALIGN=CENTER WIDTH=10>"; + echo "cellheading\" class=\"weeklyoutlineside\" VALIGN=top ALIGN=CENTER WIDTH=10>"; echo ""; echo ""; echo ""; @@ -141,17 +141,17 @@ $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 ""; - echo ""; + echo ""; echo "

$week

"; echo ""; - echo "cellcontent\" WIDTH=\"100%\">"; + echo "cellcontent\" class=\"weeklyoutlinecontent\" WIDTH=\"100%\">"; echo "

cellheading2\">$weekday - $endweekday

"; if (! $thisweek = $sections[$week]) { @@ -179,7 +179,7 @@ } echo ""; - echo ""; + echo ""; echo ""; if (isset($USER->section)) { $strshowallweeks = get_string("showallweeks"); diff --git a/index.php b/index.php index 323ddbaa8e..8133898ca7 100644 --- a/index.php +++ b/index.php @@ -113,7 +113,7 @@ $site->summary .= "
"; } - print_simple_box($site->summary, "", "100%", $THEME->cellcontent2); + print_simple_box($site->summary, "", "100%", $THEME->cellcontent2, 5, "siteinfo"); print_spacer(1,$side); echo ""; ?>