PageRenderTime 28ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 1ms

/theme/formal_white/config.php

https://bitbucket.org/kudutest1/moodlegit
PHP | 258 lines | 103 code | 37 blank | 118 comment | 1 complexity | 4ab881995f98a0f8153c38a18cfb9aad MD5 | raw file
  1. <?php
  2. defined('MOODLE_INTERNAL') || die();
  3. // This file is part of Moodle - http://moodle.org/
  4. //
  5. // Moodle is free software: you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License as published by
  7. // the Free Software Foundation, either version 3 of the License, or
  8. // (at your option) any later version.
  9. //
  10. // Moodle is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. // GNU General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU General Public License
  16. // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
  17. /**
  18. * Configuration for Moodle's nonzero theme.
  19. *
  20. * DO NOT MODIFY THIS THEME!
  21. * COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD.
  22. *
  23. * For full information about creating Moodle themes, see:
  24. * http://docs.moodle.org/dev/Themes_2.0
  25. *
  26. * @package moodlecore
  27. * @copyright Mediatouch 2000 (http://mediatouch.it/)
  28. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  29. */
  30. $THEME->name = 'formal_white';
  31. ////////////////////////////////////////////////////
  32. // Name of the theme. Most likely the name of
  33. // the directory in which this file resides.
  34. ////////////////////////////////////////////////////
  35. $THEME->parents = array('canvas','base');
  36. /////////////////////////////////////////////////////
  37. // Which existing theme(s) in the /theme/ directory
  38. // do you want this theme to extend. A theme can
  39. // extend any number of themes. Rather than
  40. // creating an entirely new theme and copying all
  41. // of the CSS, you can simply create a new theme,
  42. // extend the theme you like and just add the
  43. // changes you want to your theme.
  44. ////////////////////////////////////////////////////
  45. $THEME->parents_exclude_sheets = array(
  46. 'canvas'=>array(
  47. 'pagelayout',
  48. 'tabs',
  49. 'tables',
  50. ),
  51. );
  52. ////////////////////////////////////////////////////
  53. // An array of stylesheets not to inherit from the
  54. // themes parents
  55. ////////////////////////////////////////////////////
  56. $THEME->sheets = array('frame' ,'menu', 'course',
  57. 'pagelayout','core', 'calendar',
  58. 'tabs' ,'quiz', 'forum',
  59. 'block' ,'formal_white');
  60. ////////////////////////////////////////////////////
  61. // Name of the stylesheet(s) you've including in
  62. // this theme's /styles/ directory.
  63. ////////////////////////////////////////////////////
  64. $THEME->enable_dock = true;
  65. ////////////////////////////////////////////////////
  66. // Do you want to use the new navigation dock?
  67. ////////////////////////////////////////////////////
  68. $THEME->editor_sheets = array('editor');
  69. ////////////////////////////////////////////////////
  70. // An array of stylesheets to include within the
  71. // body of the editor.
  72. ////////////////////////////////////////////////////
  73. $THEME->layouts = array(
  74. 'base' => array(
  75. 'file' => 'general.php',
  76. 'regions' => array('side-pre', 'side-post'),
  77. 'defaultregion' => 'side-pre',
  78. ),
  79. 'standard' => array(
  80. 'file' => 'general.php',
  81. 'regions' => array('side-pre', 'side-post'),
  82. 'defaultregion' => 'side-pre',
  83. ),
  84. 'course' => array(
  85. 'file' => 'general.php',
  86. 'regions' => array('side-pre', 'side-post'),
  87. 'defaultregion' => 'side-pre',
  88. 'options' => array('langmenu'=>true),
  89. ),
  90. 'coursecategory' => array(
  91. 'file' => 'general.php',
  92. 'regions' => array('side-pre', 'side-post'),
  93. 'defaultregion' => 'side-pre',
  94. ),
  95. 'incourse' => array(
  96. 'file' => 'general.php',
  97. 'regions' => array('side-pre', 'side-post'),
  98. 'defaultregion' => 'side-pre',
  99. ),
  100. 'frontpage' => array(
  101. 'file' => 'frontpage.php',
  102. 'regions' => array('side-pre', 'side-post'),
  103. 'defaultregion' => 'side-pre',
  104. 'options' => array('langmenu'=>true),
  105. ),
  106. 'admin' => array(
  107. 'file' => 'general.php',
  108. 'regions' => array('side-pre'),
  109. 'defaultregion' => 'side-pre',
  110. ),
  111. 'mydashboard' => array(
  112. 'file' => 'general.php',
  113. 'regions' => array('side-pre', 'side-post'),
  114. 'defaultregion' => 'side-pre',
  115. 'options' => array('langmenu'=>true),
  116. ),
  117. 'mypublic' => array(
  118. 'file' => 'general.php',
  119. 'regions' => array('side-pre', 'side-post'),
  120. 'defaultregion' => 'side-pre',
  121. ),
  122. 'login' => array(
  123. 'file' => 'general.php',
  124. 'regions' => array(),
  125. 'options' => array('langmenu'=>true),
  126. ),
  127. // Pages that appear in pop-up windows - no navigation, no blocks, no header.
  128. 'popup' => array(
  129. 'file' => 'general.php',
  130. 'regions' => array(),
  131. 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
  132. ),
  133. // No blocks and minimal footer - used for legacy frame layouts only!
  134. 'frametop' => array(
  135. 'file' => 'general.php',
  136. 'regions' => array(),
  137. 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
  138. ),
  139. // Embeded pages, like iframe embeded in moodleform (chat)
  140. 'embedded' => array(
  141. 'file' => 'embedded.php',
  142. 'regions' => array(),
  143. 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
  144. ),
  145. // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
  146. // This must not have any blocks, and it is good idea if it does not have links to
  147. // other places - for example there should not be a home link in the footer...
  148. 'maintenance' => array(
  149. 'file' => 'general.php',
  150. 'regions' => array(),
  151. 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
  152. ),
  153. // Should display the content and basic headers only.
  154. 'print' => array(
  155. 'file' => 'general.php',
  156. 'regions' => array(),
  157. 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
  158. ),
  159. 'report' => array(
  160. 'file' => 'report.php',
  161. 'regions' => array('side-pre'),
  162. 'defaultregion' => 'side-pre',
  163. ),
  164. );
  165. ///////////////////////////////////////////////////////////////
  166. // These are all of the possible layouts in Moodle. The
  167. // simplest way to do this is to keep the theme and file
  168. // variables the same for every layout. Including them
  169. // all in this way allows some flexibility down the road
  170. // if you want to add a different layout template to a
  171. // specific page.
  172. ///////////////////////////////////////////////////////////////
  173. $THEME->csspostprocess = 'formal_white_user_settings';
  174. ////////////////////////////////////////////////////
  175. // Allows the user to provide the name of a function
  176. // that all CSS should be passed to before being
  177. // delivered.
  178. ////////////////////////////////////////////////////
  179. // $THEME->javascripts
  180. ////////////////////////////////////////////////////
  181. // An array containing the names of JavaScript files
  182. // located in /javascript/ to include in the theme.
  183. // (gets included in the head)
  184. ////////////////////////////////////////////////////
  185. // $THEME->javascripts_footer
  186. ////////////////////////////////////////////////////
  187. // As above but will be included in the page footer.
  188. ////////////////////////////////////////////////////
  189. //$THEME->larrow = "&#60";
  190. ////////////////////////////////////////////////////
  191. // Overrides the left arrow image used throughout
  192. // Moodle
  193. ////////////////////////////////////////////////////
  194. //$THEME->rarrow = "&#62";
  195. ////////////////////////////////////////////////////
  196. // Overrides the right arrow image used throughout Moodle
  197. ////////////////////////////////////////////////////
  198. // $THEME->layouts
  199. ////////////////////////////////////////////////////
  200. // An array setting the layouts for the theme
  201. ////////////////////////////////////////////////////
  202. // $THEME->parents_exclude_javascripts
  203. ////////////////////////////////////////////////////
  204. // An array of JavaScript files NOT to inherit from
  205. // the themes parents
  206. ////////////////////////////////////////////////////
  207. // $THEME->parents_exclude_sheets
  208. ////////////////////////////////////////////////////
  209. // An array of stylesheets not to inherit from the
  210. // themes parents
  211. ////////////////////////////////////////////////////
  212. // $THEME->plugins_exclude_sheets
  213. ////////////////////////////////////////////////////
  214. // An array of plugin sheets to ignore and not
  215. // include.
  216. ////////////////////////////////////////////////////
  217. // $THEME->rendererfactory
  218. ////////////////////////////////////////////////////
  219. // Sets a custom render factory to use with the
  220. // theme, used when working with custom renderers.
  221. ////////////////////////////////////////////////////