Metal theme from A. Chavan

This commit is contained in:
moodler 2004-05-20 04:31:01 +00:00
parent b5305428bb
commit 4db1fd85e0
8 changed files with 839 additions and 0 deletions

14
theme/metal/README.txt Normal file
View File

@ -0,0 +1,14 @@
MOODLE THEME: METAL
To install the theme, copy the "metal" directory to moodle's "theme" directory.
This theme is designed by A. Chavan (chavan at users.sourceforge.net).
It is based on moodle's "standardwhite" theme.
It uses the background image from, and is inspired by:
http://www.alexking.org/software/wordpress/styles/sample.php?wpstyle=metaldreams
It has been tested with Mozilla. The header appears slightly different
on Safari (MacOSX) and MSIE6(WindowsXP).
$Lastupdate: Wed May 19 13:05:59 2004 chavan$

BIN
theme/metal/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

17
theme/metal/config.php Normal file
View File

@ -0,0 +1,17 @@
<?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 = "#999999"; // Table borders
$THEME->highlight = "#AAFFAA"; // Highlighted text (eg after a search)
$THEME->hidden = "#AAAAAA"; // To color things that are hidden
$THEME->autolink = "#EEEEEE"; // To color auto-generated links (eg glossary)
$THEME->custompix = false; // If true, then this theme must have a "pix"
// subdirectory that contains copies of all
// files from the moodle/pix directory
// See "cordoroyblue" for an up-to-date example.
?>

BIN
theme/metal/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

9
theme/metal/footer.html Normal file
View File

@ -0,0 +1,9 @@
<!-- START OF FOOTER -->
<div class="footer">
<p class="logininfo"><?php echo $loggedinas ?></p>
<p class="homelink"><?php echo $homelink ?></p>
</div>
</body>
</html>

BIN
theme/metal/gradient.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

59
theme/metal/header.html Normal file
View File

@ -0,0 +1,59 @@
<html<?php echo $direction ?>>
<head>
<?php echo $meta ?>
<title><?php echo $title ?></title>
<meta name="keywords" content="moodle, <?php echo $title ?> " />
<link rel="stylesheet" type="text/css" href="<?php echo $styles ?>" />
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?>
</head>
<body<?php
if ($focus) {
echo " onload=setfocus()";
}
echo " bgcolor=\"$THEME->body\">";
?>
<?php if ($home) { // This is what gets printed on the home page only ?>
<table width="100%" cellpadding="10" cellspacing="0" border="0" class="headerhome">
<tr>
<td valign="top" class="headerhomemain"><?php echo $heading?></td>
<td align="right" valign="top" class="headerhomemenu"><?php echo $menu ?></td>
</tr>
</table>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading ?>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="header">
<tr>
<td valign="top" class="headermain"><?php echo $heading?></td>
<td align="right" valign="top" class="headermenu"><?php echo $menu ?></td>
</tr>
</table>
<?php } ?>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td bgcolor="<?php echo $THEME->cellheading?>" class="navbar">
<font size="2"><b><?php print_navigation("$navigation"); ?></b></font>
</td>
<td bgcolor="<?php echo $THEME->cellheading?>" class="navbar" align="right" width="20" valign="top"><?php
echo $button;
?></td>
</tr>
</table>
<img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height="5" width="1" /><br />
<?php } else if ($heading) { // If no navigation, but a heading, then print a line ?>
<hr size="2" />
<?php } ?>
<!-- END OF HEADER -->

740
theme/metal/styles.php Normal file
View File

@ -0,0 +1,740 @@
<?PHP /* $Id$ */
/// We use PHP so we can do value substitutions into the styles
if (!isset($themename)) {
$themename = NULL;
}
$nomoodlecookie = true;
require_once("../../config.php");
$themeurl = style_sheet_setup(filemtime("styles.php"), 300, $themename);
/// 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 {
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
background-color: rgb(210,210,210);
background-image: url(<?PHP echo "$themeurl"?>/background.png);
background-repeat: repeat;
background-attachment: scroll;
}
td, th, li {
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}
th {
font-weight: bold;
background-color: <?PHP echo $THEME->cellheading?>;
background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
}
a:link {
text-decoration: none;
color: #000066;
}
a:visited {
text-decoration: none;
color: #000066;
}
a:hover {
text-decoration: underline;
color: #cc0000;
}
form {
margin-bottom: 0;
}
.highlight {
background-color: <?PHP echo $THEME->highlight?>;
}
.headingblock {
background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
// -moz-border-radius: 3px;
}
.navbar {
background-color: #bbbbbb;
border-top : 2px groove rgb(250,250,250;
border-bottom: 2px groove rgb(250,250,250);
}
.generaltable {
}
.generaltableheader {
background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
}
.generaltablecell {
}
.sideblock {
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
// -moz-border-radius-bottomleft: 20px;
// -moz-border-radius-bottomright: 20px;
}
.sideblockheading {
background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
}
.sideblockmain {
// -moz-border-radius-bottomleft: 20px;
// -moz-border-radius-bottomright: 20px;
}
.sideblocklinks {
}
.sideblocklatestnews {
// -moz-border-radius-bottomleft: 20px;
// -moz-border-radius-bottomright: 20px;
}
.sideblockrecentactivity {
// -moz-border-radius-bottomleft: 20px;
// -moz-border-radius-bottomright: 20px;
}
.outlineheadingblock {
background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
// -moz-border-radius: 3px;
}
.forumpost {
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
// -moz-border-radius-bottomleft: 20px;
// -moz-border-radius-bottomright: 20px;
}
.forumpostpicture {
}
.forumpostside {
// -moz-border-radius-bottomleft: 20px;
}
.forumpostmessage {
// -moz-border-radius-bottomright: 20px;
}
.weeklyoutline {
}
.weeklyoutlineside {
}
.weeklyoutlinesidehighlight {
}
.weeklyoutlinesidehidden {
background-color: <?PHP echo $THEME->hidden?>;
}
.weeklyoutlinecontent {
border-color: <?PHP echo $THEME->cellheading ?>;
border-style: solid;
border-width: 1px;
border-left: 0px;
border-right: 0px;
}
.weeklyoutlinecontenthighlight {
border-color: <?PHP echo $THEME->cellheading2 ?>;
border-style: solid;
border-width: 1px;
border-left: 0px;
border-right: 0px;
}
.weeklyoutlinecontenthidden {
border-color: <?PHP echo $THEME->hidden ?>;
border-style: solid;
border-width: 1px;
border-left: 0px;
border-right: 0px;
}
.weeklydatetext {
font-size: medium;
font-weight: bold;
color: <?PHP echo $THEME->cellheading2?>;
}
.topicsoutline {
}
.topicsoutlineside {
border: 1px groove rgb(250,250,250);
}
.topicsoutlinesidehighlight {
}
.topicsoutlinesidehidden {
background-color: <?PHP echo $THEME->hidden?>;
}
.topicsoutlinecontent {
border-color: <?PHP echo $THEME->cellheading ?>;
border-style: solid;
border-width: 1px;
border-left: 0px;
border-right: 0px;
border: 1px groove rgb(250,250,250);
}
.topicsoutlinecontenthighlight {
border-color: <?PHP echo $THEME->cellheading2 ?>;
border-style: solid;
border-width: 1px;
border-left: 0px;
border-right: 0px;
}
.topicsoutlinecontenthidden {
border-color: <?PHP echo $THEME->hidden ?>;
border-style: solid;
border-width: 1px;
border-left: 0px;
border-right: 0px;
}
.siteinfo {
}
.siteinfocontent {
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
// -moz-border-radius: 20px;
padding: 10px;
}
.generalbox {
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
// -moz-border-radius-topleft: 3px;
// -moz-border-radius-topright: 3px;
// -moz-border-radius-bottomleft: 15px;
// -moz-border-radius-bottomright: 15px;
}
.generalboxcontent {
// -moz-border-radius-topleft: 3px;
// -moz-border-radius-topright: 3px;
// -moz-border-radius-bottomleft: 15px;
// -moz-border-radius-bottomright: 15px;
}
.noticebox {
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
// -moz-border-radius: 3px;
}
.noticeboxcontent {
text-align: center;
}
.feedbacktext {
color: <?PHP echo $THEME->cellheading2?>;
}
a.dimmed:link {
text-decoration: none;
color: <?PHP echo $THEME->hidden?>;
}
a.dimmed:visited {
text-decoration: none;
color: <?PHP echo $THEME->hidden?>;
}
a.dimmed:hover {
text-decoration: underline;
color: red;
}
.dimmed_text {
color: #AAAAAA;
}
.forumpostheader {
}
.forumpostheadertopic {
}
.forumpostheaderpicture {
}
.forumpostheadername {
font-size: small;
}
.forumpostheaderreplies {
font-size: small;
}
.forumpostheaderdate {
font-size: small;
}
.logininfo {
font-size: x-small;
}
.homelink {
font-size: x-small;
}
.teacheronly {
color: #990000;
}
.header {
// background-color: #999999;
// border: 2px groove rgb(250,250,250);
// padding: 0.5em;
// background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
padding-bottom: 0.25em;
}
.headermain {
font-size: large;
font-weight: bold;
}
.headermenu {
}
.headerhome {
}
.headerhomemain {
font-size: x-large;
font-weight: bold;
}
.headerhomemenu {
}
.categorybox {
}
.categoryboxcontent {
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
// -moz-border-radius: 20px;
}
.categoryname {
font-size: larger;
font-weight: bold;
}
.categorynumber {
font-size: larger;
font-weight: bold;
}
.coursename {
}
.coursebox {
}
.courseboxcontent {
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
// -moz-border-radius: 20px;
}
.courseboxinfo {
}
.courseboxsummary {
}
a.autolink:link {
text-decoration: none;
color: #000000;
background-color: <?PHP echo $THEME->autolink?>;
}
a.autolink:visited {
text-decoration: none;
color: #000000;
background-color: <?PHP echo $THEME->autolink?>;
}
a.autolink:hover {
text-decoration: underline;
color: red;
}
.userinfobox {
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
// -moz-border-radius-bottomleft: 20px;
// -moz-border-radius-bottomright: 20px;
margin-bottom: 5px;
}
.userinfoboxside {
// -moz-border-radius-bottomleft: 20px;
}
.userinfoboxcontent {
// -moz-border-radius-bottomright: 20px;
}
.userinfoboxsummary {
}
.userinfoboxlinkcontent {
// -moz-border-radius-bottomright: 20px;
}
.generaltab {
// -moz-border-radius-topleft: 15px;
// -moz-border-radius-topright: 15px;
}
.generaltabselected {
// -moz-border-radius-topleft: 15px;
// -moz-border-radius-topright: 15px;
}
.forumheaderlist {
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
}
.smallinfo {
}
.smallinfohead {
color: #555555;
}
.tabledivider {
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
// border-left: 0px;
// border-right: 0px;
// border-top: 0px;
}
.headingblockcontent {
}
TABLE.calendarmini {
width: 100%;
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
font-size: .7em;
margin: 0px;
padding: 2px;
// -moz-border-radius: 10px;
}
TABLE.calendarmonth {
width: 100%;
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
margin: 0px;
padding: 2px;
// -moz-border-radius: 10px;
}
TABLE.calendarmini TBODY TD {
text-align: center;
vertical-align: center;
width: 14%;
border-width: 2px;
border-color: <?PHP echo $THEME->cellcontent2?>;
border-style: groove;
// -moz-border-radius: 4px;
}
TABLE.calendarmonth TBODY TD {
width: 14%;
border-width: 2px;
border-color: <?PHP echo $THEME->cellcontent2?>;
border-style: solid;
vertical-align: top;
}
.cal_event_global {
background-color: #99cc99;
border: 2px #99cc99 solid !important;
}
.cal_event_course {
background-color: #ff9966;
border: 2px #ff9966 solid !important;
}
.cal_event_group {
background-color: orange;
border: 2px orange solid !important;
}
.cal_event_user {
background-color: #ffcc99;
border: 2px #ffcc99 solid !important;
}
.cal_duration_global {
border-top: 2px #99cc99 solid !important;
border-bottom: 2px #99cc99 solid !important;
}
.cal_duration_course {
border-top: 2px #ff9966 solid !important;
border-bottom: 2px #ff9966 solid !important;
}
.cal_duration_user {
border-top: 2px #ffcc99 solid !important;
border-bottom: 2px #ffcc99 solid !important;
}
.cal_duration_group {
border-top: 2px orange solid !important;
border-bottom: 2px orange solid !important;
}
.cal_weekend {
color: red;
}
.cal_today {
border: 2px black solid !important;
}
TABLE.calendarmonth TBODY TD TABLE {
margin-top: 0px;
margin-left: 0px;
font-size: 0.75em;
line-height: 1.2em;
}
TABLE.calendarmonth TBODY TD TABLE TD {
border: none;
}
TABLE.calendarmonth TBODY TD DIV {
margin-top: 0px;
margin-left: 0px;
font-size: 0.75em;
line-height: 1.2em;
}
TABLE.calendarmini THEAD TD {
font-size: .95em;
text-align: center;
vertical-align: center;
}
TABLE.calendarmonth THEAD TD {
text-align: center;
vertical-align: center;
padding-bottom: 3px;
border-bottom: 2px <?PHP echo $THEME->borders?> solid;
}
.sideblockmain .cal_event {
font-size: 0.8em;
font-weight: bold;
}
.sideblockmain .cal_event_date {
font-size: 0.6em;
}
.mycalendar {
// -moz-border-radius-bottomleft: 20px;
// -moz-border-radius-bottomright: 20px;
}
.mycalendar .cal_event {
font-weight: bold;
}
.mycalendar .cal_event_date {
font-size: 0.8em;
}
.mycalendar TABLE.cal_filters {
width: 100%;
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
margin: 0px;
padding: 2px;
// -moz-border-radius: 10px;
}
.mycalendar .cal_filters THEAD TD {
border-bottom: 2px <?PHP echo $THEME->borders?> solid;
margin: 0px;
padding: 2px;
}
.mycalendar .cal_event_table {
width: 100%;
border-width: 2px;
border-color: <?PHP echo $THEME->borders?>;
border-style: groove;
margin: 0px;
padding: 2px;
// -moz-border-radius: 10px;
}
.mycalendar .cal_event_table THEAD {
background-color: <?PHP echo $THEME->cellcontent?>;
text-align: center;
font-weight: bold;
}
.sideblockmain HR {
height: 1px;
border: none;
border-top: 1px #999 solid;
margin-top: 4px;
margin-bottom: 4px;
}
.mycalendar HR {
height: 1px;
border: none;
border-top: 1px #999 solid;
margin-top: 4px;
margin-bottom: 4px;
}
.calendarexpired {
color: red;
font-weight: bold;
}
.calendarreferer {
font-weight: bold;
}
TD.cal_event_description {
width: 80%;
border-left: 2px <?php echo $THEME->borders?> solid;
vertical-align: top;
padding: 5px;
}
.cal_popup_fg {
background-color: <?php echo $THEME->cellcontent?>;
font-size: 75%;
font-family: Courier;
padding: 0px;
margin: 0px;
}
.cal_popup_bg {
border-top: 2px #ffcc66 solid;
border-left: 2px #ffcc66 solid;
border-right: 2px #663300 solid;
border-bottom: 2px #663300 solid;
background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
padding: 0px;
margin: 0px;
}
.cal_popup_caption {
font-size: 75%;
font-weight: bold;
font-family: sans-serif;
margin: 5px;
}
.cal_popup_close {
font-size: 75%;
font-weight: bold;
font-family: Tahoma, Helvetica, sans-serif;
margin-right: 5px;
}
.sideblock .cal_controls {
text-align: center;
font-size: 9px;
}
A IMG {
border: none;
}
TABLE.formtable TD {
padding: 9px;
}
.footer {
text-align: center;
margin-left: 25%;
margin-right: 25%;
}
.footer .logininfo {
padding: 0.50em;
border-top: 2px groove rgb(250,250,250);
}