From 4f68869bf6fa1f613b26ffa25529cec13f9fda91 Mon Sep 17 00:00:00 2001 From: Patrick Malley Date: Mon, 12 Apr 2010 01:23:55 +0000 Subject: [PATCH] Building theme --- theme/boxxie/config.php | 15 +++- theme/boxxie/layout/general.php | 118 +++++++++++++++++++------------- theme/boxxie/style/screen.css | 90 +++++++++++++++++++++++- 3 files changed, 172 insertions(+), 51 deletions(-) diff --git a/theme/boxxie/config.php b/theme/boxxie/config.php index 5ca9b093f03..48182cedcfd 100644 --- a/theme/boxxie/config.php +++ b/theme/boxxie/config.php @@ -35,11 +35,13 @@ $THEME->enable_dock = false; // Do you want to use the new navigation dock? //////////////////////////////////////////////////// + $THEME->layouts = array( 'base' => array( 'theme' => 'boxxie', 'file' => 'general.php', - 'regions' => array(), + 'regions' => array('side-pre', 'side-post'), + 'defaultregion' => 'side-post', ), 'general' => array( 'theme' => 'boxxie', @@ -114,4 +116,13 @@ $THEME->layouts = array( 'regions' => array(), 'options' => array('nofooter'=>true, 'nonavbar'=>true), ), -); \ No newline at end of file +); + +/////////////////////////////////////////////////////////////// +// These are all of the possible layouts in Moodle. The +// simplest way to do this is to keep the theme and file +// variables the same for every layout. Including them +// all in this way allows some flexibility down the road +// if you want to add a different layout template to a +// specific page. +/////////////////////////////////////////////////////////////// \ No newline at end of file diff --git a/theme/boxxie/layout/general.php b/theme/boxxie/layout/general.php index 63bd6043f5a..da351b93a5c 100644 --- a/theme/boxxie/layout/general.php +++ b/theme/boxxie/layout/general.php @@ -2,69 +2,91 @@ echo $OUTPUT->doctype() ?> htmlattributes() ?>> - <?php echo $PAGE->title; ?> - - standard_head_html() ?> + <?php echo $PAGE->title; ?> + + standard_head_html() ?> + standard_top_of_body_html() ?> -
+ heading || (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar())) { ?> + +
+
+ - - -
-
-
-
-
-
- -
-
-
-
-
- blocks_for_region('side-pre') ?> -
-
-
-
- blocks_for_region('side-post') ?> -
-
-
+ echo $OUTPUT->login_info(); + if (!empty($PAGE->layout_options['langmenu'])) { + echo $OUTPUT->lang_menu(); + } + echo $PAGE->headingmenu + ?>
+ + layout_options['nonavbar']) && $PAGE->has_navbar()) { ?> + +
- - + + + +
+
+
+ +
+
+
+ +
+
+
+ +
+
+ blocks_for_region('side-pre') ?> +
+
+ +
+
+ blocks_for_region('side-post') ?> +
+
+ +
+
+
+ + + - -
+ +heading || (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar())) { ?> + +
+
+ + + + standard_end_of_body_html() ?> \ No newline at end of file diff --git a/theme/boxxie/style/screen.css b/theme/boxxie/style/screen.css index 2d91681f816..02c5734e1fa 100644 --- a/theme/boxxie/style/screen.css +++ b/theme/boxxie/style/screen.css @@ -1 +1,89 @@ -body {} \ No newline at end of file +html { + background: #6e8c45; +} + +#page-wrapper { + margin: 10px 5%; + background: #5b7439; + padding: 5px; +} + +#page { + background: #fff; + padding: 5px; + width: auto; +} + +a:link, +a:visited { + color: #69804e; + text-decoration: none; +} + +a:hover, +a:active { + text-decoration: underline; +} + +/* Header */ + +#page-header { + background: #3b4c25; + color: #fff; +} + +#page-header a:link, +#page-header a:visited { + color: #b3c79d; +} + +#page-header h1.headermain { + color: #fff; + font-weight: normal; + margin:1em; +} + +.sideblock { + border: none; +} + +.sideblock .header { + background: #69804e; + padding:2px 5px; +} + +.sideblock .header h2 { + color: #fff; +} + +.sideblock .content { + background: #f3f8ed; + border-width: 1px; + border-color: #69804e; + border-style: solid; +} + +/* Course */ + +.coursebox { + border-bottom: 1px solid #eee; +} + +.coursebox h3.name { + margin-top: 0; +} + +.categorybox { + border: none; +} + +h2.headingblock { + font-weight: normal; + border-bottom: 1px solid #eee; +} + +/* Forum */ + +.forumpost .topic { + background: #c9dfb2; +} \ No newline at end of file