[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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


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