From d726ea77f9ba9fa0e2b0429be7bba619172a00a4 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 2 Apr 2005 15:29:47 +0000 Subject: [PATCH] Updated to 1.5 (needs work though) --- theme/standardlogo/config.php | 133 +++++- theme/standardlogo/footer.html | 23 +- theme/standardlogo/header.html | 93 ++-- theme/standardlogo/styles.php | 752 +-------------------------------- 4 files changed, 187 insertions(+), 814 deletions(-) diff --git a/theme/standardlogo/config.php b/theme/standardlogo/config.php index 33fd176b8ea..68f9af7b47a 100644 --- a/theme/standardlogo/config.php +++ b/theme/standardlogo/config.php @@ -1,17 +1,124 @@ body = "#FFEECE"; // Main page color -$THEME->cellheading = "#FFD991"; // Standard headings of big tables -$THEME->cellheading2 = "#FFC85F"; // Highlight headings of tables -$THEME->cellcontent = "#FFFFFF"; // For areas with text -$THEME->cellcontent2 = "#FEE6B9"; // Alternate colour -$THEME->borders = "#FFC85F"; // 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) +//////////////////////////////////////////////////////////////////////////////// +/// This file contains a few configuration variables that control +/// how Moodle uses this theme. +//////////////////////////////////////////////////////////////////////////////// + + +$THEME->sheets = array('gradients'); + +/// 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 = array('styles_layout','styles_fonts','styles_color','styles_moz'); + +/// 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'); +//////////////////////////////////////////////////////////////////////////////// + + +$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->parentsheets = array('styles_layout','styles_fonts','styles_color'); +//////////////////////////////////////////////////////////////////////////////// + + +$THEME->modsheets = true; + +/// When this is enabled, then this theme will search for +/// files named "styles.php" inside all Activity modules and +/// include them. This allows modules to provide some basic +/// layouts so they work out of the box. +/// It is HIGHLY recommended to leave this enabled. + + +$THEME->blocksheets = true; + +/// When this is enabled, then this theme will search for +/// files named "styles.php" inside all Block modules and +/// include them. This allows Blocks to provide some basic +/// layouts so they work out of the box. +/// It is HIGHLY recommended to leave this enabled. + + +$THEME->langsheets = false; + +/// By setting this to true, then this theme will search for +/// a file named "styles.php" inside the current language +/// directory. This allows different languages to provide +/// different styles. + +$THEME->navmenuwidth = 50; + +/// You can use this to control the cutoff point for strings +/// in the navmenus (list of activities in popup menu etc) +/// Default is 50 characters wide. + + +$THEME->makenavmenulist = false; + +/// By setting this to true, then you will have access to a +/// new variable in your header.html and footer.html called +/// $navmenulist ... this contains a simple XHTML menu of +/// all activities in the current course, mostly useful for +/// creating popup navigation menus and so on. + + +$THEME->resource_mp3player_colors = + 'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'. + 'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'. + 'font=Arial&fontColour=3333FF&buffer=10&waitForPlay=no&autoPlay=yes'; + +/// With this you can control the colours of the "big" MP3 player +/// that is used for MP3 resources. + + +$THEME->filter_mediaplugin_colors = + 'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'. + 'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'. + 'waitForPlay=yes'; + +/// ...And this controls the small embedded player + + +$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. +//////////////////////////////////////////////////////////////////////////////// -$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/standardlogo/footer.html b/theme/standardlogo/footer.html index 160cf23dacb..86679a52e9d 100644 --- a/theme/standardlogo/footer.html +++ b/theme/standardlogo/footer.html @@ -1,9 +1,24 @@ - -
+ + +
+ + + +
+

+Validate HTML | +Section 508 Check | +WCAG 1 (2,3) Check +

+ + + + + + + diff --git a/theme/standardlogo/header.html b/theme/standardlogo/header.html index f3f112461ef..f90754fa6e6 100644 --- a/theme/standardlogo/header.html +++ b/theme/standardlogo/header.html @@ -1,25 +1,24 @@ - + > - -<?php echo $title ?> - - -wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> -javascript"); ?> + + + <?php echo $title ?> + wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> + javascript"); ?> -body\">"; -?> +> + +
- - -dirroot/logo.jpg")) { +dirroot/logo.jpg")) { $standardlogo = "$CFG->wwwroot/logo.jpg"; } else if (file_exists("$CFG->dataroot/1/logo.jpg")) { if (empty($CFG->slasharguments)) { @@ -31,45 +30,27 @@ $standardlogo = "$CFG->wwwroot/theme/$CFG->theme/logo.jpg"; } ?> - - - - - - -
- - - - - - - - -
- +
+
+
+
+ + - - +
 
- - - - - - -
-
- - - -
- + + +
- - +
 
+ +
diff --git a/theme/standardlogo/styles.php b/theme/standardlogo/styles.php index c75f327769b..d897beac9c4 100644 --- a/theme/standardlogo/styles.php +++ b/theme/standardlogo/styles.php @@ -1,748 +1,18 @@ - - -body, td, th, li { - font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; -} - -th { - font-weight: bold; - background-color: cellheading?>; - background-image: url(/gradient.jpg); -} - -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: highlight?>; -} - -.headingblock { - background-image: url(/gradient.jpg); - border-width: 1px; - border-color: borders?>; - border-style: solid; - -moz-border-radius: 3px; -} - -.navbar { - background-image: url(/gradient.jpg); -} - -.generaltable { -} - -.generaltableheader { - background-image: url(/gradient.jpg); -} - -.generaltablecell { -} - -.sideblock { - border-width: 1px; - border-color: borders?>; - border-style: solid; - -moz-border-radius-bottomleft: 20px; - -moz-border-radius-bottomright: 20px; -} - -.sideblockheading { - background-image: url(/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(/gradient.jpg); - border-width: 1px; - border-color: borders?>; - border-style: solid; - -moz-border-radius: 3px; -} - -.forumpost { - border-width: 1px; - border-color: 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: hidden?>; -} - -.weeklyoutlinecontent { - border-color: cellheading ?>; - border-style: solid; - border-width: 1px; - border-left: 0px; - border-right: 0px; -} - -.weeklyoutlinecontenthighlight { - border-color: cellheading2 ?>; - border-style: solid; - border-width: 1px; - border-left: 0px; - border-right: 0px; -} - -.weeklyoutlinecontenthidden { - border-color: hidden ?>; - border-style: solid; - border-width: 1px; - border-left: 0px; - border-right: 0px; -} - -.weeklydatetext { - font-size: medium; - font-weight: bold; - color: cellheading2?>; -} - -.topicsoutline { -} - -.topicsoutlineside { -} - -.topicsoutlinesidehighlight { -} - -.topicsoutlinesidehidden { - background-color: hidden?>; -} - -.topicsoutlinecontent { - border-color: cellheading ?>; - border-style: solid; - border-width: 1px; - border-left: 0px; - border-right: 0px; -} - -.topicsoutlinecontenthighlight { - border-color: cellheading2 ?>; - border-style: solid; - border-width: 1px; - border-left: 0px; - border-right: 0px; -} - -.topicsoutlinecontenthidden { - border-color: hidden ?>; - border-style: solid; - border-width: 1px; - border-left: 0px; - border-right: 0px; -} - -.siteinfo { -} - -.siteinfocontent { - border-width: 1px; - border-color: borders?>; - border-style: solid; - -moz-border-radius: 20px; - padding: 10px; -} - - -.generalbox { - border-width: 1px; - border-color: 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: borders?>; - border-style: solid; - -moz-border-radius: 3px; -} - -.noticeboxcontent { - text-align: center; -} - - -.feedbacktext { - color: cellheading2?>; -} - -a.dimmed:link { - text-decoration: none; - color: hidden?>; -} - -a.dimmed:visited { - text-decoration: none; - color: 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: 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: borders?>; - border-style: solid; - -moz-border-radius: 20px; -} - -.courseboxinfo { -} - -.courseboxsummary { - font-size: small; -} - -a.autolink:link { - text-decoration: none; - color: #000000; - background-color: autolink?>; -} - -a.autolink:visited { - text-decoration: none; - color: #000000; - background-color: autolink?>; -} - -a.autolink:hover { - text-decoration: underline; - color: red; -} - -.userinfobox { - border-width: 1px; - border-color: 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: borders?>; - border-style: solid; -} - -.smallinfo { -} - -.smallinfohead { - color: #555555; -} - -.tabledivider { - border-width: 1px; - border-color: borders?>; - border-style: solid; - border-left: 0px; - border-right: 0px; - border-top: 0px; -} - -.headingblockcontent { -} - -TABLE.calendarmini { - width: 100%; - border-width: 1px; - border-color: borders?>; - border-style: solid; - font-size: .7em; - margin: 0px; - padding: 2px; - -moz-border-radius: 10px; -} - -TABLE.calendarmonth { - width: 100%; - border-width: 1px; - border-color: borders?>; - border-style: solid; - margin: 0px; - padding: 2px; - -moz-border-radius: 10px; -} - -TABLE.calendarmini TBODY TD { - text-align: center; - vertical-align: center; - border-width: 2px; - border-color: cellcontent2?>; - border-style: solid; - -moz-border-radius: 4px; -} - -TABLE.calendarmonth TBODY TD { - width: 14%; - border-width: 2px; - border-color: cellcontent2?>; - border-style: solid; - vertical-align: top; -} - -.cal_event_global { - background-color: #2EBA0E; - border: 2px #2EBA0E solid !important; -} - -.cal_event_course { - background-color: #ff9966; - border: 2px #ff9966 solid !important; -} - -.cal_event_group { - background-color: #FBBB23; - border: 2px #FBBB23 solid !important; -} - -.cal_event_user { - background-color: #A1BECB; - border: 2px #A1BECB solid !important; -} - -.cal_duration_global { - border-top: 2px #2EBA0E solid !important; - border-bottom: 2px #2EBA0E solid !important; -} - -.cal_duration_course { - border-top: 2px #ff9966 solid !important; - border-bottom: 2px #ff9966 solid !important; -} - -.cal_duration_user { - border-top: 2px #A1BECB solid !important; - border-bottom: 2px #A1BECB solid !important; -} - -.cal_duration_group { - border-top: 2px #FBBB23 solid !important; - border-bottom: 2px #FBBB23 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 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: 1px; - border-color: borders?>; - border-style: solid; - margin: 0px; - padding: 2px; - -moz-border-radius: 10px; -} - -.mycalendar .cal_filters THEAD TD { - border-bottom: 2px borders?> solid; - margin: 0px; - padding: 2px; -} - - -.mycalendar .cal_event_table { - width: 100%; - border-width: 1px; - border-color: borders?>; - border-style: solid; - margin: 0px; - padding: 2px; - -moz-border-radius: 10px; -} - -.mycalendar .cal_event_table THEAD { - background-color: 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; -} - -.calendarreferer { - font-weight: bold; -} - -TD.cal_event_description { - width: 80%; - border-left: 2px borders?> solid; - vertical-align: top; - padding: 5px; -} - -.cal_popup_fg { - background-color: cellcontent?>; -} - -.cal_popup_bg { - border-top: 2px cellcontent2 ?> solid; - border-left: 2px cellcontent2 ?> solid; - border-right: 2px cellheading2 ?> solid; - border-bottom: 2px cellheading2 ?> solid; - background-image: url(/gradient.jpg); - padding: 0px; - margin: 0px; -} - -.cal_popup_caption { - font-size: 75%; - font-weight: bold; - font-family: sans-serif; -} - -.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; -} - -.eventfull { - border-width: 1px; - border-color: borders?>; - border-style: solid; - -moz-border-radius-bottomleft: 15px; - -moz-border-radius-bottomright: 15px; -} - -.eventfullheader { -} - -.eventfullpicture { - padding:8px; -} - -.eventfullside { - -moz-border-radius-bottomleft: 15px; -} - -.eventfullmessage { - -moz-border-radius-bottomright: 15px; -} - -#block_course_summary, #block_course_summary .sideblockmain { - -moz-border-radius: 20px; -} - -#block_course_summary .sideblockmain { - padding: 10px; -} - -.sitetopic { - border-width: 1px; - border-color: borders?>; - border-style: solid; - -moz-border-radius: 15px; -} - -.sitetopiccontent { - -moz-border-radius: 15px; -} -