2010-04-27 15:14:09 +00:00
|
|
|
<?php
|
2010-06-25 05:51:03 +00:00
|
|
|
// 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/>.
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Configuration for Moodle's Canvas theme.
|
|
|
|
*
|
|
|
|
* This theme is special, and implements a minimalist theme with basic styles.
|
|
|
|
* It is intended to be used with Base as a starting point for other themes to build upon.
|
|
|
|
* It is not recommend to actually choose this theme for production sites!
|
|
|
|
*
|
2010-08-16 19:34:23 +00:00
|
|
|
* DO NOT COPY THIS TO START NEW THEMES!
|
2010-06-25 05:51:03 +00:00
|
|
|
* Start with another theme, like "standard".
|
|
|
|
*
|
|
|
|
* For full information about creating Moodle themes, see:
|
2011-07-04 11:21:48 +08:00
|
|
|
* http://docs.moodle.org/dev/Themes_2.0
|
2010-06-25 05:51:03 +00:00
|
|
|
*
|
2013-04-27 13:22:59 +02:00
|
|
|
* @package theme_canvas
|
2010-06-25 05:51:03 +00:00
|
|
|
* @copyright 2010 Patrick Malley
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
|
*/
|
|
|
|
|
2010-04-27 15:14:09 +00:00
|
|
|
$THEME->name = 'canvas';
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
// Name of the theme. Most likely the name of
|
2010-08-16 19:34:23 +00:00
|
|
|
// the directory in which this file resides.
|
2010-04-27 15:14:09 +00:00
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
2012-07-29 21:31:47 +01:00
|
|
|
$THEME->parents = array('base');
|
2010-04-27 15:14:09 +00:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////
|
|
|
|
// Which existing theme(s) in the /theme/ directory
|
2010-08-16 19:34:23 +00:00
|
|
|
// do you want this theme to extend. A theme can
|
|
|
|
// extend any number of themes. Rather than
|
|
|
|
// creating an entirely new theme and copying all
|
|
|
|
// of the CSS, you can simply create a new theme,
|
|
|
|
// extend the theme you like and just add the
|
2010-04-27 15:14:09 +00:00
|
|
|
// changes you want to your theme.
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
2010-06-25 05:47:31 +00:00
|
|
|
$THEME->sheets = array(
|
2010-11-05 02:53:47 +00:00
|
|
|
'pagelayout',
|
|
|
|
'text',
|
|
|
|
'core',
|
|
|
|
'course',
|
|
|
|
'mods',
|
|
|
|
'blocks',
|
|
|
|
'tabs',
|
|
|
|
'admin',
|
|
|
|
'tables',
|
|
|
|
'popups',
|
2010-11-08 14:06:28 +00:00
|
|
|
'question',
|
2010-06-25 05:47:31 +00:00
|
|
|
);
|
2010-04-27 15:14:09 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
2010-08-16 19:34:23 +00:00
|
|
|
// Name of the stylesheet(s) you've including in
|
2010-04-27 16:42:00 +00:00
|
|
|
// this theme's /styles/ directory.
|
2010-04-27 15:14:09 +00:00
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
2012-07-29 21:31:47 +01:00
|
|
|
$THEME->parents_exclude_sheets = array();
|
2010-04-27 15:14:09 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
2010-04-27 16:42:00 +00:00
|
|
|
// An array of stylesheets not to inherit from the
|
|
|
|
// themes parents
|
2010-04-27 15:14:09 +00:00
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
$THEME->layouts = array(
|
|
|
|
'base' => 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',
|
2010-04-27 15:14:09 +00:00
|
|
|
),
|
2010-07-18 03:34:41 +00:00
|
|
|
'standard' => array(
|
2010-04-27 15:14:09 +00:00
|
|
|
'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',
|
2010-04-27 15:14:09 +00:00
|
|
|
),
|
|
|
|
'course' => 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'
|
2010-04-27 15:14:09 +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',
|
2010-04-27 15:14:09 +00:00
|
|
|
),
|
|
|
|
'incourse' => 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',
|
2010-04-27 15:14:09 +00:00
|
|
|
),
|
|
|
|
'frontpage' => array(
|
|
|
|
'file' => 'frontpage.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',
|
2010-04-27 15:14:09 +00:00
|
|
|
),
|
|
|
|
'admin' => array(
|
|
|
|
'file' => 'general.php',
|
|
|
|
'regions' => array('side-pre'),
|
|
|
|
'defaultregion' => 'side-pre',
|
|
|
|
),
|
|
|
|
'mydashboard' => 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',
|
2010-04-27 15:14:09 +00:00
|
|
|
'options' => array('langmenu'=>true),
|
|
|
|
),
|
|
|
|
'mypublic' => 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',
|
2010-04-27 15:14:09 +00:00
|
|
|
),
|
|
|
|
'login' => array(
|
|
|
|
'file' => 'general.php',
|
|
|
|
'regions' => array(),
|
|
|
|
'options' => array('langmenu'=>true),
|
|
|
|
),
|
|
|
|
'popup' => array(
|
|
|
|
'file' => 'general.php',
|
|
|
|
'regions' => array(),
|
2012-10-18 09:38:36 +08:00
|
|
|
'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
|
2010-04-27 15:14:09 +00:00
|
|
|
),
|
|
|
|
'frametop' => array(
|
|
|
|
'file' => 'general.php',
|
|
|
|
'regions' => array(),
|
2012-10-18 09:38:36 +08:00
|
|
|
'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
|
2010-04-27 15:14:09 +00:00
|
|
|
),
|
|
|
|
'maintenance' => array(
|
|
|
|
'file' => 'general.php',
|
|
|
|
'regions' => array(),
|
2012-10-18 09:38:36 +08:00
|
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
|
2010-04-27 15:14:09 +00:00
|
|
|
),
|
|
|
|
'embedded' => array(
|
|
|
|
'file' => 'embedded.php',
|
|
|
|
'regions' => array(),
|
2012-10-18 09:38:36 +08:00
|
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
|
2010-04-27 15:14:09 +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-10-18 09:38:36 +08:00
|
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
|
2010-08-16 19:34:23 +00:00
|
|
|
),
|
2010-10-25 08:52:37 +00:00
|
|
|
// The pagelayout used when a redirection is occuring.
|
|
|
|
'redirect' => array(
|
|
|
|
'file' => 'embedded.php',
|
|
|
|
'regions' => array(),
|
2012-10-18 09:38:36 +08:00
|
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
|
2010-10-25 08:52:37 +00:00
|
|
|
),
|
2010-11-05 02:53:47 +00:00
|
|
|
'report' => array(
|
|
|
|
'file' => 'report.php',
|
|
|
|
'regions' => array('side-pre'),
|
|
|
|
'defaultregion' => 'side-pre',
|
2012-09-06 09:48:52 +02:00
|
|
|
),
|
|
|
|
// The pagelayout used for safebrowser and securewindow.
|
|
|
|
'secure' => array(
|
|
|
|
'file' => 'general.php',
|
|
|
|
'regions' => array('side-pre', 'side-post'),
|
|
|
|
'defaultregion' => 'side-pre',
|
2012-10-18 09:38:36 +08:00
|
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologinlinks'=>true, 'nocourseheaderfooter'=>true),
|
2012-09-06 09:48:52 +02:00
|
|
|
),
|
2010-04-27 15:14:09 +00:00
|
|
|
);
|
|
|
|
|
2010-05-03 17:36:27 +00:00
|
|
|
/////////////////////////////////////////////////////////
|
2010-04-27 15:14:09 +00:00
|
|
|
// These are all of the possible layouts in Moodle. The
|
|
|
|
// simplest way to do this is to keep the theme and file
|
|
|
|
// variables the same for every layout. Including them
|
|
|
|
// all in this way allows some flexibility down the road
|
|
|
|
// if you want to add a different layout template to a
|
|
|
|
// specific page.
|
2010-05-03 17:36:27 +00:00
|
|
|
/////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
$THEME->hidefromselector = true;
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////
|
2010-08-16 19:34:23 +00:00
|
|
|
// We don't want the base theme to be shown on the
|
|
|
|
// theme selection screen, by setting this to true
|
|
|
|
// it will only be shown if theme designer mode is
|
2010-05-03 17:36:27 +00:00
|
|
|
// switched on.
|
|
|
|
/////////////////////////////////////////////////////
|
|
|
|
|
2012-07-29 17:51:05 +01:00
|
|
|
$THEME->enable_dock = true;
|
2010-04-27 15:14:09 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
// Do you want to use the new navigation dock?
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
2012-07-29 17:51:05 +01:00
|
|
|
$THEME->editor_sheets = array('editor');
|
2010-04-27 15:14:09 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
2010-08-16 19:34:23 +00:00
|
|
|
// An array of stylesheets to include within the
|
2010-04-27 15:14:09 +00:00
|
|
|
// body of the editor.
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// $THEME->csspostprocess
|
2010-08-16 19:34:23 +00:00
|
|
|
|
2010-04-27 15:14:09 +00:00
|
|
|
////////////////////////////////////////////////////
|
2010-08-16 19:34:23 +00:00
|
|
|
// Allows the user to provide the name of a function
|
|
|
|
// that all CSS should be passed to before being
|
2010-04-27 15:14:09 +00:00
|
|
|
// delivered.
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
2010-08-16 19:34:23 +00:00
|
|
|
// $THEME->javascripts
|
2010-04-27 15:14:09 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
// An array containing the names of JavaScript files
|
2010-08-16 19:34:23 +00:00
|
|
|
// located in /javascript/ to include in the theme.
|
2010-04-27 15:14:09 +00:00
|
|
|
// (gets included in the head)
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
2010-08-16 19:34:23 +00:00
|
|
|
// $THEME->javascripts_footer
|
2010-04-27 15:14:09 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
// As above but will be included in the page footer.
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
2010-08-16 19:34:23 +00:00
|
|
|
// $THEME->larrow
|
2010-04-27 15:14:09 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
2010-08-16 19:34:23 +00:00
|
|
|
// Overrides the left arrow image used throughout
|
2010-04-27 15:14:09 +00:00
|
|
|
// Moodle
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
2010-08-16 19:34:23 +00:00
|
|
|
// $THEME->rarrow
|
2010-04-27 15:14:09 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
// Overrides the right arrow image used throughout Moodle
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// $THEME->parents_exclude_javascripts
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
// An array of JavaScript files NOT to inherit from
|
|
|
|
// the themes parents
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// $THEME->plugins_exclude_sheets
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
2010-08-16 19:34:23 +00:00
|
|
|
// An array of plugin sheets to ignore and not
|
2010-04-27 15:14:09 +00:00
|
|
|
// include.
|
|
|
|
////////////////////////////////////////////////////
|
|
|
|
|
2011-07-22 23:42:26 +02:00
|
|
|
// $THEME->rendererfactory
|
2010-04-27 15:14:09 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////
|
2010-08-16 19:34:23 +00:00
|
|
|
// Sets a custom render factory to use with the
|
2010-04-27 15:14:09 +00:00
|
|
|
// theme, used when working with custom renderers.
|
2012-07-29 21:31:47 +01:00
|
|
|
////////////////////////////////////////////////////
|