2009-07-07 05:05:06 +00:00
|
|
|
<?php
|
|
|
|
// This file is part of Moodle - http://moodle.org/
|
|
|
|
//
|
|
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
/**
|
2013-04-27 13:22:59 +02:00
|
|
|
* Configuration for Moodle's legacy standard theme.
|
2009-07-07 05:05:06 +00:00
|
|
|
*
|
2013-04-27 13:22:59 +02:00
|
|
|
* Use standard theme or new bootstrapbase instead!!!
|
2009-07-07 05:05:06 +00:00
|
|
|
*
|
2013-04-27 13:22:59 +02:00
|
|
|
* @package theme_standardold
|
2009-07-07 05:05:06 +00:00
|
|
|
* @copyright 2009 Tim Hunt
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
|
*/
|
2005-01-26 14:14:16 +00:00
|
|
|
|
2006-12-11 15:47:23 +00:00
|
|
|
|
2010-07-07 08:50:06 +00:00
|
|
|
$THEME->parents = array('standard', 'base');
|
2006-12-11 15:47:23 +00:00
|
|
|
|
2009-12-16 18:00:58 +00:00
|
|
|
// TODO: All old styles are now moved into this standard theme because
|
|
|
|
// we need to go through all these and fix them.
|
|
|
|
// This means we will gradually put these back into plugins
|
|
|
|
// directories
|
2010-07-07 08:50:06 +00:00
|
|
|
$THEME->sheets = array('pagelayout');
|
2007-01-24 09:20:32 +00:00
|
|
|
|
2010-07-07 08:50:06 +00:00
|
|
|
$THEME->parents_exclude_sheets = array('base'=>array('pagelayout'));
|
2005-03-29 14:20:11 +00:00
|
|
|
|
2009-07-09 07:35:03 +00:00
|
|
|
$THEME->layouts = array(
|
2009-12-27 12:02:04 +00:00
|
|
|
// Most backwards compatible layout without the blocks - this is the layout used by default
|
|
|
|
'base' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'general.php',
|
2009-12-27 12:02:04 +00:00
|
|
|
'regions' => array(),
|
|
|
|
),
|
|
|
|
// Standard layout with blocks, this is recommended for most pages with general information
|
|
|
|
'standard' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'general.php',
|
2009-12-16 18:00:58 +00:00
|
|
|
'regions' => array('side-pre', 'side-post'),
|
MDL-32879 changes default region from side-post to side-pre for most CORE themes (Afterburner,Anomally, Arialist, Base, Boxxie, Canvas, Formal White, Formfactor, Leatherbound, Magazine,Splash and Standard Old)
2012-05-12 02:09:31 +01:00
|
|
|
'defaultregion' => 'side-pre',
|
2009-12-16 18:00:58 +00:00
|
|
|
),
|
2009-12-27 12:02:04 +00:00
|
|
|
// Main course page
|
2009-12-16 18:00:58 +00:00
|
|
|
'course' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'general.php',
|
2009-07-09 07:35:03 +00:00
|
|
|
'regions' => array('side-pre', 'side-post'),
|
MDL-32879 changes default region from side-post to side-pre for most CORE themes (Afterburner,Anomally, Arialist, Base, Boxxie, Canvas, Formal White, Formfactor, Leatherbound, Magazine,Splash and Standard Old)
2012-05-12 02:09:31 +01:00
|
|
|
'defaultregion' => 'side-pre',
|
2009-12-29 17:26:29 +00:00
|
|
|
'options' => array('langmenu'=>true),
|
2009-12-27 12:02:04 +00:00
|
|
|
),
|
|
|
|
'coursecategory' => array(
|
|
|
|
'file' => 'general.php',
|
|
|
|
'regions' => array('side-pre', 'side-post'),
|
MDL-32879 changes default region from side-post to side-pre for most CORE themes (Afterburner,Anomally, Arialist, Base, Boxxie, Canvas, Formal White, Formfactor, Leatherbound, Magazine,Splash and Standard Old)
2012-05-12 02:09:31 +01:00
|
|
|
'defaultregion' => 'side-pre',
|
2009-12-27 12:02:04 +00:00
|
|
|
),
|
2010-07-07 08:50:06 +00:00
|
|
|
// part of course, typical for modules - default page layout if $cm specified in require_login()
|
2010-01-18 05:58:04 +00:00
|
|
|
'incourse' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'general.php',
|
2009-12-27 12:02:04 +00:00
|
|
|
'regions' => array('side-pre', 'side-post'),
|
MDL-32879 changes default region from side-post to side-pre for most CORE themes (Afterburner,Anomally, Arialist, Base, Boxxie, Canvas, Formal White, Formfactor, Leatherbound, Magazine,Splash and Standard Old)
2012-05-12 02:09:31 +01:00
|
|
|
'defaultregion' => 'side-pre',
|
2009-07-09 07:35:03 +00:00
|
|
|
),
|
|
|
|
// The site home page.
|
2009-12-27 12:02:04 +00:00
|
|
|
'frontpage' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'frontpage.php',
|
2009-07-09 07:35:03 +00:00
|
|
|
'regions' => array('side-pre', 'side-post'),
|
MDL-32879 changes default region from side-post to side-pre for most CORE themes (Afterburner,Anomally, Arialist, Base, Boxxie, Canvas, Formal White, Formfactor, Leatherbound, Magazine,Splash and Standard Old)
2012-05-12 02:09:31 +01:00
|
|
|
'defaultregion' => 'side-pre',
|
2009-07-09 07:35:03 +00:00
|
|
|
),
|
2009-12-16 18:00:58 +00:00
|
|
|
// Server administration scripts.
|
|
|
|
'admin' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'general.php',
|
2009-12-16 18:00:58 +00:00
|
|
|
'regions' => array('side-pre'),
|
2009-12-27 12:02:04 +00:00
|
|
|
'defaultregion' => 'side-pre',
|
2009-12-16 18:00:58 +00:00
|
|
|
),
|
2009-12-27 12:02:04 +00:00
|
|
|
// My dashboard page
|
|
|
|
'mydashboard' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'general.php',
|
2009-12-27 12:02:04 +00:00
|
|
|
'regions' => array('side-pre', 'side-post'),
|
MDL-32879 changes default region from side-post to side-pre for most CORE themes (Afterburner,Anomally, Arialist, Base, Boxxie, Canvas, Formal White, Formfactor, Leatherbound, Magazine,Splash and Standard Old)
2012-05-12 02:09:31 +01:00
|
|
|
'defaultregion' => 'side-pre',
|
2009-12-29 17:26:29 +00:00
|
|
|
'options' => array('langmenu'=>true),
|
2009-12-27 12:02:04 +00:00
|
|
|
),
|
|
|
|
// My public page
|
|
|
|
'mypublic' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'general.php',
|
2009-12-16 18:00:58 +00:00
|
|
|
'regions' => array('side-pre', 'side-post'),
|
MDL-32879 changes default region from side-post to side-pre for most CORE themes (Afterburner,Anomally, Arialist, Base, Boxxie, Canvas, Formal White, Formfactor, Leatherbound, Magazine,Splash and Standard Old)
2012-05-12 02:09:31 +01:00
|
|
|
'defaultregion' => 'side-pre',
|
2009-12-16 18:00:58 +00:00
|
|
|
),
|
2009-12-27 12:02:04 +00:00
|
|
|
'login' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'general.php',
|
2009-07-09 07:35:03 +00:00
|
|
|
'regions' => array(),
|
2009-12-29 17:26:29 +00:00
|
|
|
'options' => array('langmenu'=>true),
|
2009-07-09 07:35:03 +00:00
|
|
|
),
|
2010-07-07 08:50:06 +00:00
|
|
|
|
2009-12-16 18:00:58 +00:00
|
|
|
// Pages that appear in pop-up windows - no navigation, no blocks, no header.
|
2009-07-09 07:35:03 +00:00
|
|
|
'popup' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'general.php',
|
2009-07-09 07:35:03 +00:00
|
|
|
'regions' => array(),
|
2012-11-28 16:40:19 +08:00
|
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
|
2009-07-09 07:35:03 +00:00
|
|
|
),
|
2009-12-16 18:00:58 +00:00
|
|
|
// No blocks and minimal footer - used for legacy frame layouts only!
|
|
|
|
'frametop' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'general.php',
|
2009-12-16 18:00:58 +00:00
|
|
|
'regions' => array(),
|
2012-11-28 16:40:19 +08:00
|
|
|
'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
|
2009-12-16 18:00:58 +00:00
|
|
|
),
|
2009-12-27 12:02:04 +00:00
|
|
|
// Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
|
2009-12-16 18:00:58 +00:00
|
|
|
'embedded' => array(
|
|
|
|
'file' => 'embedded.php',
|
2009-07-14 06:33:34 +00:00
|
|
|
'regions' => array(),
|
2012-11-28 16:40:19 +08:00
|
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
|
2009-07-14 06:33:34 +00:00
|
|
|
),
|
2009-07-09 07:35:03 +00:00
|
|
|
// Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
|
2009-07-10 05:42:54 +00:00
|
|
|
// This must not have any blocks, and it is good idea if it does not have links to
|
2009-12-16 18:00:58 +00:00
|
|
|
// other places - for example there should not be a home link in the footer...
|
2009-07-09 07:35:03 +00:00
|
|
|
'maintenance' => array(
|
2010-07-07 08:50:06 +00:00
|
|
|
'file' => 'general.php',
|
2009-07-09 07:35:03 +00:00
|
|
|
'regions' => array(),
|
2012-11-28 16:40:19 +08:00
|
|
|
'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
|
2009-07-09 07:35:03 +00:00
|
|
|
),
|
2010-08-16 19:34:23 +00:00
|
|
|
// Should display the content and basic headers only.
|
|
|
|
'print' => array(
|
|
|
|
'file' => 'general.php',
|
|
|
|
'regions' => array(),
|
2012-11-28 16:40:19 +08:00
|
|
|
'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>false, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
|
2010-08-16 19:34:23 +00:00
|
|
|
),
|
2009-07-07 05:05:06 +00:00
|
|
|
);
|
2005-03-29 14:20:11 +00:00
|
|
|
|
2010-01-21 08:38:50 +00:00
|
|
|
/**
|
|
|
|
* This enables the dock on the side of the page as this theme supports it.
|
|
|
|
*/
|
2010-07-07 08:50:06 +00:00
|
|
|
$THEME->enable_dock = false;
|