|
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 = 'canvas'; 00037 00039 // Name of the theme. Most likely the name of 00040 // the directory in which this file resides. 00042 00043 $THEME->parents = array( 00044 'base', 00045 ); 00046 00048 // Which existing theme(s) in the /theme/ directory 00049 // do you want this theme to extend. A theme can 00050 // extend any number of themes. Rather than 00051 // creating an entirely new theme and copying all 00052 // of the CSS, you can simply create a new theme, 00053 // extend the theme you like and just add the 00054 // changes you want to your theme. 00056 00057 $THEME->sheets = array( 00058 'pagelayout', 00059 'text', 00060 'core', 00061 'course', 00062 'mods', 00063 'blocks', 00064 'tabs', 00065 'admin', 00066 'tables', 00067 'popups', 00068 'question', 00069 ); 00070 00072 // Name of the stylesheet(s) you've including in 00073 // this theme's /styles/ directory. 00075 00076 $THEME->parents_exclude_sheets = array( 00077 'base'=>array( 00078 'navigation', 00079 'browser', 00080 ), 00081 ); 00082 00084 // An array of stylesheets not to inherit from the 00085 // themes parents 00087 00088 $THEME->layouts = array( 00089 'base' => array( 00090 'file' => 'general.php', 00091 'regions' => array('side-pre', 'side-post'), 00092 'defaultregion' => 'side-post', 00093 ), 00094 'standard' => array( 00095 'file' => 'general.php', 00096 'regions' => array('side-pre', 'side-post'), 00097 'defaultregion' => 'side-post', 00098 ), 00099 'course' => array( 00100 'file' => 'general.php', 00101 'regions' => array('side-pre', 'side-post'), 00102 'defaultregion' => 'side-post' 00103 ), 00104 'coursecategory' => array( 00105 'file' => 'general.php', 00106 'regions' => array('side-pre', 'side-post'), 00107 'defaultregion' => 'side-post', 00108 ), 00109 'incourse' => array( 00110 'file' => 'general.php', 00111 'regions' => array('side-pre', 'side-post'), 00112 'defaultregion' => 'side-post', 00113 ), 00114 'frontpage' => array( 00115 'file' => 'frontpage.php', 00116 'regions' => array('side-pre', 'side-post'), 00117 'defaultregion' => 'side-post', 00118 ), 00119 'admin' => array( 00120 'file' => 'general.php', 00121 'regions' => array('side-pre'), 00122 'defaultregion' => 'side-pre', 00123 ), 00124 'mydashboard' => array( 00125 'file' => 'general.php', 00126 'regions' => array('side-pre', 'side-post'), 00127 'defaultregion' => 'side-post', 00128 'options' => array('langmenu'=>true), 00129 ), 00130 'mypublic' => array( 00131 'file' => 'general.php', 00132 'regions' => array('side-pre', 'side-post'), 00133 'defaultregion' => 'side-post', 00134 ), 00135 'login' => array( 00136 'file' => 'general.php', 00137 'regions' => array(), 00138 'options' => array('langmenu'=>true), 00139 ), 00140 'popup' => array( 00141 'file' => 'general.php', 00142 'regions' => array(), 00143 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true), 00144 ), 00145 'frametop' => array( 00146 'file' => 'general.php', 00147 'regions' => array(), 00148 'options' => array('nofooter'=>true), 00149 ), 00150 'maintenance' => array( 00151 'file' => 'general.php', 00152 'regions' => array(), 00153 'options' => array('nofooter'=>true, 'nonavbar'=>true), 00154 ), 00155 'embedded' => array( 00156 'file' => 'embedded.php', 00157 'regions' => array(), 00158 'options' => array('nofooter'=>true, 'nonavbar'=>true), 00159 ), 00160 // Should display the content and basic headers only. 00161 'print' => array( 00162 'file' => 'general.php', 00163 'regions' => array(), 00164 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true), 00165 ), 00166 // The pagelayout used when a redirection is occuring. 00167 'redirect' => array( 00168 'file' => 'embedded.php', 00169 'regions' => array(), 00170 'options' => array('nofooter'=>true, 'nonavbar'=>true), 00171 ), 00172 'report' => array( 00173 'file' => 'report.php', 00174 'regions' => array('side-pre'), 00175 'defaultregion' => 'side-pre', 00176 ) 00177 ); 00178 00180 // These are all of the possible layouts in Moodle. The 00181 // simplest way to do this is to keep the theme and file 00182 // variables the same for every layout. Including them 00183 // all in this way allows some flexibility down the road 00184 // if you want to add a different layout template to a 00185 // specific page. 00187 00188 $THEME->hidefromselector = true; 00189 00191 // We don't want the base theme to be shown on the 00192 // theme selection screen, by setting this to true 00193 // it will only be shown if theme designer mode is 00194 // switched on. 00196 00197 00198 00199 // $THEME->enable_dock = false; 00200 00202 // Do you want to use the new navigation dock? 00204 00205 00206 // $THEME->editor_sheets 00207 00209 // An array of stylesheets to include within the 00210 // body of the editor. 00212 00213 // $THEME->csspostprocess 00214 00216 // Allows the user to provide the name of a function 00217 // that all CSS should be passed to before being 00218 // delivered. 00220 00221 // $THEME->javascripts 00222 00224 // An array containing the names of JavaScript files 00225 // located in /javascript/ to include in the theme. 00226 // (gets included in the head) 00228 00229 // $THEME->javascripts_footer 00230 00232 // As above but will be included in the page footer. 00234 00235 // $THEME->larrow 00236 00238 // Overrides the left arrow image used throughout 00239 // Moodle 00241 00242 // $THEME->rarrow 00243 00245 // Overrides the right arrow image used throughout Moodle 00247 00248 // $THEME->parents_exclude_javascripts 00249 00251 // An array of JavaScript files NOT to inherit from 00252 // the themes parents 00254 00255 // $THEME->plugins_exclude_sheets 00256 00258 // An array of plugin sheets to ignore and not 00259 // include. 00261 00262 // $THEME->rendererfactory 00263 00265 // Sets a custom render factory to use with the 00266 // theme, used when working with custom renderers. 00268 00269 $THEME->editor_sheets = array('editor');