Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changes for new styles and scheme

  • Loading branch information...
commit 8120317e2eecdf6d399bb1294666c785bccdc506 1 parent e545445
moodler authored
View
4 theme/index.php
@@ -11,7 +11,7 @@
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");
@@ -55,7 +55,7 @@
$themes = get_list_of_plugins("theme");
echo "<TABLE ALIGN=CENTER cellpadding=7 cellspacing=5>";
- echo "<TR><TH>$strtheme<TH>&nbsp;</TR>";
+ echo "<TR><TH class=\"generaltableheader\">$strtheme<TH class=\"generaltableheader\">&nbsp;</TR>";
foreach ($themes as $theme) {
include ("$theme/config.php");
echo "<TR>";
View
3  theme/standard/config.php
@@ -2,9 +2,10 @@
$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)
?>
View
BIN  theme/standard/gradient.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
6 theme/standard/header.html
@@ -3,7 +3,7 @@
<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>
@@ -36,10 +36,10 @@
<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>
View
29 theme/standard/styles.css
@@ -1,29 +0,0 @@
-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: #FFD991;}
-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;
-}
-
View
119 theme/standard/styles.php
@@ -0,0 +1,119 @@
+<?PHP // $Id$
+
+/// We use PHP so we can do value substitutions into the styles
+
+ require_once("../../config.php");
+
+ if (isset($themename)) {
+ $CFG->theme = $themename;
+ }
+
+ $themeurl = "$CFG->wwwroot/theme/$CFG->theme";
+
+/// From here on it's nearly a normal stylesheet.
+/// First are some CSS definitions for normal tags,
+/// then custom tags follow.
+///
+/// Note that colours are all defined in config.php
+/// in this directory
+
+?>
+
+
+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: <?PHP echo $THEME->cellheading?>;}
+
+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: <?PHP echo $THEME->highlight?>;
+}
+
+.headingblock {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.navbar {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generalbox {
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.generaltable {
+}
+
+.generaltableheader {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generaltablecell {
+}
+
+.sideblock {
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.sideblockheading {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.sideblockmain {
+}
+
+.sideblocklinks {
+}
+
+.sideblocklatestnews {
+}
+
+.sideblockrecentactivity {
+}
+
+.outlineheadingblock {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.weeklyoutline {
+}
+
+.topicsoutline {
+}
View
4 theme/standardblue/config.php
@@ -3,9 +3,9 @@
$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)
?>
View
BIN  theme/standardblue/gradient.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
6 theme/standardblue/header.html
@@ -3,7 +3,7 @@
<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>
@@ -36,10 +36,10 @@
<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>
View
21 theme/standardblue/styles.css
@@ -1,21 +0,0 @@
-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;
-}
-
View
119 theme/standardblue/styles.php
@@ -0,0 +1,119 @@
+<?PHP // $Id$
+
+/// We use PHP so we can do value substitutions into the styles
+
+ require_once("../../config.php");
+
+ if (isset($themename)) {
+ $CFG->theme = $themename;
+ }
+
+ $themeurl = "$CFG->wwwroot/theme/$CFG->theme";
+
+/// From here on it's nearly a normal stylesheet.
+/// First are some CSS definitions for normal tags,
+/// then custom tags follow.
+///
+/// Note that colours are all defined in config.php
+/// in this directory
+
+?>
+
+
+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: <?PHP echo $THEME->cellheading?>;}
+
+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: <?PHP echo $THEME->highlight?>;
+}
+
+.headingblock {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.navbar {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generalbox {
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.generaltable {
+}
+
+.generaltableheader {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generaltablecell {
+}
+
+.sideblock {
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.sideblockheading {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.sideblockmain {
+}
+
+.sideblocklinks {
+}
+
+.sideblocklatestnews {
+}
+
+.sideblockrecentactivity {
+}
+
+.outlineheadingblock {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.weeklyoutline {
+}
+
+.topicsoutline {
+}
View
6 theme/standardgreen/config.php
@@ -1,11 +1,11 @@
<?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)
?>
View
BIN  theme/standardgreen/gradient.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
6 theme/standardgreen/header.html
@@ -3,7 +3,7 @@
<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>
@@ -36,10 +36,10 @@
<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>
View
21 theme/standardgreen/styles.css
@@ -1,21 +0,0 @@
-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;
-}
-
View
119 theme/standardgreen/styles.php
@@ -0,0 +1,119 @@
+<?PHP // $Id$
+
+/// We use PHP so we can do value substitutions into the styles
+
+ require_once("../../config.php");
+
+ if (isset($themename)) {
+ $CFG->theme = $themename;
+ }
+
+ $themeurl = "$CFG->wwwroot/theme/$CFG->theme";
+
+/// From here on it's nearly a normal stylesheet.
+/// First are some CSS definitions for normal tags,
+/// then custom tags follow.
+///
+/// Note that colours are all defined in config.php
+/// in this directory
+
+?>
+
+
+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: <?PHP echo $THEME->cellheading?>;}
+
+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: <?PHP echo $THEME->highlight?>;
+}
+
+.headingblock {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.navbar {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generalbox {
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.generaltable {
+}
+
+.generaltableheader {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generaltablecell {
+}
+
+.sideblock {
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.sideblockheading {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.sideblockmain {
+}
+
+.sideblocklinks {
+}
+
+.sideblocklatestnews {
+}
+
+.sideblockrecentactivity {
+}
+
+.outlineheadingblock {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.weeklyoutline {
+}
+
+.topicsoutline {
+}
View
1  theme/standardlogo/config.php
@@ -6,5 +6,6 @@
$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)
?>
View
BIN  theme/standardlogo/gradient.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
6 theme/standardlogo/header.html
@@ -3,7 +3,7 @@
<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>
@@ -38,10 +38,10 @@
<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>
View
29 theme/standardlogo/styles.css
@@ -1,29 +0,0 @@
-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: #FFD991;}
-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;
-}
View
119 theme/standardlogo/styles.php
@@ -0,0 +1,119 @@
+<?PHP // $Id$
+
+/// We use PHP so we can do value substitutions into the styles
+
+ require_once("../../config.php");
+
+ if (isset($themename)) {
+ $CFG->theme = $themename;
+ }
+
+ $themeurl = "$CFG->wwwroot/theme/$CFG->theme";
+
+/// From here on it's nearly a normal stylesheet.
+/// First are some CSS definitions for normal tags,
+/// then custom tags follow.
+///
+/// Note that colours are all defined in config.php
+/// in this directory
+
+?>
+
+
+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: <?PHP echo $THEME->cellheading?>;}
+
+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: <?PHP echo $THEME->highlight?>;
+}
+
+.headingblock {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.navbar {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generalbox {
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.generaltable {
+}
+
+.generaltableheader {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generaltablecell {
+}
+
+.sideblock {
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.sideblockheading {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.sideblockmain {
+}
+
+.sideblocklinks {
+}
+
+.sideblocklatestnews {
+}
+
+.sideblockrecentactivity {
+}
+
+.outlineheadingblock {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.weeklyoutline {
+}
+
+.topicsoutline {
+}
View
4 theme/standardred/config.php
@@ -3,9 +3,9 @@
$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)
?>
View
BIN  theme/standardred/gradient.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
6 theme/standardred/header.html
@@ -3,7 +3,7 @@
<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>
@@ -36,10 +36,10 @@
<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>
View
22 theme/standardred/styles.css
@@ -1,22 +0,0 @@
-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;
-}
-
View
119 theme/standardred/styles.php
@@ -0,0 +1,119 @@
+<?PHP // $Id$
+
+/// We use PHP so we can do value substitutions into the styles
+
+ require_once("../../config.php");
+
+ if (isset($themename)) {
+ $CFG->theme = $themename;
+ }
+
+ $themeurl = "$CFG->wwwroot/theme/$CFG->theme";
+
+/// From here on it's nearly a normal stylesheet.
+/// First are some CSS definitions for normal tags,
+/// then custom tags follow.
+///
+/// Note that colours are all defined in config.php
+/// in this directory
+
+?>
+
+
+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: <?PHP echo $THEME->cellheading?>;}
+
+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: <?PHP echo $THEME->highlight?>;
+}
+
+.headingblock {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.navbar {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generalbox {
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.generaltable {
+}
+
+.generaltableheader {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generaltablecell {
+}
+
+.sideblock {
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.sideblockheading {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.sideblockmain {
+}
+
+.sideblocklinks {
+}
+
+.sideblocklatestnews {
+}
+
+.sideblockrecentactivity {
+}
+
+.outlineheadingblock {
+ background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+ border-width: 1px;
+ border-color: <?PHP echo $THEME->borders?>;
+ border-style: solid;
+}
+
+.weeklyoutline {
+}
+
+.topicsoutline {
+}
Please sign in to comment.
Something went wrong with that request. Please try again.