]> git.mjollnir.org Git - moodle.git/commitdiff
New standard white theme
authormoodler <moodler>
Sun, 5 Jan 2003 11:02:51 +0000 (11:02 +0000)
committermoodler <moodler>
Sun, 5 Jan 2003 11:02:51 +0000 (11:02 +0000)
theme/standardwhite/config.php [new file with mode: 0644]
theme/standardwhite/favicon.ico [new file with mode: 0644]
theme/standardwhite/footer.html [new file with mode: 0644]
theme/standardwhite/gradient.jpg [new file with mode: 0755]
theme/standardwhite/header.html [new file with mode: 0644]
theme/standardwhite/styles.php [new file with mode: 0644]

diff --git a/theme/standardwhite/config.php b/theme/standardwhite/config.php
new file mode 100644 (file)
index 0000000..e5463eb
--- /dev/null
@@ -0,0 +1,11 @@
+<?PHP // $Id$
+
+$THEME->body         = "#FFFFFF";  // Main page color
+$THEME->cellheading  = "#E8E8E8";  // Standard headings of big tables
+$THEME->cellheading2 = "#AAAAAA";  // Highlight headings of tables
+$THEME->cellcontent  = "#FFFFFF";  // For areas with text
+$THEME->cellcontent2 = "#EFEFEF";  // Alternate colour
+$THEME->borders      = "#555555";  // Table borders
+$THEME->highlight    = "#AAFFAA";  // Highlighted text (eg after a search)
+
+?>
diff --git a/theme/standardwhite/favicon.ico b/theme/standardwhite/favicon.ico
new file mode 100644 (file)
index 0000000..517c840
Binary files /dev/null and b/theme/standardwhite/favicon.ico differ
diff --git a/theme/standardwhite/footer.html b/theme/standardwhite/footer.html
new file mode 100644 (file)
index 0000000..e016358
--- /dev/null
@@ -0,0 +1,10 @@
+<!-- START OF FOOTER -->
+<CENTER>
+<HR SIZE=1 NOSHADE>
+<FONT SIZE=1>
+<P><?=$loggedinas ?></P>
+<P><?=$homelink ?></P>
+</FONT>
+
+</BODY>
+</HTML>
diff --git a/theme/standardwhite/gradient.jpg b/theme/standardwhite/gradient.jpg
new file mode 100755 (executable)
index 0000000..61d792c
Binary files /dev/null and b/theme/standardwhite/gradient.jpg differ
diff --git a/theme/standardwhite/header.html b/theme/standardwhite/header.html
new file mode 100644 (file)
index 0000000..5b462f4
--- /dev/null
@@ -0,0 +1,53 @@
+<HTML<?=$direction?>>
+<HEAD>
+<TITLE><?=$title ?></TITLE>
+<META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
+<?=$meta ?>
+<LINK REL="stylesheet" TYPE="text/css" HREF="<?=$styles ?>">
+<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standardwhite/favicon.ico">
+<? include("$CFG->javascript"); ?>
+</HEAD>
+
+<BODY <? if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\">"; ?>
+
+<? if ($home) {  // This is what gets printed on the home page only  ?>
+
+     <TABLE WIDTH=100% CELLPADDING=10 CELLSPACING=0 BORDER=0>
+       <TR>
+         <TD VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
+         <TD ALIGN=RIGHT VALIGN=TOP><?=$menu ?></TD>
+       </TR>
+     </TABLE>
+
+
+<? } else if ($heading) {  // This is what gets printed on any other page with a heading ?>
+
+     <TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
+       <TR>
+         <TD VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
+         <TD ALIGN=RIGHT VALIGN=TOP><?=$menu ?></TD>
+       </TR>
+     </TABLE>
+
+<? } ?>
+
+
+<? if ($navigation) { // This is the navigation table with breadcrumbs  ?>
+
+     <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
+       <TR>
+         <TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar">
+           <FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
+         </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>
+
+<? } else if ($heading) { // If no navigation, but a heading, then print a line  ?>
+
+     <HR SIZE=1 NOSHADE>
+
+<? } ?>
+
+<!-- END OF HEADER -->
diff --git a/theme/standardwhite/styles.php b/theme/standardwhite/styles.php
new file mode 100644 (file)
index 0000000..2500203
--- /dev/null
@@ -0,0 +1,189 @@
+<?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
+/// New classes always get added to the end of the file.\r
+///\r
+/// Note that a group of standard colours are all \r
+/// defined in config.php in this directory.  The\r
+/// reason for this is because Moodle uses the same\r
+/// colours to provide oldstyle formatting for \r
+/// browsers without CSS.\r
+///\r
+/// You can hardcode colours in this file if you \r
+/// don't care about this.\r
+\r
+?>\r
+\r
+\r
+body, td, th, li {\r
+    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;\r
+}\r
+\r
+th {\r
+    font-weight: bold; \r
+    background-color: <?PHP echo $THEME->cellheading?>;\r
+}\r
+\r
+a:link {\r
+    text-decoration: none; \r
+    color: blue;\r
+}\r
+\r
+a:visited {\r
+    text-decoration: none; \r
+    color: blue;\r
+}\r
+\r
+a:hover {\r
+    text-decoration: underline; \r
+    color: red;\r
+}\r
+\r
+form { \r
+    margin-bottom: 0;\r
+}\r
+\r
+\r
+\r
+\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
+.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
+.forumpost {\r
+    border-width: 1px;\r
+    border-color: <?PHP echo $THEME->borders?>;\r
+    border-style: solid;\r
+}\r
+\r
+.forumpostheader {\r
+}\r
+\r
+.forumpostheadertopic {\r
+}\r
+\r
+.forumpostpicture {\r
+}\r
+\r
+.forumpostside {\r
+}\r
+\r
+.forumpostmessage {\r
+}\r
+\r
+\r
+.weeklyoutline {\r
+}\r
+\r
+.weeklyoutlineside {\r
+}\r
+\r
+.weeklyoutlinesidehighlight {\r
+}\r
+\r
+.weeklyoutlinecontent {\r
+}\r
+\r
+.weeklyoutlinecontenthighlight {\r
+}\r
+\r
+\r
+.topicsoutline {\r
+}\r
+\r
+.topicsoutlineside {\r
+}\r
+\r
+.topicsoutlinesidehighlight {\r
+}\r
+\r
+.topicsoutlinecontent {\r
+}\r
+\r
+.topicsoutlinecontenthighlight {\r
+}\r
+\r
+\r
+.siteinfo {\r
+    border-width: 1px;\r
+    border-color: <?PHP echo $THEME->borders?>;\r
+    border-style: solid;\r
+}\r
+\r
+.siteinfocontent {\r
+}\r
+\r
+\r
+.generalbox {\r
+    border-width: 1px;\r
+    border-color: <?PHP echo $THEME->borders?>;\r
+    border-style: solid;\r
+}\r
+\r
+.generalboxcontent {\r
+}\r
+\r