if ($preview) {
$CFG->theme = $preview;
- $CFG->stylesheet = "$CFG->wwwroot/theme/$CFG->theme/styles.css";
+ $CFG->stylesheet = "$CFG->wwwroot/theme/$CFG->theme/styles.php?themename=$preview";
$CFG->header = "$CFG->dirroot/theme/$CFG->theme/header.html";
$CFG->footer = "$CFG->dirroot/theme/$CFG->theme/footer.html";
include ("$CFG->theme/config.php");
$themes = get_list_of_plugins("theme");
echo "<TABLE ALIGN=CENTER cellpadding=7 cellspacing=5>";
- echo "<TR><TH>$strtheme<TH> </TR>";
+ echo "<TR><TH class=\"generaltableheader\">$strtheme<TH class=\"generaltableheader\"> </TR>";
foreach ($themes as $theme) {
include ("$theme/config.php");
echo "<TR>";
$THEME->body = "#FFEECE"; // Main page color
$THEME->cellheading = "#FFD991"; // Standard headings of big tables
-$THEME->cellheading2 = "#FFB62D"; // Highlight headings of tables
+$THEME->cellheading2 = "#FFC85F"; // Highlight headings of tables
$THEME->cellcontent = "#FFFFFF"; // For areas with text
$THEME->cellcontent2 = "#FEE6B9"; // Alternate colour
$THEME->borders = "#555555"; // Table borders
+$THEME->highlight = "#AAFFAA"; // Highlighted text (eg after a search)
?>
<TITLE><?=$title ?></TITLE>
<META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
<?=$meta ?>
-<LINK REL="stylesheet" HREF="<?=$styles ?>">
+<LINK REL="stylesheet" TYPE="text/css" HREF="<?=$styles ?>">
<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standard/favicon.ico">
<? include("$CFG->javascript"); ?>
</HEAD>
<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
<TR>
- <TD BGCOLOR="<?=$THEME->cellheading?>">
+ <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar">
<FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
</TD>
- <TD BGCOLOR="<?=$THEME->cellheading?>" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?=$button ?></TD>
+ <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?=$button ?></TD>
</TR>
</TABLE>
<IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
+++ /dev/null
-a:link {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
- text-decoration: none; \r
- color: blue;}\r
-a:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
- text-decoration: none; \r
- color: blue;}\r
-a:hover {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
- text-decoration: underline; \r
- color: red;}\r
-\r
-body {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-p {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-h1 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-h2 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-h3 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-h4 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-th {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
- font-weight: bold; \r
- background-color: #FFD991;}\r
-td {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-\r
-li {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-\r
-form { margin-bottom: 0 ; }\r
-\r
-.highlight {\r
- background-color: #AAFFAA;\r
-}\r
-\r
--- /dev/null
+<?PHP // $Id$\r
+\r
+/// We use PHP so we can do value substitutions into the styles\r
+\r
+ require_once("../../config.php"); \r
+\r
+ if (isset($themename)) {\r
+ $CFG->theme = $themename;\r
+ }\r
+\r
+ $themeurl = "$CFG->wwwroot/theme/$CFG->theme";\r
+\r
+/// From here on it's nearly a normal stylesheet.\r
+/// First are some CSS definitions for normal tags, \r
+/// then custom tags follow.\r
+///\r
+/// Note that colours are all defined in config.php\r
+/// in this directory\r
+\r
+?>\r
+\r
+\r
+a:link {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: none; \r
+ color: blue;}\r
+a:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: none; \r
+ color: blue;}\r
+a:hover {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: underline; \r
+ color: red;}\r
+\r
+body {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+p {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h1 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h2 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h3 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h4 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+th {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ font-weight: bold; \r
+ background-color: <?PHP echo $THEME->cellheading?>;}\r
+\r
+td {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+li {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+form { margin-bottom: 0; }\r
+\r
+.highlight {\r
+ background-color: <?PHP echo $THEME->highlight?>;\r
+}\r
+\r
+.headingblock {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.navbar {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.generalbox {\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.generaltable {\r
+}\r
+\r
+.generaltableheader {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.generaltablecell {\r
+}\r
+\r
+.sideblock {\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.sideblockheading {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.sideblockmain {\r
+}\r
+\r
+.sideblocklinks {\r
+}\r
+\r
+.sideblocklatestnews {\r
+}\r
+\r
+.sideblockrecentactivity {\r
+}\r
+\r
+.outlineheadingblock {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.weeklyoutline {\r
+}\r
+\r
+.topicsoutline {\r
+}\r
$THEME->body = "#C5EFFF"; // Main page color
$THEME->cellheading = "#9ADAF4"; // Standard headings of big tables
$THEME->cellheading2 = "#73C1E1"; // Highlight headings of tables
-
$THEME->cellcontent = "#FFFFFF"; // For areas with text
-$THEME->cellcontent2 = "#FFD991"; // Alternate colour
+$THEME->cellcontent2 = "#B7E4F6"; // Alternate colour
$THEME->borders = "#555555"; // Table borders
+$THEME->highlight = "#AAFFAA"; // Highlighted text (eg after a search)
?>
<TITLE><?=$title ?></TITLE>
<META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
<?=$meta ?>
-<LINK REL="stylesheet" HREF="<?=$styles ?>">
+<LINK REL="stylesheet" TYPE="text/css" HREF="<?=$styles ?>">
<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standardblue/favicon.ico">
<? include("$CFG->javascript"); ?>
</HEAD>
<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
<TR>
- <TD BGCOLOR="<?=$THEME->cellheading?>">
+ <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar">
<FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
</TD>
- <TD BGCOLOR="<?=$THEME->cellheading?>" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?=$button ?></TD>
+ <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?=$button ?></TD>
</TR>
</TABLE>
<IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
+++ /dev/null
-a:link {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: blue;}
-a:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: blue;}
-a:hover {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; text-decoration: underline; color: red;}
-
-body {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-p {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h1 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h2 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h3 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h4 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-th {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-weight: bold; background-color: #8BCDE8;}
-td {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-
-li {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-
-form { margin-bottom: 0 ; }
-
-.highlight {
- background-color: #AAFFAA;
-}
-
--- /dev/null
+<?PHP // $Id$\r
+\r
+/// We use PHP so we can do value substitutions into the styles\r
+\r
+ require_once("../../config.php"); \r
+\r
+ if (isset($themename)) {\r
+ $CFG->theme = $themename;\r
+ }\r
+\r
+ $themeurl = "$CFG->wwwroot/theme/$CFG->theme";\r
+\r
+/// From here on it's nearly a normal stylesheet.\r
+/// First are some CSS definitions for normal tags, \r
+/// then custom tags follow.\r
+///\r
+/// Note that colours are all defined in config.php\r
+/// in this directory\r
+\r
+?>\r
+\r
+\r
+a:link {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: none; \r
+ color: blue;}\r
+a:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: none; \r
+ color: blue;}\r
+a:hover {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: underline; \r
+ color: red;}\r
+\r
+body {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+p {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h1 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h2 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h3 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h4 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+th {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ font-weight: bold; \r
+ background-color: <?PHP echo $THEME->cellheading?>;}\r
+\r
+td {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+li {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+form { margin-bottom: 0; }\r
+\r
+.highlight {\r
+ background-color: <?PHP echo $THEME->highlight?>;\r
+}\r
+\r
+.headingblock {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.navbar {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.generalbox {\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.generaltable {\r
+}\r
+\r
+.generaltableheader {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.generaltablecell {\r
+}\r
+\r
+.sideblock {\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.sideblockheading {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.sideblockmain {\r
+}\r
+\r
+.sideblocklinks {\r
+}\r
+\r
+.sideblocklatestnews {\r
+}\r
+\r
+.sideblockrecentactivity {\r
+}\r
+\r
+.outlineheadingblock {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.weeklyoutline {\r
+}\r
+\r
+.topicsoutline {\r
+}\r
<?PHP // $Id$
$THEME->body = "#B4EFC1"; // Main page color
-$THEME->cellheading = "#85E49A"; // Standard headings of big tables
+$THEME->cellheading = "#8CDD94"; // Standard headings of big tables
$THEME->cellheading2 = "#3DD35F"; // Highlight headings of tables
-
$THEME->cellcontent = "#FFFFFF"; // For areas with text
-$THEME->cellcontent2 = "#85E49A"; // Alternate colour
+$THEME->cellcontent2 = "#AFE9BB"; // Alternate colour
$THEME->borders = "#555555"; // Table borders
+$THEME->highlight = "#AAFFAA"; // Highlighted text (eg after a search)
?>
<TITLE><?=$title ?></TITLE>
<META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
<?=$meta ?>
-<LINK REL="stylesheet" HREF="<?=$styles ?>">
+<LINK REL="stylesheet" TYPE="text/css" HREF="<?=$styles ?>">
<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standardgreen/favicon.ico">
<? include("$CFG->javascript"); ?>
</HEAD>
<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
<TR>
- <TD BGCOLOR="<?=$THEME->cellheading?>">
+ <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar">
<FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
</TD>
- <TD BGCOLOR="<?=$THEME->cellheading?>" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?=$button ?></TD>
+ <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?=$button ?></TD>
</TR>
</TABLE>
<IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
+++ /dev/null
-a:link {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: blue;}
-a:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: blue;}
-a:hover {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; text-decoration: underline; color: red;}
-
-body {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-p {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h1 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h2 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h3 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h4 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-th {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-weight: bold; background-color: #3DD35F;}
-td {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-
-li {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-
-form { margin-bottom: 0 ; }
-
-.highlight {
- background-color: #FFAAAA;
-}
-
--- /dev/null
+<?PHP // $Id$\r
+\r
+/// We use PHP so we can do value substitutions into the styles\r
+\r
+ require_once("../../config.php"); \r
+\r
+ if (isset($themename)) {\r
+ $CFG->theme = $themename;\r
+ }\r
+\r
+ $themeurl = "$CFG->wwwroot/theme/$CFG->theme";\r
+\r
+/// From here on it's nearly a normal stylesheet.\r
+/// First are some CSS definitions for normal tags, \r
+/// then custom tags follow.\r
+///\r
+/// Note that colours are all defined in config.php\r
+/// in this directory\r
+\r
+?>\r
+\r
+\r
+a:link {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: none; \r
+ color: blue;}\r
+a:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: none; \r
+ color: blue;}\r
+a:hover {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: underline; \r
+ color: red;}\r
+\r
+body {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+p {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h1 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h2 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h3 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h4 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+th {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ font-weight: bold; \r
+ background-color: <?PHP echo $THEME->cellheading?>;}\r
+\r
+td {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+li {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+form { margin-bottom: 0; }\r
+\r
+.highlight {\r
+ background-color: <?PHP echo $THEME->highlight?>;\r
+}\r
+\r
+.headingblock {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.navbar {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.generalbox {\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.generaltable {\r
+}\r
+\r
+.generaltableheader {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.generaltablecell {\r
+}\r
+\r
+.sideblock {\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.sideblockheading {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.sideblockmain {\r
+}\r
+\r
+.sideblocklinks {\r
+}\r
+\r
+.sideblocklatestnews {\r
+}\r
+\r
+.sideblockrecentactivity {\r
+}\r
+\r
+.outlineheadingblock {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.weeklyoutline {\r
+}\r
+\r
+.topicsoutline {\r
+}\r
$THEME->cellcontent = "#FFFFFF"; // For areas with text
$THEME->cellcontent2 = "#FFD991"; // Alternate colour
$THEME->borders = "#555555"; // Table borders
+$THEME->highlight = "#AAFFAA"; // Highlighted text (eg after a search)
?>
<TITLE><?=$title ?></TITLE>
<META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
<?=$meta ?>
-<LINK REL="stylesheet" HREF="<?=$styles ?>">
+<LINK REL="stylesheet" TYPE="text/css" HREF="<?=$styles ?>">
<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standardlogo/favicon.ico">
<? include("$CFG->javascript"); ?>
</HEAD>
<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
<TR>
- <TD BGCOLOR="<?=$THEME->cellheading?>">
+ <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar">
<FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
</TD>
- <TD BGCOLOR="<?=$THEME->cellheading?>" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?=$button ?></TD>
+ <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?=$button ?></TD>
</TR>
</TABLE>
<IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
+++ /dev/null
-a:link {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
- text-decoration: none; \r
- color: blue;}\r
-a:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
- text-decoration: none; \r
- color: blue;}\r
-a:hover {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
- text-decoration: underline; \r
- color: red;}\r
-\r
-body {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-p {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-h1 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-h2 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-h3 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-h4 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-th {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
- font-weight: bold; \r
- background-color: #FFD991;}\r
-td {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-\r
-li {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
-\r
-form { margin-bottom: 0 ; }\r
-\r
-\r
-.highlight {\r
- background-color: #AAFFAA;\r
-}\r
--- /dev/null
+<?PHP // $Id$\r
+\r
+/// We use PHP so we can do value substitutions into the styles\r
+\r
+ require_once("../../config.php"); \r
+\r
+ if (isset($themename)) {\r
+ $CFG->theme = $themename;\r
+ }\r
+\r
+ $themeurl = "$CFG->wwwroot/theme/$CFG->theme";\r
+\r
+/// From here on it's nearly a normal stylesheet.\r
+/// First are some CSS definitions for normal tags, \r
+/// then custom tags follow.\r
+///\r
+/// Note that colours are all defined in config.php\r
+/// in this directory\r
+\r
+?>\r
+\r
+\r
+a:link {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: none; \r
+ color: blue;}\r
+a:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: none; \r
+ color: blue;}\r
+a:hover {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: underline; \r
+ color: red;}\r
+\r
+body {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+p {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h1 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h2 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h3 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h4 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+th {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ font-weight: bold; \r
+ background-color: <?PHP echo $THEME->cellheading?>;}\r
+\r
+td {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+li {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+form { margin-bottom: 0; }\r
+\r
+.highlight {\r
+ background-color: <?PHP echo $THEME->highlight?>;\r
+}\r
+\r
+.headingblock {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.navbar {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.generalbox {\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.generaltable {\r
+}\r
+\r
+.generaltableheader {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.generaltablecell {\r
+}\r
+\r
+.sideblock {\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.sideblockheading {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.sideblockmain {\r
+}\r
+\r
+.sideblocklinks {\r
+}\r
+\r
+.sideblocklatestnews {\r
+}\r
+\r
+.sideblockrecentactivity {\r
+}\r
+\r
+.outlineheadingblock {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.weeklyoutline {\r
+}\r
+\r
+.topicsoutline {\r
+}\r
$THEME->body = "#F5E7E7"; // Main page color
$THEME->cellheading = "#ECD2D2"; // Standard headings of big tables
$THEME->cellheading2 = "#E9C5C6"; // Highlight headings of tables
-
$THEME->cellcontent = "#FFFFFF"; // For areas with text
-$THEME->cellcontent2 = "#ECD2D2"; // Alternate colour
+$THEME->cellcontent2 = "#ECD9D9"; // Alternate colour
$THEME->borders = "#552021"; // Table borders
+$THEME->highlight = "#AAFFAA"; // Highlighted text (eg after a search)
?>
<TITLE><?=$title ?></TITLE>
<META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
<?=$meta ?>
-<LINK REL="stylesheet" HREF="<?=$styles ?>">
+<LINK REL="stylesheet" TYPE="text/css" HREF="<?=$styles ?>">
<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standardred/favicon.ico">
<? include("$CFG->javascript"); ?>
</HEAD>
<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
<TR>
- <TD BGCOLOR="<?=$THEME->cellheading?>">
+ <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar">
<FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
</TD>
- <TD BGCOLOR="<?=$THEME->cellheading?>" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?=$button ?></TD>
+ <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?=$button ?></TD>
</TR>
</TABLE>
<IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
+++ /dev/null
-a:link {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: #CC3366;}
-a:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: #CC3366;}
-a:hover {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; text-decoration: underline; color: #FF0000;}
-
-body {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-p {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h1 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h2 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h3 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-h4 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-th {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-weight: bold; background-color: #E9C5C6;}
-td {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-
-li {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
-
-form { margin-bottom: 0 ; }
-
-
-.highlight {
- background-color: #FFAAAA;
-}
-
--- /dev/null
+<?PHP // $Id$\r
+\r
+/// We use PHP so we can do value substitutions into the styles\r
+\r
+ require_once("../../config.php"); \r
+\r
+ if (isset($themename)) {\r
+ $CFG->theme = $themename;\r
+ }\r
+\r
+ $themeurl = "$CFG->wwwroot/theme/$CFG->theme";\r
+\r
+/// From here on it's nearly a normal stylesheet.\r
+/// First are some CSS definitions for normal tags, \r
+/// then custom tags follow.\r
+///\r
+/// Note that colours are all defined in config.php\r
+/// in this directory\r
+\r
+?>\r
+\r
+\r
+a:link {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: none; \r
+ color: blue;}\r
+a:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: none; \r
+ color: blue;}\r
+a:hover {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ text-decoration: underline; \r
+ color: red;}\r
+\r
+body {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+p {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h1 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h2 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h3 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+h4 {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+th {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r
+ font-weight: bold; \r
+ background-color: <?PHP echo $THEME->cellheading?>;}\r
+\r
+td {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+li {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r
+\r
+form { margin-bottom: 0; }\r
+\r
+.highlight {\r
+ background-color: <?PHP echo $THEME->highlight?>;\r
+}\r
+\r
+.headingblock {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.navbar {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.generalbox {\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.generaltable {\r
+}\r
+\r
+.generaltableheader {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.generaltablecell {\r
+}\r
+\r
+.sideblock {\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.sideblockheading {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+}\r
+\r
+.sideblockmain {\r
+}\r
+\r
+.sideblocklinks {\r
+}\r
+\r
+.sideblocklatestnews {\r
+}\r
+\r
+.sideblockrecentactivity {\r
+}\r
+\r
+.outlineheadingblock {\r
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
+ border-width: 1px;\r
+ border-color: <?PHP echo $THEME->borders?>;\r
+ border-style: solid;\r
+}\r
+\r
+.weeklyoutline {\r
+}\r
+\r
+.topicsoutline {\r
+}\r