From 077641504f33d1849bd15d84c52de8c65371a72f Mon Sep 17 00:00:00 2001 From: moodler <moodler> Date: Mon, 16 Feb 2004 16:52:39 +0000 Subject: [PATCH] Cornflower, by Tom Murdock. A blue theme with some nice things about it. --- theme/cornflower/config.php | 17 ++ theme/cornflower/favicon.ico | Bin 0 -> 1718 bytes theme/cornflower/footer.html | 10 + theme/cornflower/header.html | 63 +++++ theme/cornflower/styles.php | 451 +++++++++++++++++++++++++++++++++++ 5 files changed, 541 insertions(+) create mode 100644 theme/cornflower/config.php create mode 100644 theme/cornflower/favicon.ico create mode 100644 theme/cornflower/footer.html create mode 100644 theme/cornflower/header.html create mode 100644 theme/cornflower/styles.php diff --git a/theme/cornflower/config.php b/theme/cornflower/config.php new file mode 100644 index 0000000000..e59ff996bd --- /dev/null +++ b/theme/cornflower/config.php @@ -0,0 +1,17 @@ +<?PHP // $Id$ + +$THEME->body = "#739fc4"; // Main page color +$THEME->cellheading = "#b3d1e7"; // Standard headings of big tables +$THEME->cellheading2 = "#85afc5"; // Highlight headings of tables +$THEME->cellcontent = "#FFFFFF"; // For areas with text +$THEME->cellcontent2 = "#doe2ee"; // Alternate colour +$THEME->borders = "#ffffff"; // Table borders +$THEME->highlight = "#85afc5"; // Highlighted text (eg after a search) +$THEME->hidden = "#c5ddee"; // To color things that are hidden +$THEME->autolink = "#dfeef6"; // 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. +?> diff --git a/theme/cornflower/favicon.ico b/theme/cornflower/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..fc9e43a22f4bd0dd95211c3ec6b9fbd9d69f90ef GIT binary patch literal 1718 zcmbW1L1<$|7{`CnmM(0>f`=aVqEuv|hXewq*mf-zw!$v95TU{zBD+YGbo-(~a;R(y zJ#-<kStyc24qb>Ca1S{|ELb5~b4W2@gd$;0mK+M^&_e@R=%K>r|GlQN?q$W9`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%LZ+VmC2SzBFohIVb1j>e9YNO*QeuFgIA z{EH4(T>JP1vFWwheR21Vd((G6@duxN=?{*-cgFIHKloe9ADoZ6jEv7K%OBs_@LeB$ P^z!vlv(;DhKRf$3kqAfE literal 0 HcmV?d00001 diff --git a/theme/cornflower/footer.html b/theme/cornflower/footer.html new file mode 100644 index 0000000000..724ced9561 --- /dev/null +++ b/theme/cornflower/footer.html @@ -0,0 +1,10 @@ + +<!-- START OF FOOTER --> +<center> +<hr size="1" noshade="noshade" /> +<p class="logininfo"><?php echo $loggedinas ?></p> +<p class="homelink"><?php echo $homelink ?></p> +</body> + +</td></table></body> +</html> diff --git a/theme/cornflower/header.html b/theme/cornflower/header.html new file mode 100644 index 0000000000..9cfbd58e93 --- /dev/null +++ b/theme/cornflower/header.html @@ -0,0 +1,63 @@ +<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 bgcolor="#006699"> +<table align="center" width="100%" border="1" cellpadding="5" bgcolor="#739fc4" <?php + if ($focus) { + echo " onload=setfocus()"; + } +?>> +<td> + + + +<?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="1" noshade="noshade" /> + +<?php } ?> + +<!-- END OF HEADER --> diff --git a/theme/cornflower/styles.php b/theme/cornflower/styles.php new file mode 100644 index 0000000000..673af31a8c --- /dev/null +++ b/theme/cornflower/styles.php @@ -0,0 +1,451 @@ +<?PHP /* $Id$ */ + +/// We use PHP so we can do value substitutions into the styles + + $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, td, th, li { + font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; +} + +th { + font-weight: bold; color:#333333; + background-color: <?PHP echo $THEME->cellheading?>; +} + +a:link { + color: #003399; + text-decoration: none; + font-variant: normal; font-weight: bold; +} + +a:visited { + color: #003399; + text-decoration: none; + font-variant: normal; font-weight: bold; +} + +a:hover { + color: #FFFFFF; + background: #006699; + text-decoration: none; + font-variant: normal; font-weight: bold; +} + +form { + margin-bottom: 0; +} + + + +.highlight { + background-color: <?PHP echo $THEME->highlight?>; +} + +.headingblock { + border-width: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; + -moz-border-radius: 3px; +} + +.navbar { +} + +.generaltable { +} + +.generaltableheader { +} + +.generaltablecell { +} + +.sideblock { + border-width: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; + -moz-border-radius-bottomleft: 20px; + -moz-border-radius-bottomright: 20px; +} + +.sideblockheading { +} + +.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 { + border-width: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; + -moz-border-radius: 3px; +} + +.forumpost { + border-width: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; + -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 { +} + +.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; +} + +.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: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; + -moz-border-radius: 20px; + padding: 10px; +} + + +.generalbox { + border-width: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; + -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: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; + -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 { +} + +.headermain { + font-size: large; + font-weight: bold; +} + +.headermenu { +} + +.headerhome { +} + +.headerhomemain { + font-size: x-large; + font-weight: bold; +} + +.headerhomemenu { +} + +.categorybox { +} + +.categoryboxcontent { + border-width: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; + -moz-border-radius: 20px; +} + +.categoryname { + font-size: larger; + font-weight: bold; +} + +.categorynumber { + font-size: larger; + font-weight: bold; +} + +.coursename { +} + +.coursebox { +} + +.courseboxcontent { + border-width: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; + -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: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; + -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: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; +} + +.smallinfo { +} + +.smallinfohead { + color: #555555; +} + +.tabledivider { + border-width: 1px; + border-color: <?PHP echo $THEME->borders?>; + border-style: solid; + border-left: 0px; + border-right: 0px; + border-top: 0px; +} + -- 2.39.5