|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00003 // This file is part of Moodle - http://moodle.org/ 00004 // 00005 // Moodle is free software: you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation, either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // Moodle is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 00017 00036 $THEME->name = 'base'; 00037 00038 $THEME->parents = array(); 00039 00040 $THEME->sheets = array( 00041 'pagelayout', 00042 'core', 00043 'admin', 00044 'blocks', 00045 'calendar', 00046 'course', 00047 'dock', 00048 'grade', 00049 'message', 00050 'question', 00051 'user' 00052 ); 00053 00054 $THEME->editor_sheets = array('editor'); 00055 00056 $THEME->layouts = array( 00057 // Most backwards compatible layout without the blocks - this is the layout used by default 00058 'base' => array( 00059 'file' => 'general.php', 00060 'regions' => array(), 00061 ), 00062 // Standard layout with blocks, this is recommended for most pages with general information 00063 'standard' => array( 00064 'file' => 'general.php', 00065 'regions' => array('side-pre', 'side-post'), 00066 'defaultregion' => 'side-post', 00067 ), 00068 // Main course page 00069 'course' => array( 00070 'file' => 'general.php', 00071 'regions' => array('side-pre', 'side-post'), 00072 'defaultregion' => 'side-post', 00073 'options' => array('langmenu'=>true), 00074 ), 00075 'coursecategory' => array( 00076 'file' => 'general.php', 00077 'regions' => array('side-pre', 'side-post'), 00078 'defaultregion' => 'side-post', 00079 ), 00080 // part of course, typical for modules - default page layout if $cm specified in require_login() 00081 'incourse' => array( 00082 'file' => 'general.php', 00083 'regions' => array('side-pre', 'side-post'), 00084 'defaultregion' => 'side-post', 00085 ), 00086 // The site home page. 00087 'frontpage' => array( 00088 'file' => 'frontpage.php', 00089 'regions' => array('side-pre', 'side-post'), 00090 'defaultregion' => 'side-post', 00091 ), 00092 // Server administration scripts. 00093 'admin' => array( 00094 'file' => 'general.php', 00095 'regions' => array('side-pre'), 00096 'defaultregion' => 'side-pre', 00097 ), 00098 // My dashboard page 00099 'mydashboard' => array( 00100 'file' => 'general.php', 00101 'regions' => array('side-pre', 'side-post'), 00102 'defaultregion' => 'side-post', 00103 'options' => array('langmenu'=>true), 00104 ), 00105 // My public page 00106 'mypublic' => array( 00107 'file' => 'general.php', 00108 'regions' => array('side-pre', 'side-post'), 00109 'defaultregion' => 'side-post', 00110 ), 00111 'login' => array( 00112 'file' => 'general.php', 00113 'regions' => array(), 00114 'options' => array('langmenu'=>true), 00115 ), 00116 00117 // Pages that appear in pop-up windows - no navigation, no blocks, no header. 00118 'popup' => array( 00119 'file' => 'general.php', 00120 'regions' => array(), 00121 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologininfo'=>true), 00122 ), 00123 // No blocks and minimal footer - used for legacy frame layouts only! 00124 'frametop' => array( 00125 'file' => 'general.php', 00126 'regions' => array(), 00127 'options' => array('nofooter'=>true), 00128 ), 00129 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible 00130 'embedded' => array( 00131 'file' => 'embedded.php', 00132 'regions' => array(), 00133 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true), 00134 ), 00135 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message. 00136 // This must not have any blocks, and it is good idea if it does not have links to 00137 // other places - for example there should not be a home link in the footer... 00138 'maintenance' => array( 00139 'file' => 'general.php', 00140 'regions' => array(), 00141 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true), 00142 ), 00143 // Should display the content and basic headers only. 00144 'print' => array( 00145 'file' => 'general.php', 00146 'regions' => array(), 00147 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>false, 'nocustommenu'=>true), 00148 ), 00149 // The pagelayout used when a redirection is occuring. 00150 'redirect' => array( 00151 'file' => 'embedded.php', 00152 'regions' => array(), 00153 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true), 00154 ), 00155 // The pagelayout used for reports 00156 'report' => array( 00157 'file' => 'report.php', 00158 'regions' => array('side-pre'), 00159 'defaultregion' => 'side-pre', 00160 ), 00161 ); 00162 00163 // We don't want the base theme to be shown on the theme selection screen, by setting 00164 // this to true it will only be shown if theme designer mode is switched on. 00165 $THEME->hidefromselector = true; 00166 00168 $THEME->javascripts = array(); 00169 $THEME->javascripts_footer = array();