[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 // This file is part of Moodle - http://moodle.org/ 3 // 4 // Moodle is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // Moodle is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * Configuration for Moodle's Canvas theme. 19 * 20 * This theme is special, and implements a minimalist theme with basic styles. 21 * It is intended to be used with Base as a starting point for other themes to build upon. 22 * It is not recommend to actually choose this theme for production sites! 23 * 24 * DO NOT COPY THIS TO START NEW THEMES! 25 * Start with another theme, like "standard". 26 * 27 * For full information about creating Moodle themes, see: 28 * http://docs.moodle.org/dev/Themes_2.0 29 * 30 * @package theme_canvas 31 * @copyright 2010 Patrick Malley 32 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 33 */ 34 35 $THEME->name = 'canvas'; 36 37 //////////////////////////////////////////////////// 38 // Name of the theme. Most likely the name of 39 // the directory in which this file resides. 40 //////////////////////////////////////////////////// 41 42 $THEME->parents = array('base'); 43 44 ///////////////////////////////////////////////////// 45 // Which existing theme(s) in the /theme/ directory 46 // do you want this theme to extend. A theme can 47 // extend any number of themes. Rather than 48 // creating an entirely new theme and copying all 49 // of the CSS, you can simply create a new theme, 50 // extend the theme you like and just add the 51 // changes you want to your theme. 52 //////////////////////////////////////////////////// 53 54 $THEME->sheets = array( 55 'pagelayout', 56 'text', 57 'core', 58 'course', 59 'mods', 60 'blocks', 61 'tabs', 62 'admin', 63 'tables', 64 'popups', 65 'question', 66 ); 67 68 //////////////////////////////////////////////////// 69 // Name of the stylesheet(s) you've including in 70 // this theme's /styles/ directory. 71 //////////////////////////////////////////////////// 72 73 $THEME->parents_exclude_sheets = array(); 74 75 //////////////////////////////////////////////////// 76 // An array of stylesheets not to inherit from the 77 // themes parents 78 //////////////////////////////////////////////////// 79 80 $THEME->layouts = array( 81 'base' => array( 82 'file' => 'general.php', 83 'regions' => array('side-pre', 'side-post'), 84 'defaultregion' => 'side-pre', 85 ), 86 'standard' => array( 87 'file' => 'general.php', 88 'regions' => array('side-pre', 'side-post'), 89 'defaultregion' => 'side-pre', 90 ), 91 'course' => array( 92 'file' => 'general.php', 93 'regions' => array('side-pre', 'side-post'), 94 'defaultregion' => 'side-pre' 95 ), 96 'coursecategory' => array( 97 'file' => 'general.php', 98 'regions' => array('side-pre', 'side-post'), 99 'defaultregion' => 'side-pre', 100 ), 101 'incourse' => array( 102 'file' => 'general.php', 103 'regions' => array('side-pre', 'side-post'), 104 'defaultregion' => 'side-pre', 105 ), 106 'frontpage' => array( 107 'file' => 'frontpage.php', 108 'regions' => array('side-pre', 'side-post'), 109 'defaultregion' => 'side-pre', 110 ), 111 'admin' => array( 112 'file' => 'general.php', 113 'regions' => array('side-pre'), 114 'defaultregion' => 'side-pre', 115 ), 116 'mydashboard' => array( 117 'file' => 'general.php', 118 'regions' => array('side-pre', 'side-post'), 119 'defaultregion' => 'side-pre', 120 'options' => array('langmenu'=>true), 121 ), 122 'mypublic' => array( 123 'file' => 'general.php', 124 'regions' => array('side-pre', 'side-post'), 125 'defaultregion' => 'side-pre', 126 ), 127 'login' => array( 128 'file' => 'general.php', 129 'regions' => array(), 130 'options' => array('langmenu'=>true), 131 ), 132 'popup' => array( 133 'file' => 'general.php', 134 'regions' => array(), 135 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true), 136 ), 137 'frametop' => array( 138 'file' => 'general.php', 139 'regions' => array(), 140 'options' => array('nofooter'=>true, 'nocoursefooter'=>true), 141 ), 142 'maintenance' => array( 143 'file' => 'general.php', 144 'regions' => array(), 145 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true), 146 ), 147 'embedded' => array( 148 'file' => 'embedded.php', 149 'regions' => array(), 150 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true), 151 ), 152 // Should display the content and basic headers only. 153 'print' => array( 154 'file' => 'general.php', 155 'regions' => array(), 156 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true), 157 ), 158 // The pagelayout used when a redirection is occuring. 159 'redirect' => array( 160 'file' => 'embedded.php', 161 'regions' => array(), 162 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true), 163 ), 164 'report' => array( 165 'file' => 'report.php', 166 'regions' => array('side-pre'), 167 'defaultregion' => 'side-pre', 168 ), 169 // The pagelayout used for safebrowser and securewindow. 170 'secure' => array( 171 'file' => 'general.php', 172 'regions' => array('side-pre', 'side-post'), 173 'defaultregion' => 'side-pre', 174 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologinlinks'=>true, 'nocourseheaderfooter'=>true), 175 ), 176 ); 177 178 ///////////////////////////////////////////////////////// 179 // These are all of the possible layouts in Moodle. The 180 // simplest way to do this is to keep the theme and file 181 // variables the same for every layout. Including them 182 // all in this way allows some flexibility down the road 183 // if you want to add a different layout template to a 184 // specific page. 185 ///////////////////////////////////////////////////////// 186 187 $THEME->hidefromselector = true; 188 189 ///////////////////////////////////////////////////// 190 // We don't want the base theme to be shown on the 191 // theme selection screen, by setting this to true 192 // it will only be shown if theme designer mode is 193 // switched on. 194 ///////////////////////////////////////////////////// 195 196 $THEME->enable_dock = true; 197 198 //////////////////////////////////////////////////// 199 // Do you want to use the new navigation dock? 200 //////////////////////////////////////////////////// 201 202 $THEME->editor_sheets = array('editor'); 203 204 //////////////////////////////////////////////////// 205 // An array of stylesheets to include within the 206 // body of the editor. 207 //////////////////////////////////////////////////// 208 209 // $THEME->csspostprocess 210 211 //////////////////////////////////////////////////// 212 // Allows the user to provide the name of a function 213 // that all CSS should be passed to before being 214 // delivered. 215 //////////////////////////////////////////////////// 216 217 // $THEME->javascripts 218 219 //////////////////////////////////////////////////// 220 // An array containing the names of JavaScript files 221 // located in /javascript/ to include in the theme. 222 // (gets included in the head) 223 //////////////////////////////////////////////////// 224 225 // $THEME->javascripts_footer 226 227 //////////////////////////////////////////////////// 228 // As above but will be included in the page footer. 229 //////////////////////////////////////////////////// 230 231 // $THEME->larrow 232 233 //////////////////////////////////////////////////// 234 // Overrides the left arrow image used throughout 235 // Moodle 236 //////////////////////////////////////////////////// 237 238 // $THEME->rarrow 239 240 //////////////////////////////////////////////////// 241 // Overrides the right arrow image used throughout Moodle 242 //////////////////////////////////////////////////// 243 244 // $THEME->parents_exclude_javascripts 245 246 //////////////////////////////////////////////////// 247 // An array of JavaScript files NOT to inherit from 248 // the themes parents 249 //////////////////////////////////////////////////// 250 251 // $THEME->plugins_exclude_sheets 252 253 //////////////////////////////////////////////////// 254 // An array of plugin sheets to ignore and not 255 // include. 256 //////////////////////////////////////////////////// 257 258 // $THEME->rendererfactory 259 260 //////////////////////////////////////////////////// 261 // Sets a custom render factory to use with the 262 // theme, used when working with custom renderers. 263 ////////////////////////////////////////////////////
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |