[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/theme/canvas/ -> config.php (source)

   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  );
  66  
  67  ////////////////////////////////////////////////////
  68  // Name of the stylesheet(s) you've including in
  69  // this theme's /styles/ directory.
  70  ////////////////////////////////////////////////////
  71  
  72  $THEME->parents_exclude_sheets = array();
  73  
  74  ////////////////////////////////////////////////////
  75  // An array of stylesheets not to inherit from the
  76  // themes parents
  77  ////////////////////////////////////////////////////
  78  
  79  $THEME->layouts = array(
  80      'base' => array(
  81          'file' => 'general.php',
  82          'regions' => array('side-pre', 'side-post'),
  83          'defaultregion' => 'side-pre',
  84      ),
  85      'standard' => array(
  86          'file' => 'general.php',
  87          'regions' => array('side-pre', 'side-post'),
  88          'defaultregion' => 'side-pre',
  89      ),
  90      'course' => array(
  91          'file' => 'general.php',
  92          'regions' => array('side-pre', 'side-post'),
  93          'defaultregion' => 'side-pre'
  94      ),
  95      'coursecategory' => array(
  96          'file' => 'general.php',
  97          'regions' => array('side-pre', 'side-post'),
  98          'defaultregion' => 'side-pre',
  99      ),
 100      'incourse' => array(
 101          'file' => 'general.php',
 102          'regions' => array('side-pre', 'side-post'),
 103          'defaultregion' => 'side-pre',
 104      ),
 105      'frontpage' => array(
 106          'file' => 'frontpage.php',
 107          'regions' => array('side-pre', 'side-post'),
 108          'defaultregion' => 'side-pre',
 109      ),
 110      'admin' => array(
 111          'file' => 'general.php',
 112          'regions' => array('side-pre'),
 113          'defaultregion' => 'side-pre',
 114      ),
 115      'mydashboard' => array(
 116          'file' => 'general.php',
 117          'regions' => array('side-pre', 'side-post'),
 118          'defaultregion' => 'side-pre',
 119          'options' => array('langmenu'=>true),
 120      ),
 121      'mypublic' => array(
 122          'file' => 'general.php',
 123          'regions' => array('side-pre', 'side-post'),
 124          'defaultregion' => 'side-pre',
 125      ),
 126      'login' => array(
 127          'file' => 'general.php',
 128          'regions' => array(),
 129          'options' => array('langmenu'=>true),
 130      ),
 131      'popup' => array(
 132          'file' => 'general.php',
 133          'regions' => array(),
 134          'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
 135      ),
 136      'frametop' => array(
 137          'file' => 'general.php',
 138          'regions' => array(),
 139          'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
 140      ),
 141      'maintenance' => array(
 142          'file' => 'general.php',
 143          'regions' => array(),
 144          'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
 145      ),
 146      'embedded' => array(
 147          'file' => 'embedded.php',
 148          'regions' => array(),
 149          'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
 150      ),
 151      // Should display the content and basic headers only.
 152      'print' => array(
 153          'file' => 'general.php',
 154          'regions' => array(),
 155          'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
 156      ),
 157      // The pagelayout used when a redirection is occuring.
 158      'redirect' => array(
 159          'file' => 'embedded.php',
 160          'regions' => array(),
 161          'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
 162      ),
 163      'report' => array(
 164          'file' => 'report.php',
 165          'regions' => array('side-pre'),
 166          'defaultregion' => 'side-pre',
 167      ),
 168      // The pagelayout used for safebrowser and securewindow.
 169      'secure' => array(
 170          'file' => 'general.php',
 171          'regions' => array('side-pre', 'side-post'),
 172          'defaultregion' => 'side-pre',
 173          'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologinlinks'=>true, 'nocourseheaderfooter'=>true),
 174      ),
 175  );
 176  
 177  /////////////////////////////////////////////////////////
 178  // These are all of the possible layouts in Moodle. The
 179  // simplest way to do this is to keep the theme and file
 180  // variables the same for every layout. Including them
 181  // all in this way allows some flexibility down the road
 182  // if you want to add a different layout template to a
 183  // specific page.
 184  /////////////////////////////////////////////////////////
 185  
 186  $THEME->hidefromselector = true;
 187  
 188  /////////////////////////////////////////////////////
 189  // We don't want the base theme to be shown on the
 190  // theme selection screen, by setting this to true
 191  // it will only be shown if theme designer mode is
 192  // switched on.
 193  /////////////////////////////////////////////////////
 194  
 195  $THEME->enable_dock = true;
 196  
 197  ////////////////////////////////////////////////////
 198  // Do you want to use the new navigation dock?
 199  ////////////////////////////////////////////////////
 200  
 201  $THEME->editor_sheets = array('editor');
 202  
 203  ////////////////////////////////////////////////////
 204  // An array of stylesheets to include within the
 205  // body of the editor.
 206  ////////////////////////////////////////////////////
 207  
 208  // $THEME->csspostprocess
 209  
 210  ////////////////////////////////////////////////////
 211  // Allows the user to provide the name of a function
 212  // that all CSS should be passed to before being
 213  // delivered.
 214  ////////////////////////////////////////////////////
 215  
 216  // $THEME->javascripts
 217  
 218  ////////////////////////////////////////////////////
 219  // An array containing the names of JavaScript files
 220  // located in /javascript/ to include in the theme.
 221  // (gets included in the head)
 222  ////////////////////////////////////////////////////
 223  
 224  // $THEME->javascripts_footer
 225  
 226  ////////////////////////////////////////////////////
 227  // As above but will be included in the page footer.
 228  ////////////////////////////////////////////////////
 229  
 230  // $THEME->larrow
 231  
 232  ////////////////////////////////////////////////////
 233  // Overrides the left arrow image used throughout
 234  // Moodle
 235  ////////////////////////////////////////////////////
 236  
 237  // $THEME->rarrow
 238  
 239  ////////////////////////////////////////////////////
 240  // Overrides the right arrow image used throughout Moodle
 241  ////////////////////////////////////////////////////
 242  
 243  // $THEME->parents_exclude_javascripts
 244  
 245  ////////////////////////////////////////////////////
 246  // An array of JavaScript files NOT to inherit from
 247  // the themes parents
 248  ////////////////////////////////////////////////////
 249  
 250  // $THEME->plugins_exclude_sheets
 251  
 252  ////////////////////////////////////////////////////
 253  // An array of plugin sheets to ignore and not
 254  // include.
 255  ////////////////////////////////////////////////////
 256  
 257  // $THEME->rendererfactory
 258  
 259  ////////////////////////////////////////////////////
 260  // Sets a custom render factory to use with the
 261  // theme, used when working with custom renderers.
 262  ////////////////////////////////////////////////////


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1