Skip to content

Commit

Permalink
Changes for new styles and scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Dec 9, 2002
1 parent e545445 commit 8120317
Show file tree
Hide file tree
Showing 26 changed files with 622 additions and 147 deletions.
4 changes: 2 additions & 2 deletions theme/index.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


if ($preview) { if ($preview) {
$CFG->theme = $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->header = "$CFG->dirroot/theme/$CFG->theme/header.html";
$CFG->footer = "$CFG->dirroot/theme/$CFG->theme/footer.html"; $CFG->footer = "$CFG->dirroot/theme/$CFG->theme/footer.html";
include ("$CFG->theme/config.php"); include ("$CFG->theme/config.php");
Expand Down Expand Up @@ -55,7 +55,7 @@
$themes = get_list_of_plugins("theme"); $themes = get_list_of_plugins("theme");


echo "<TABLE ALIGN=CENTER cellpadding=7 cellspacing=5>"; 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) { foreach ($themes as $theme) {
include ("$theme/config.php"); include ("$theme/config.php");
echo "<TR>"; echo "<TR>";
Expand Down
3 changes: 2 additions & 1 deletion theme/standard/config.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@


$THEME->body = "#FFEECE"; // Main page color $THEME->body = "#FFEECE"; // Main page color
$THEME->cellheading = "#FFD991"; // Standard headings of big tables $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->cellcontent = "#FFFFFF"; // For areas with text
$THEME->cellcontent2 = "#FEE6B9"; // Alternate colour $THEME->cellcontent2 = "#FEE6B9"; // Alternate colour
$THEME->borders = "#555555"; // Table borders $THEME->borders = "#555555"; // Table borders
$THEME->highlight = "#AAFFAA"; // Highlighted text (eg after a search)


?> ?>
Binary file added theme/standard/gradient.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions theme/standard/header.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TITLE><?=$title ?></TITLE> <TITLE><?=$title ?></TITLE>
<META NAME="keywords" CONTENT="Moodle, <?=$title ?> "> <META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
<?=$meta ?> <?=$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"> <LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standard/favicon.ico">
<? include("$CFG->javascript"); ?> <? include("$CFG->javascript"); ?>
</HEAD> </HEAD>
Expand Down Expand Up @@ -36,10 +36,10 @@


<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%> <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
<TR> <TR>
<TD BGCOLOR="<?=$THEME->cellheading?>"> <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar">
<FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT> <FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
</TD> </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> </TR>
</TABLE> </TABLE>
<IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR> <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
Expand Down
29 changes: 0 additions & 29 deletions theme/standard/styles.css

This file was deleted.

119 changes: 119 additions & 0 deletions theme/standard/styles.php
Original file line number Original file line Diff line number Diff line change
@@ -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 {
}
4 changes: 2 additions & 2 deletions theme/standardblue/config.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
$THEME->body = "#C5EFFF"; // Main page color $THEME->body = "#C5EFFF"; // Main page color
$THEME->cellheading = "#9ADAF4"; // Standard headings of big tables $THEME->cellheading = "#9ADAF4"; // Standard headings of big tables
$THEME->cellheading2 = "#73C1E1"; // Highlight headings of tables $THEME->cellheading2 = "#73C1E1"; // Highlight headings of tables

$THEME->cellcontent = "#FFFFFF"; // For areas with text $THEME->cellcontent = "#FFFFFF"; // For areas with text
$THEME->cellcontent2 = "#FFD991"; // Alternate colour $THEME->cellcontent2 = "#B7E4F6"; // Alternate colour
$THEME->borders = "#555555"; // Table borders $THEME->borders = "#555555"; // Table borders
$THEME->highlight = "#AAFFAA"; // Highlighted text (eg after a search)


?> ?>
Binary file added theme/standardblue/gradient.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions theme/standardblue/header.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TITLE><?=$title ?></TITLE> <TITLE><?=$title ?></TITLE>
<META NAME="keywords" CONTENT="Moodle, <?=$title ?> "> <META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
<?=$meta ?> <?=$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"> <LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standardblue/favicon.ico">
<? include("$CFG->javascript"); ?> <? include("$CFG->javascript"); ?>
</HEAD> </HEAD>
Expand Down Expand Up @@ -36,10 +36,10 @@


<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%> <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
<TR> <TR>
<TD BGCOLOR="<?=$THEME->cellheading?>"> <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar">
<FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT> <FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
</TD> </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> </TR>
</TABLE> </TABLE>
<IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR> <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
Expand Down
21 changes: 0 additions & 21 deletions theme/standardblue/styles.css

This file was deleted.

119 changes: 119 additions & 0 deletions theme/standardblue/styles.php
Original file line number Original file line Diff line number Diff line change
@@ -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 {
}
6 changes: 3 additions & 3 deletions theme/standardgreen/config.php
Original file line number Original file line Diff line number Diff line change
@@ -1,11 +1,11 @@
<?PHP // $Id$ <?PHP // $Id$


$THEME->body = "#B4EFC1"; // Main page color $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->cellheading2 = "#3DD35F"; // Highlight headings of tables

$THEME->cellcontent = "#FFFFFF"; // For areas with text $THEME->cellcontent = "#FFFFFF"; // For areas with text
$THEME->cellcontent2 = "#85E49A"; // Alternate colour $THEME->cellcontent2 = "#AFE9BB"; // Alternate colour
$THEME->borders = "#555555"; // Table borders $THEME->borders = "#555555"; // Table borders
$THEME->highlight = "#AAFFAA"; // Highlighted text (eg after a search)


?> ?>
Binary file added theme/standardgreen/gradient.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8120317

Please sign in to comment.