/theme/canvas/config.php

https://github.com/nigeldaley/moodle · PHP · 269 lines · 114 code · 38 blank · 117 comment · 0 complexity · 515048c2ea2d6767330e951c69e9a73b MD5 · raw file

  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. * Configuration for Moodle's Canvas theme.
  18. *
  19. * This theme is special, and implements a minimalist theme with basic styles.
  20. * It is intended to be used with Base as a starting point for other themes to build upon.
  21. * It is not recommend to actually choose this theme for production sites!
  22. *
  23. * DO NOT COPY THIS TO START NEW THEMES!
  24. * Start with another theme, like "standard".
  25. *
  26. * For full information about creating Moodle themes, see:
  27. * http://docs.moodle.org/dev/Themes_2.0
  28. *
  29. * @package moodlecore
  30. * @copyright 2010 Patrick Malley
  31. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  32. */
  33. $THEME->name = 'canvas';
  34. ////////////////////////////////////////////////////
  35. // Name of the theme. Most likely the name of
  36. // the directory in which this file resides.
  37. ////////////////////////////////////////////////////
  38. $THEME->parents = array(
  39. 'base',
  40. );
  41. /////////////////////////////////////////////////////
  42. // Which existing theme(s) in the /theme/ directory
  43. // do you want this theme to extend. A theme can
  44. // extend any number of themes. Rather than
  45. // creating an entirely new theme and copying all
  46. // of the CSS, you can simply create a new theme,
  47. // extend the theme you like and just add the
  48. // changes you want to your theme.
  49. ////////////////////////////////////////////////////
  50. $THEME->sheets = array(
  51. 'pagelayout',
  52. 'text',
  53. 'core',
  54. 'course',
  55. 'mods',
  56. 'blocks',
  57. 'tabs',
  58. 'admin',
  59. 'tables',
  60. 'popups',
  61. 'question',
  62. );
  63. ////////////////////////////////////////////////////
  64. // Name of the stylesheet(s) you've including in
  65. // this theme's /styles/ directory.
  66. ////////////////////////////////////////////////////
  67. $THEME->parents_exclude_sheets = array(
  68. 'base'=>array(
  69. 'navigation',
  70. 'browser',
  71. ),
  72. );
  73. ////////////////////////////////////////////////////
  74. // An array of stylesheets not to inherit from the
  75. // themes parents
  76. ////////////////////////////////////////////////////
  77. $THEME->layouts = array(
  78. 'base' => array(
  79. 'file' => 'general.php',
  80. 'regions' => array('side-pre', 'side-post'),
  81. 'defaultregion' => 'side-post',
  82. ),
  83. 'standard' => array(
  84. 'file' => 'general.php',
  85. 'regions' => array('side-pre', 'side-post'),
  86. 'defaultregion' => 'side-post',
  87. ),
  88. 'course' => array(
  89. 'file' => 'general.php',
  90. 'regions' => array('side-pre', 'side-post'),
  91. 'defaultregion' => 'side-post'
  92. ),
  93. 'coursecategory' => array(
  94. 'file' => 'general.php',
  95. 'regions' => array('side-pre', 'side-post'),
  96. 'defaultregion' => 'side-post',
  97. ),
  98. 'incourse' => array(
  99. 'file' => 'general.php',
  100. 'regions' => array('side-pre', 'side-post'),
  101. 'defaultregion' => 'side-post',
  102. ),
  103. 'frontpage' => array(
  104. 'file' => 'frontpage.php',
  105. 'regions' => array('side-pre', 'side-post'),
  106. 'defaultregion' => 'side-post',
  107. ),
  108. 'admin' => array(
  109. 'file' => 'general.php',
  110. 'regions' => array('side-pre'),
  111. 'defaultregion' => 'side-pre',
  112. ),
  113. 'mydashboard' => array(
  114. 'file' => 'general.php',
  115. 'regions' => array('side-pre', 'side-post'),
  116. 'defaultregion' => 'side-post',
  117. 'options' => array('langmenu'=>true),
  118. ),
  119. 'mypublic' => array(
  120. 'file' => 'general.php',
  121. 'regions' => array('side-pre', 'side-post'),
  122. 'defaultregion' => 'side-post',
  123. ),
  124. 'login' => array(
  125. 'file' => 'general.php',
  126. 'regions' => array(),
  127. 'options' => array('langmenu'=>true),
  128. ),
  129. 'popup' => array(
  130. 'file' => 'general.php',
  131. 'regions' => array(),
  132. 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
  133. ),
  134. 'frametop' => array(
  135. 'file' => 'general.php',
  136. 'regions' => array(),
  137. 'options' => array('nofooter'=>true),
  138. ),
  139. 'maintenance' => array(
  140. 'file' => 'general.php',
  141. 'regions' => array(),
  142. 'options' => array('nofooter'=>true, 'nonavbar'=>true),
  143. ),
  144. 'embedded' => array(
  145. 'file' => 'embedded.php',
  146. 'regions' => array(),
  147. 'options' => array('nofooter'=>true, 'nonavbar'=>true),
  148. ),
  149. // Should display the content and basic headers only.
  150. 'print' => array(
  151. 'file' => 'general.php',
  152. 'regions' => array(),
  153. 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
  154. ),
  155. // The pagelayout used when a redirection is occuring.
  156. 'redirect' => array(
  157. 'file' => 'embedded.php',
  158. 'regions' => array(),
  159. 'options' => array('nofooter'=>true, 'nonavbar'=>true),
  160. ),
  161. 'report' => array(
  162. 'file' => 'report.php',
  163. 'regions' => array('side-pre'),
  164. 'defaultregion' => 'side-pre',
  165. )
  166. );
  167. /////////////////////////////////////////////////////////
  168. // These are all of the possible layouts in Moodle. The
  169. // simplest way to do this is to keep the theme and file
  170. // variables the same for every layout. Including them
  171. // all in this way allows some flexibility down the road
  172. // if you want to add a different layout template to a
  173. // specific page.
  174. /////////////////////////////////////////////////////////
  175. $THEME->hidefromselector = true;
  176. /////////////////////////////////////////////////////
  177. // We don't want the base theme to be shown on the
  178. // theme selection screen, by setting this to true
  179. // it will only be shown if theme designer mode is
  180. // switched on.
  181. /////////////////////////////////////////////////////
  182. // $THEME->enable_dock = false;
  183. ////////////////////////////////////////////////////
  184. // Do you want to use the new navigation dock?
  185. ////////////////////////////////////////////////////
  186. // $THEME->editor_sheets
  187. ////////////////////////////////////////////////////
  188. // An array of stylesheets to include within the
  189. // body of the editor.
  190. ////////////////////////////////////////////////////
  191. // $THEME->csspostprocess
  192. ////////////////////////////////////////////////////
  193. // Allows the user to provide the name of a function
  194. // that all CSS should be passed to before being
  195. // delivered.
  196. ////////////////////////////////////////////////////
  197. // $THEME->javascripts
  198. ////////////////////////////////////////////////////
  199. // An array containing the names of JavaScript files
  200. // located in /javascript/ to include in the theme.
  201. // (gets included in the head)
  202. ////////////////////////////////////////////////////
  203. // $THEME->javascripts_footer
  204. ////////////////////////////////////////////////////
  205. // As above but will be included in the page footer.
  206. ////////////////////////////////////////////////////
  207. // $THEME->larrow
  208. ////////////////////////////////////////////////////
  209. // Overrides the left arrow image used throughout
  210. // Moodle
  211. ////////////////////////////////////////////////////
  212. // $THEME->rarrow
  213. ////////////////////////////////////////////////////
  214. // Overrides the right arrow image used throughout Moodle
  215. ////////////////////////////////////////////////////
  216. // $THEME->parents_exclude_javascripts
  217. ////////////////////////////////////////////////////
  218. // An array of JavaScript files NOT to inherit from
  219. // the themes parents
  220. ////////////////////////////////////////////////////
  221. // $THEME->plugins_exclude_sheets
  222. ////////////////////////////////////////////////////
  223. // An array of plugin sheets to ignore and not
  224. // include.
  225. ////////////////////////////////////////////////////
  226. // $THEME->rendererfactory
  227. ////////////////////////////////////////////////////
  228. // Sets a custom render factory to use with the
  229. // theme, used when working with custom renderers.
  230. ////////////////////////////////////////////////////
  231. $THEME->editor_sheets = array('editor');