Cleaned things up somewhat and made it more generic

This commit is contained in:
moodler 2003-01-05 09:53:30 +00:00
parent 8bbba2486c
commit 5dc09fb6ee
13 changed files with 94 additions and 42 deletions

View File

@ -33,10 +33,14 @@ If you change the;
It can hurt your eyes if you choose the wrong color ;-)
To change the logo to something that is more like you...
open up the file logo_empty.jpg that you can find inside the;
moodledir/theme/PowerAid/images/
edit the files frontlogo.jpg and smalllogo.jpg that you can find inside the;
moodledir/theme/poweraid/images/
For other configuration options for this theme please see the config.php
Other than that, i should think that most of the options for this theme
is simple to understand.
is simple to understand.
----
5 Jan 2003 - Martin made some changes to this theme and some of the
filenames in this file to match

View File

@ -33,9 +33,12 @@ $THEME->marginwidth = "0"; // Used in the theme <body> tag
$THEME->body = "#FFFFFF"; // Main page color
$THEME->cellheading = "#E8E8E8"; // Standard headings of big tables
$THEME->cellheading2 = "#DDDDDD"; // Highlight headings of 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->frontlogo = "images/frontlogo.jpg"; // Logo on front page
$THEME->smalllogo = "images/smalllogo.jpg"; // Header logo on other pages
?>

View File

@ -25,7 +25,7 @@
*/
?>
</td>
<td width="6" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/left_sidebar.jpg"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/left_sidebar.jpg" width="6" height="100" /></td>
<td width="6" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/left_sidebar.jpg"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/left_sidebar.jpg" width="6" height="100%" /></td>
</tr><tr>
<td height="9" width="6"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/right_corner_bott.jpg" width="6" height="9" /></td>
<td height="9" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/bott_bar.jpg"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/bott_bar.jpg" width="1" height="9" /></td>

View File

@ -47,54 +47,39 @@
<BODY <? if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\" topmargin=\"$THEME->topmargin\" leftmargin=\"$THEME->leftmargin\" marginheight=\"$THEME->marginheight\" marginwidth=\"$THEME->marginwidth\" />"; ?>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" width="<? echo $THEME->themewidth?>">
<tr>
<td width="263" height="76"><a href="index.php" title="Moodle, <?=$title ?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/logo.jpg" width="263" height="76" border="0" /></a></td>
<td height="76" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/top_middle.gif" align="center" valign="middle">&nbsp;</td>
<td align="right" width="229" height="76" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/top_right.gif" valign="middle"><?=$menu ?>&nbsp;<BR><?=$button ?>&nbsp;</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="<? echo $THEME->themewidth?>">
<tr>
<td width="1" bgcolor="<? echo $THEME->themeborder?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="center" valign="middle">
<? if ($home) { // This is what gets printed on the home page only ?>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" width="<? echo $THEME->themewidth?>">
<tr>
<td width="6" ><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" /></td>
<td valign="bottom" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/top_bar.jpg"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/top_bar.jpg" width="1" height="9" /></td>
<td width="6"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/left_corner_top.jpg" width="6" height="9" /></td>
</tr>
<tr>
<td width="6" bgcolor="<? echo $THEME->body?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="left" valign="top"><A HREF="<? echo $CFG->wwwroot?>"><img src="<? echo "$CFG->wwwroot/theme/$CFG->theme/$THEME->frontlogo" ?>" border="0" /></A></td>
<td width="6" bgcolor="<? echo $THEME->body?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/left_sidebar.jpg" width="6" height="100%" /></td>
</tr>
</table><table border="0" cellspacing="0" cellpadding="0" width="<? echo $THEME->themewidth?>">
<tr>
<td width="1" bgcolor="<? echo $THEME->themeborders?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="center" valign="middle" width="100%">
<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR>
<TD ALIGN=LEFT VALIGN=middle>&nbsp;<FONT SIZE=4><B><?=$heading?></B></FONT></TD>
<TD ALIGN=RIGHT VALIGN=middle><?=$menu ?>&nbsp;</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 ALIGN=LEFT VALIGN=middle>&nbsp;<FONT SIZE=4><B><?=$heading?></B></FONT></TD>
</TR>
</TABLE>
<? } else { // This is what gets printed on any other page (no heading, not home page) ?>
<? } ?>
<? if ($navigation) { // This is the navigation table with breadcrumbs ?>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD BGCOLOR="<?=$THEME->cellheading?>" VALIGN=middle>&nbsp;<FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT></TD>
</TR>
</TABLE>
<? } else if ($heading) { // If no navigation, but a heading, then print a line ?>
<? } ?>
</td>
<td width="1" bgcolor="<? echo $THEME->themeborder?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/side_right.gif" width="2" height="100%" /></td>
<td width="1" bgcolor="<? echo $THEME->themeborders?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/side_right.gif" width="2" height="100%" /></td>
</tr>
</table><table border="0" cellspacing="0" cellpadding="0" width="<? echo $THEME->themewidth?>">
<tr>
<td width="1" bgcolor="<? echo $THEME->themeborder?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="center" valign="top"><table border="0" width="100%">
<tr>
<td>&nbsp;</td>
</tr>
</table><table border="0" cellspacing="0" cellpadding="0" width="<? echo $THEME->themewidth?>">
<td width="1" bgcolor="<? echo $THEME->themeborders?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="center" valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="<? echo $THEME->themewidth?>">
<tr>
<td width="6"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" /></td>
<td valign="bottom" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/top_bar.jpg"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/top_bar.jpg" width="1" height="9" /></td>
@ -102,3 +87,61 @@
</tr><tr>
<td width="6" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/right_sidebar.jpg"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/right_sidebar.jpg" width="6" height="100" /></td>
<td align="left" valign="top">
<? } else if ($heading) { // This is what gets printed on any other page with a heading ?>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" width="<? echo $THEME->themewidth?>">
<tr>
<td width="6"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" /></td>
<td valign="bottom" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/top_bar.jpg"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/top_bar.jpg" width="1" height="9" /></td>
<td width="6"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/left_corner_top.jpg" width="6" height="9" /></td>
</tr>
<tr>
<td width="6" bgcolor="<? echo $THEME->body?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="left" valign="top"><A HREF="<? echo $CFG->wwwroot ?>"><img src="<? echo "$CFG->wwwroot/theme/$CFG->theme/$THEME->smalllogo" ?>" border="0" /></A></td>
<td width="6" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/left_sidebar.jpg"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/left_sidebar.jpg" width="6" height="100%" /></td>
</tr>
</table><table border="0" cellspacing="0" cellpadding="0" width="<? echo $THEME->themewidth?>">
<tr>
<td width="1" bgcolor="<? echo $THEME->themeborders?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="center" valign="middle">
<table WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR>
<TD ALIGN=LEFT VALIGN=middle>&nbsp;<FONT SIZE=4><B><?=$heading?></B></FONT></TD>
<TD ALIGN=RIGHT VALIGN=middle><?=$menu ?>&nbsp;</TD>
</TR>
</table>
<? if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar" VALIGN=middle>&nbsp;<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>
<? } ?>
</td>
<td width="1" bgcolor="<? echo $THEME->themeborders?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/side_right.gif" width="2" height="100%" /></td>
</tr>
</table><table border="0" cellspacing="0" cellpadding="0" width="<? echo $THEME->themewidth?>">
<tr>
<td width="1" bgcolor="<? echo $THEME->themeborders?>"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="center" valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="<? echo $THEME->themewidth?>">
<tr>
<td width="6"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" /></td>
<td valign="bottom" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/top_bar.jpg"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/top_bar.jpg" width="1" height="9" /></td>
<td width="6"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/left_corner_top.jpg" width="6" height="9" /></td>
</tr><tr>
<td width="6" background="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/right_sidebar.jpg"><img src="<?=$CFG->wwwroot?>/theme/<?=$CFG->theme ?>/images/right_sidebar.jpg" width="6" height="100" /></td>
<td align="left" valign="top">
<? } else { // This is what gets printed on any other page (no heading, not home page) ?>
<BLOCKQUOTE>
<? } ?>
<!-- End of header -->

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

View File

@ -152,6 +152,7 @@ form {
border-width: 1px;
border-color: <?PHP echo $THEME->borders?>;
border-style: solid;
font-weight: bold;
}
.weeklyoutline {
@ -181,6 +182,7 @@ form {
.forumpostmessage {
}
input {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;