mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
New standard white theme
This commit is contained in:
parent
6422da3570
commit
c07e87c6ee
11
theme/standardwhite/config.php
Normal file
11
theme/standardwhite/config.php
Normal file
@ -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)
|
||||
|
||||
?>
|
BIN
theme/standardwhite/favicon.ico
Normal file
BIN
theme/standardwhite/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
10
theme/standardwhite/footer.html
Normal file
10
theme/standardwhite/footer.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!-- START OF FOOTER -->
|
||||
<CENTER>
|
||||
<HR SIZE=1 NOSHADE>
|
||||
<FONT SIZE=1>
|
||||
<P><?=$loggedinas ?></P>
|
||||
<P><?=$homelink ?></P>
|
||||
</FONT>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
BIN
theme/standardwhite/gradient.jpg
Executable file
BIN
theme/standardwhite/gradient.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 488 B |
53
theme/standardwhite/header.html
Normal file
53
theme/standardwhite/header.html
Normal file
@ -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 -->
|
189
theme/standardwhite/styles.php
Normal file
189
theme/standardwhite/styles.php
Normal file
@ -0,0 +1,189 @@
|
||||
<?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.
|
||||
///
|
||||
/// New classes always get added to the end of the file.
|
||||
///
|
||||
/// Note that a group of standard colours are all
|
||||
/// defined in config.php in this directory. The
|
||||
/// reason for this is because Moodle uses the same
|
||||
/// colours to provide oldstyle formatting for
|
||||
/// browsers without CSS.
|
||||
///
|
||||
/// You can hardcode colours in this file if you
|
||||
/// don't care about this.
|
||||
|
||||
?>
|
||||
|
||||
|
||||
body, td, th, li {
|
||||
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: bold;
|
||||
background-color: <?PHP echo $THEME->cellheading?>;
|
||||
}
|
||||
|
||||
a:link {
|
||||
text-decoration: none;
|
||||
color: blue;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
text-decoration: none;
|
||||
color: blue;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
color: red;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.forumpost {
|
||||
border-width: 1px;
|
||||
border-color: <?PHP echo $THEME->borders?>;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.forumpostheader {
|
||||
}
|
||||
|
||||
.forumpostheadertopic {
|
||||
}
|
||||
|
||||
.forumpostpicture {
|
||||
}
|
||||
|
||||
.forumpostside {
|
||||
}
|
||||
|
||||
.forumpostmessage {
|
||||
}
|
||||
|
||||
|
||||
.weeklyoutline {
|
||||
}
|
||||
|
||||
.weeklyoutlineside {
|
||||
}
|
||||
|
||||
.weeklyoutlinesidehighlight {
|
||||
}
|
||||
|
||||
.weeklyoutlinecontent {
|
||||
}
|
||||
|
||||
.weeklyoutlinecontenthighlight {
|
||||
}
|
||||
|
||||
|
||||
.topicsoutline {
|
||||
}
|
||||
|
||||
.topicsoutlineside {
|
||||
}
|
||||
|
||||
.topicsoutlinesidehighlight {
|
||||
}
|
||||
|
||||
.topicsoutlinecontent {
|
||||
}
|
||||
|
||||
.topicsoutlinecontenthighlight {
|
||||
}
|
||||
|
||||
|
||||
.siteinfo {
|
||||
border-width: 1px;
|
||||
border-color: <?PHP echo $THEME->borders?>;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.siteinfocontent {
|
||||
}
|
||||
|
||||
|
||||
.generalbox {
|
||||
border-width: 1px;
|
||||
border-color: <?PHP echo $THEME->borders?>;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.generalboxcontent {
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user