[ 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 base theme. 19 * 20 * This theme is special, and implements a minimalist theme with only 21 * basic layout. It is intended as a base 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_base 31 * @copyright 2009 Tim Hunt 32 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 33 */ 34 35 $THEME->name = 'base'; 36 37 $THEME->parents = array(); 38 39 $THEME->sheets = array( 40 'pagelayout', // Must come first: Page layout. 41 'core', // Must come second: General styles. 42 'admin', 43 'blocks', 44 'calendar', 45 'course', 46 'dock', 47 'grade', 48 'message', 49 'question', 50 'user', 51 'tabs', 52 'filemanager' 53 ); 54 55 $THEME->editor_sheets = array('editor'); 56 57 $THEME->layouts = array( 58 // Most backwards compatible layout without the blocks - this is the layout used by default. 59 'base' => array( 60 'file' => 'general.php', 61 'regions' => array(), 62 ), 63 // Standard layout with blocks, this is recommended for most pages with general information. 64 'standard' => array( 65 'file' => 'general.php', 66 'regions' => array('side-pre', 'side-post'), 67 'defaultregion' => 'side-pre', 68 ), 69 // Main course page. 70 'course' => array( 71 'file' => 'general.php', 72 'regions' => array('side-pre', 'side-post'), 73 'defaultregion' => 'side-pre', 74 'options' => array('langmenu'=>true), 75 ), 76 'coursecategory' => array( 77 'file' => 'general.php', 78 'regions' => array('side-pre', 'side-post'), 79 'defaultregion' => 'side-pre', 80 ), 81 // Part of course, typical for modules - default page layout if $cm specified in require_login(). 82 'incourse' => array( 83 'file' => 'general.php', 84 'regions' => array('side-pre', 'side-post'), 85 'defaultregion' => 'side-pre', 86 ), 87 // The site home page. 88 'frontpage' => array( 89 'file' => 'frontpage.php', 90 'regions' => array('side-pre', 'side-post'), 91 'defaultregion' => 'side-pre', 92 ), 93 // Server administration scripts. 94 'admin' => array( 95 'file' => 'general.php', 96 'regions' => array('side-pre'), 97 'defaultregion' => 'side-pre', 98 ), 99 // My dashboard page. 100 'mydashboard' => array( 101 'file' => 'general.php', 102 'regions' => array('side-pre', 'side-post'), 103 'defaultregion' => 'side-pre', 104 'options' => array('langmenu'=>true), 105 ), 106 // My public page. 107 'mypublic' => array( 108 'file' => 'general.php', 109 'regions' => array('side-pre', 'side-post'), 110 'defaultregion' => 'side-pre', 111 ), 112 'login' => array( 113 'file' => 'general.php', 114 'regions' => array(), 115 'options' => array('langmenu'=>true), 116 ), 117 118 // Pages that appear in pop-up windows - no navigation, no blocks, no header. 119 'popup' => array( 120 'file' => 'general.php', 121 'regions' => array(), 122 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologininfo'=>true, 'nocourseheaderfooter'=>true), 123 ), 124 // No blocks and minimal footer - used for legacy frame layouts only! 125 'frametop' => array( 126 'file' => 'general.php', 127 'regions' => array(), 128 'options' => array('nofooter'=>true, 'nocoursefooter'=>true), 129 ), 130 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible. 131 'embedded' => array( 132 'file' => 'embedded.php', 133 'regions' => array(), 134 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true), 135 ), 136 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message. 137 // This must not have any blocks, and it is good idea if it does not have links to 138 // other places - for example there should not be a home link in the footer... 139 'maintenance' => array( 140 'file' => 'general.php', 141 'regions' => array(), 142 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true), 143 ), 144 // Should display the content and basic headers only. 145 'print' => array( 146 'file' => 'general.php', 147 'regions' => array(), 148 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>false, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true), 149 ), 150 // The pagelayout used when a redirection is occuring. 151 'redirect' => array( 152 'file' => 'embedded.php', 153 'regions' => array(), 154 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true), 155 ), 156 // The pagelayout used for reports. 157 'report' => array( 158 'file' => 'report.php', 159 'regions' => array('side-pre'), 160 'defaultregion' => 'side-pre', 161 ), 162 // The pagelayout used for safebrowser and securewindow. 163 'secure' => array( 164 'file' => 'general.php', 165 'regions' => array('side-pre', 'side-post'), 166 'defaultregion' => 'side-pre', 167 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologinlinks'=>true, 'nocourseheaderfooter'=>true), 168 ), 169 ); 170 171 // We don't want the base theme to be shown on the theme selection screen, by setting 172 // this to true it will only be shown if theme designer mode is switched on. 173 $THEME->hidefromselector = true; 174 175 /** List of javascript files that need to included on each page */ 176 $THEME->javascripts = array(); 177 $THEME->javascripts_footer = array(); 178 179 // Set this to the method you will use in your layout files for rendering blocks. 180 // It should be either blocks (default) or blocks_for_region. 181 $THEME->blockrendermethod = 'blocks_for_region';
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 |