. /** * Configuration for Moodle's standard theme. * * DO NOT COPY THIS INTO NEW THEMES! Instead use some other theme as a base * for your experiments. * * Options related to theme customisations can be found at * http://phpdocs.moodle.org/HEAD/moodlecore/theme_config.html * * For an overview of how Moodle themes work, Please see * http://docs.moodle.org/en/Developement:How_Moodle_outputs_HTML * * @package moodlecore * @copyright 2009 Tim Hunt * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $THEME->name = 'base'; $THEME->parents = array(); $THEME->sheets = array( 'pagelayout', /** Must come first: Page layout **/ 'core', /** Must come second: General styles **/ 'admin', 'blocks', 'calendar', 'course', 'grade', 'message', 'question', 'user' ); $THEME->editor_sheets = array(); $THEME->layouts = array( // Most backwards compatible layout without the blocks - this is the layout used by default 'base' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array(), ), // Standard layout with blocks, this is recommended for most pages with general information 'standard' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array('side-pre', 'side-post'), 'defaultregion' => 'side-post', ), // Main course page 'course' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array('side-pre', 'side-post'), 'defaultregion' => 'side-post', 'options' => array('langmenu'=>true), ), 'coursecategory' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array('side-pre', 'side-post'), 'defaultregion' => 'side-post', ), // part of course, typical for modules - default page layout if $cm specified in require_login() 'incourse' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array('side-pre', 'side-post'), 'defaultregion' => 'side-post', ), // The site home page. 'frontpage' => array( 'theme' => 'base', 'file' => 'frontpage.php', 'regions' => array('side-pre', 'side-post'), 'defaultregion' => 'side-post', ), // Server administration scripts. 'admin' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array('side-pre'), 'defaultregion' => 'side-pre', ), // My dashboard page 'mydashboard' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array('side-pre', 'side-post'), 'defaultregion' => 'side-post', 'options' => array('langmenu'=>true), ), // My public page 'mypublic' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array('side-pre', 'side-post'), 'defaultregion' => 'side-post', ), 'login' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array(), 'options' => array('langmenu'=>true), ), // Pages that appear in pop-up windows - no navigation, no blocks, no header. 'popup' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array(), 'options' => array('nofooter'=>true), ), // No blocks and minimal footer - used for legacy frame layouts only! 'frametop' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array(), 'options' => array('nofooter'=>true), ), // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible 'embedded' => array( 'theme' => 'base', 'file' => 'embedded.php', 'regions' => array(), 'options' => array('nofooter'=>true, 'nonavbar'=>true), ), // Used during upgrade and install, and for the 'This site is undergoing maintenance' message. // This must not have any blocks, and it is good idea if it does not have links to // other places - for example there should not be a home link in the footer... 'maintenance' => array( 'theme' => 'base', 'file' => 'general.php', 'regions' => array(), 'options' => array('nofooter'=>true, 'nonavbar'=>true), ), ); /** List of javascript files that need to included on each page */ $THEME->javascripts = array(); $THEME->javascripts_footer = array();