From f020dd1b6b5c2c8c444e18379cdc064c27db7aa1 Mon Sep 17 00:00:00 2001 From: Patrick Malley Date: Sun, 11 Apr 2010 18:48:33 +0000 Subject: [PATCH] Adding new layout for Boxxie theme --- theme/boxxie/config.php | 83 ++++++++++++++++++++++++++++++++- theme/boxxie/layout/general.php | 70 +++++++++++++++++++++++++++ 2 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 theme/boxxie/layout/general.php diff --git a/theme/boxxie/config.php b/theme/boxxie/config.php index 5d28794a5e7..5ca9b093f03 100644 --- a/theme/boxxie/config.php +++ b/theme/boxxie/config.php @@ -33,4 +33,85 @@ $THEME->enable_dock = false; //////////////////////////////////////////////////// // Do you want to use the new navigation dock? -//////////////////////////////////////////////////// \ No newline at end of file +//////////////////////////////////////////////////// + +$THEME->layouts = array( + 'base' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array(), + ), + 'general' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array('side-pre', 'side-post'), + 'defaultregion' => 'side-post', + ), + 'course' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array('side-pre', 'side-post'), + 'defaultregion' => 'side-post' + ), + 'coursecategory' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array('side-pre', 'side-post'), + 'defaultregion' => 'side-post', + ), + 'incourse' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array('side-pre', 'side-post'), + 'defaultregion' => 'side-post', + ), + 'frontpage' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array('side-pre', 'side-post'), + 'defaultregion' => 'side-post', + ), + 'admin' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array('side-pre'), + 'defaultregion' => 'side-pre', + ), + 'mydashboard' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array('side-pre', 'side-post'), + 'defaultregion' => 'side-post', + 'options' => array('langmenu'=>true), + ), + 'mypublic' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array('side-pre', 'side-post'), + 'defaultregion' => 'side-post', + ), + 'login' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array(), + 'options' => array('langmenu'=>true), + ), + 'popup' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array(), + 'options' => array('nofooter'=>true), + ), + 'frametop' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array(), + 'options' => array('nofooter'=>true), + ), + 'maintenance' => array( + 'theme' => 'boxxie', + 'file' => 'general.php', + 'regions' => array(), + 'options' => array('nofooter'=>true, 'nonavbar'=>true), + ), +); \ No newline at end of file diff --git a/theme/boxxie/layout/general.php b/theme/boxxie/layout/general.php new file mode 100644 index 00000000000..63bd6043f5a --- /dev/null +++ b/theme/boxxie/layout/general.php @@ -0,0 +1,70 @@ +doctype() ?> +htmlattributes() ?>> + + <?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') ?> +
+
+
+
+
+ + + + +
+standard_end_of_body_html() ?> + + \ No newline at end of file