|
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 00032 $THEME->name = 'nonzero'; 00033 00035 // Name of the theme. Most likely the name of 00036 // the directory in which this file resides. 00038 00039 00040 $THEME->parents = array( 00041 'canvas', 00042 'base', 00043 ); 00044 00046 // Which existing theme(s) in the /theme/ directory 00047 // do you want this theme to extend. A theme can 00048 // extend any number of themes. Rather than 00049 // creating an entirely new theme and copying all 00050 // of the CSS, you can simply create a new theme, 00051 // extend the theme you like and just add the 00052 // changes you want to your theme. 00054 00055 00056 $THEME->sheets = array( 00057 'core', 00058 'pagelayout', 00059 ); 00060 00062 // Name of the stylesheet(s) you've including in 00063 // this theme's /styles/ directory. 00065 00066 $THEME->parents_exclude_sheets = array( 00067 'base'=>array( 00068 'pagelayout', 00069 ), 00070 'canvas'=>array( 00071 'pagelayout', 00072 ), 00073 ); 00074 00075 00076 $THEME->enable_dock = true; 00077 00079 // Do you want to use the new navigation dock? 00081 00082 00083 $THEME->editor_sheets = array('editor'); 00084 00086 // An array of stylesheets to include within the 00087 // body of the editor. 00089 00090 $THEME->layouts = array( 00091 'base' => array( 00092 'file' => 'general.php', 00093 'regions' => array('side-pre', 'side-post'), 00094 'defaultregion' => 'side-post', 00095 ), 00096 'standard' => array( 00097 'file' => 'general.php', 00098 'regions' => array('side-pre', 'side-post'), 00099 'defaultregion' => 'side-post', 00100 ), 00101 'course' => array( 00102 'file' => 'general.php', 00103 'regions' => array('side-pre', 'side-post'), 00104 'defaultregion' => 'side-post' 00105 ), 00106 'coursecategory' => array( 00107 'file' => 'general.php', 00108 'regions' => array('side-pre', 'side-post'), 00109 'defaultregion' => 'side-post', 00110 ), 00111 'incourse' => array( 00112 'file' => 'general.php', 00113 'regions' => array('side-pre', 'side-post'), 00114 'defaultregion' => 'side-post', 00115 ), 00116 'frontpage' => array( 00117 'file' => 'frontpage.php', 00118 'regions' => array('side-pre', 'side-post'), 00119 'defaultregion' => 'side-post', 00120 ), 00121 'admin' => array( 00122 'file' => 'general.php', 00123 'regions' => array('side-pre'), 00124 'defaultregion' => 'side-pre', 00125 ), 00126 'mydashboard' => array( 00127 'file' => 'general.php', 00128 'regions' => array('side-pre', 'side-post'), 00129 'defaultregion' => 'side-post', 00130 'options' => array('langmenu'=>true), 00131 ), 00132 'mypublic' => array( 00133 'file' => 'general.php', 00134 'regions' => array('side-pre', 'side-post'), 00135 'defaultregion' => 'side-post', 00136 ), 00137 'login' => array( 00138 'file' => 'general.php', 00139 'regions' => array(), 00140 'options' => array('langmenu'=>true), 00141 ), 00142 'popup' => array( 00143 'file' => 'general.php', 00144 'regions' => array(), 00145 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true), 00146 ), 00147 'frametop' => array( 00148 'file' => 'general.php', 00149 'regions' => array(), 00150 'options' => array('nofooter'=>true), 00151 ), 00152 'maintenance' => array( 00153 'file' => 'general.php', 00154 'regions' => array(), 00155 'options' => array('nofooter'=>true, 'nonavbar'=>true), 00156 ), 00157 'embedded' => array( 00158 'theme' => 'canvas', 00159 'file' => 'embedded.php', 00160 'regions' => array(), 00161 'options' => array('nofooter'=>true, 'nonavbar'=>true), 00162 ), 00163 // Should display the content and basic headers only. 00164 'print' => array( 00165 'file' => 'general.php', 00166 'regions' => array(), 00167 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true), 00168 ), 00169 'report' => array( 00170 'file' => 'general.php', 00171 'regions' => array('side-pre'), 00172 'defaultregion' => 'side-pre', 00173 ), 00174 ); 00175 00177 // These are all of the possible layouts in Moodle. The 00178 // simplest way to do this is to keep the theme and file 00179 // variables the same for every layout. Including them 00180 // all in this way allows some flexibility down the road 00181 // if you want to add a different layout template to a 00182 // specific page. 00184 00185 $THEME->csspostprocess = 'nonzero_process_css'; 00186 00188 // Allows the user to provide the name of a function 00189 // that all CSS should be passed to before being 00190 // delivered. 00192 00193 // $THEME->javascripts 00194 00196 // An array containing the names of JavaScript files 00197 // located in /javascript/ to include in the theme. 00198 // (gets included in the head) 00200 00201 // $THEME->javascripts_footer 00202 00204 // As above but will be included in the page footer. 00206 00207 // $THEME->larrow 00208 00210 // Overrides the left arrow image used throughout 00211 // Moodle 00213 00214 // $THEME->rarrow 00215 00217 // Overrides the right arrow image used throughout Moodle 00219 00220 // $THEME->layouts 00221 00223 // An array setting the layouts for the theme 00225 00226 // $THEME->parents_exclude_javascripts 00227 00229 // An array of JavaScript files NOT to inherit from 00230 // the themes parents 00232 00233 // $THEME->parents_exclude_sheets 00234 00236 // An array of stylesheets not to inherit from the 00237 // themes parents 00239 00240 // $THEME->plugins_exclude_sheets 00241 00243 // An array of plugin sheets to ignore and not 00244 // include. 00246 00247 // $THEME->rendererfactory 00248 00250 // Sets a custom render factory to use with the 00251 // theme, used when working with custom renderers. 00253