Permalink
Browse files

upgraded for 1.5

  • Loading branch information...
mits
mits committed Mar 5, 2005
1 parent ac8e16b commit 2ea70bbe69d251ecb49be6afccbf5c0f8221d031
@@ -0,0 +1,4 @@
+Theme Ocean Blue
+------------------------
+Author: Mitsuhiro Yoshida
+http://mitstek.com/
View
@@ -1,17 +1,67 @@
<?PHP // $Id$
-$THEME->body = "#AAAAFF"; // Main page color
-$THEME->cellheading = "#CCCCFF"; // Standard headings of big tables
-$THEME->cellheading2 = "#8080c0"; // Highlight headings of tables
-$THEME->cellcontent = "#F0F0FF"; // For areas with text
-$THEME->cellcontent2 = "#CCCCFF"; // Alternate colour
-$THEME->borders = "#AAAAFF"; // Table borders
-$THEME->highlight = "#AAFFAA"; // Highlighted text (eg after a search)
-$THEME->hidden = "#AAAAAA"; // To color things that are hidden
-$THEME->autolink = "#DDDDDD"; // 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.
+////////////////////////////////////////////////////////////////////////////////
+/// This file contains a few configuration variables that control
+/// how Moodle uses this theme.
+////////////////////////////////////////////////////////////////////////////////
+
+
+$THEME->sheets = array('styles_layout', 'styles_fonts', 'styles_color');
+
+/// This variable is an array containing the names of all the
+/// stylesheet files you want included in this theme, and in what order
+////////////////////////////////////////////////////////////////////////////////
+
+
+$THEME->standardsheets = false;
+
+/// This variable can be set to an array containing
+/// filenames from the *STANDARD* theme. If the
+/// array exists, it will be used to choose the
+/// files to include in the standard style sheet.
+/// When false, then no files are used.
+/// When true or NON-EXISTENT, then ALL standard files are used.
+/// This parameter can be used, for example, to prevent
+/// having to override too many classes.
+/// Note that the trailing .css should not be included
+/// eg $THEME->standardsheets = array('styles_layout', 'styles_fonts',
+/// 'styles_color', 'styles_moz');
+////////////////////////////////////////////////////////////////////////////////
+
+
+$THEME->parent = '';
+
+/// This variable can be set to the name of a parent theme
+/// which you want to have included before the current theme.
+/// This can make it easy to make modifications to another
+/// theme without having to actually change the files
+/// If this variable is empty or false then a parent theme
+/// is not used.
+////////////////////////////////////////////////////////////////////////////////
+
+
+$THEME->parentsheets = false;
+
+/// This variable can be set to an array containing
+/// filenames from a chosen *PARENT* theme. If the
+/// array exists, it will be used to choose the
+/// files to include in the standard style sheet.
+/// When false, then no files are used.
+/// When true or NON-EXISTENT, then ALL standard files are used.
+/// This parameter can be used, for example, to prevent
+/// having to override too many classes.
+/// Note that the trailing .css should not be included
+/// eg $THEME->standardsheets = array('styles_layout', 'styles_fonts',
+/// 'styles_color', 'styles_moz');
+////////////////////////////////////////////////////////////////////////////////
+
+
+$THEME->custompix = false;
+
+/// If true, then this theme must have a "pix"
+/// subdirectory that contains copies of all
+/// files from the moodle/pix directory, plus a
+/// "pix/mod" directory containing all the icons
+/// for all the activity modules.
+////////////////////////////////////////////////////////////////////////////////
?>
@@ -0,0 +1,102 @@
+<?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);
+
+///
+/// You can hardcode colours in this file if you
+/// don't care about this.
+
+?>
+body {
+ background-color:#FFFFFF;
+}
+p, a {
+ font-size:small;
+}
+
+h1, h2, h3 {
+ padding-left:0px;
+ background-color:transparent;
+ color:#555555;
+}
+
+h1 {
+ font-size:1.7em;
+ margin:0.5em 0 0;
+}
+
+h2 {
+ font-size:1.4em;
+ margin:0.5em 0 0;
+}
+
+h3 {
+ font-size:1.2em;
+ margin:0.5em 0 0;
+}
+
+
+li {
+ margin-bottom: 10px;
+}
+
+ul {
+ margin-top: 10px;
+}
+
+.question {
+ font-size: medium;
+ font-weight: normal;
+ border: 1px dotted;
+ padding: 10px;
+ background-color: #EEEEEE;
+}
+
+.answer {
+ font-size: medium;
+ border: none;
+ padding-left: 40px;
+}
+
+.normaltext {
+ font-size: medium;
+ border: none;
+ margin-left: 30px;
+}
+
+.answercode {
+ font-family: "Courier New", Courier, mono;
+ font-size: small;
+ border: none;
+ padding-left: 60px;
+}
+
+.questionlink {
+ font-size: medium;
+ border: none;
+ padding-left: 40px;
+}
+
+.examplecode {
+ font-family: "Courier New", Courier, mono;
+ font-size: small;
+ border: thin dashed #999999;
+ background-color: #FBFBFB;
+ margin: auto;
+ margin-top: 0.5em;
+ padding: 30px;
+ height: auto;
+ width: auto;
+}
+
+.spaced {
+ margin-bottom: 30px;
+}
@@ -1,9 +1,20 @@
+</div> <!-- end div containerContent -->
<!-- START OF FOOTER -->
+<div id="footer">
<center>
<hr size="1" noshade="noshade" />
<?php echo $loggedinas ?>
<p class="homelink"><?php echo $homelink ?></p>
+<?php if (isadmin()) { ?>
+<hr size="1" noshade="noshade" />
+<p>
+<a href="http://validator.w3.org/check?verbose=1&amp;ss=1&amp;uri=<?php echo urlencode(qualified_me()) ?>">Validate HTML</a> |
+<a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&amp;url1=<?php echo urlencode(qualified_me()) ?>">Section 508 Check</a>
+</p>
+<?php } ?>
</center>
+</div>
+</div>
</body>
</html>
@@ -1,61 +1,45 @@
-<!-- No doctype yet - we are slowly migrating towards XHTML transitional 1.0 -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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"); ?>
+ <?php echo $meta ?>
+ <meta name="keywords" content="moodle, <?php echo $title ?> " />
+ <title><?php echo $title ?></title>
+ <link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" />
+ <?php include("$CFG->javascript"); ?>
</head>
-<body<?php
- echo " $bodytags";
- 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>
+<body<?php
+ echo " $bodytags";
+ if ($focus) {
+ echo " onload=\"setfocus()\"";
+ }
+ ?>>
+
+<div id="page">
+<?php if ($home) { // This is what gets printed on the home page only
+?>
+ <div id="header-home">
+ <div class="headermain"><?php echo $heading ?></div>
+ <div class="headermenu"><?php echo $menu ?></div>
+ </div>
+<?php } else if ($heading) { // This is what gets printed on any other page with a heading
+?>
+ <div id="header">
+ <div class="headermain"><?php echo $heading ?></div>
+ <div class="headermenu"><?php echo $menu ?></div>
+ </div>
<?php } ?>
-
-
+ <div class="clearer">&nbsp;</div>
<?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" />
-
+ <div id="nav-bar">
+ <div id="breadcrumb"><?php print_navigation("$navigation"); ?></div>
+ <div id="navbutton"><?php echo $button; ?></div>
+ </div>
+<?php } else if ($heading) { // If no navigation, but a heading, then print a line
+?>
+ <hr size="1" noshade="noshade" />
<?php } ?>
-
-<!-- END OF HEADER -->
+ <div class="clearer">&nbsp;</div>
+ <!-- END OF HEADER -->
+ <div id="content">
Oops, something went wrong.

0 comments on commit 2ea70bb

Please sign in to comment.