edb7d5ad84
Squashed commit of the following: commit 2c2164a7e27bd2b81102251420892386e39edecc Author: Mary Evans <lazydaisy@visible-expression.co.uk> Date: Tue Aug 20 12:59:47 2013 +0100 MDL-40347 theme: Modified upgrade.txt and created bootstrapbase/upgrade.txt. commit 4449975a0f9249785ed152f63786bf7974c1776e Author: Mary Evans <lazydaisy@visible-expression.co.uk> Date: Tue Aug 13 18:42:20 2013 +0100 MDL-40347 grade/report/grader: added RTL css previously in bootstrapbase/less/moodle/grade.less to styles.css commit b0af8f05a411b3dbb1d9c162a0d65c7f9c069c0f Author: Mary Evans <lazydaisy@visible-expression.co.uk> Date: Tue Aug 13 12:42:02 2013 +0100 MDL-40347_M26 grade/report/grader: cleaned up grade/report/grader/styles.css. commit 52627137dc662d47cbfdf023d056baf102f29d8a Author: Mary Evans <lazydaisy@visible-expression.co.uk> Date: Sat Jul 6 17:15:12 2013 +0100 MDL-40347 grade/report/grader: Grade report does not highlight some cells properly. Merged/squashed original commit by Marina Glancy who: - added class 'i123' to each cell in the column - changed JS to highlight the cells with this class instead that cells with the column number - changed grade report css so the .vmarked and .hmarked classes have higher priority for all rows - made cells in 'average range' row td instead of th - little corrections to css: removed background image for some cells with .header css class - MyMobile theme disabled cells highlighting, make sure it disables it in all cases Merged/squashed original commit Mary Evans who: - removed theme/bootstrapbase/less/moodle/grade.less - removed @import "moodle/grade"; from bootstrapbase/less/moodle.less - removed reference to plugins_exclude_sheets for grader in both bootstrapbase/config.php and clean themes/config.php - commented out .hidden from bootstrapbase/less/bootstrap/responsive_utilities.less - made minor changes to grader/style.css
177 lines
5.8 KiB
PHP
177 lines
5.8 KiB
PHP
<?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/>.
|
|
|
|
/**
|
|
* Configuration for Moodle's bootstrap theme.
|
|
*
|
|
* DO NOT MODIFY THIS THEME!
|
|
* COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD.
|
|
*
|
|
* For full information about creating Moodle themes, see:
|
|
* http://docs.moodle.org/dev/Themes_2.0
|
|
*
|
|
* @package theme_bootstrapbase
|
|
* @copyright 2013 Bas Brands. www.sonsbeekmedia.nl
|
|
* @authors Bas Brands, David Scotson
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
|
|
$THEME->doctype = 'html5';
|
|
$THEME->yuicssmodules = array();
|
|
$THEME->name = 'bootstrapbase';
|
|
$THEME->parents = array();
|
|
$THEME->sheets = array('moodle');
|
|
$THEME->supportscssoptimisation = false;
|
|
|
|
$THEME->editor_sheets = array('editor');
|
|
|
|
$THEME->plugins_exclude_sheets = array(
|
|
'block' => array(
|
|
'html'
|
|
),
|
|
);
|
|
|
|
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
|
|
|
|
$THEME->layouts = array(
|
|
// Most backwards compatible layout without the blocks - this is the layout used by default.
|
|
'base' => array(
|
|
'file' => 'columns1.php',
|
|
'regions' => array(),
|
|
),
|
|
// Standard layout with blocks, this is recommended for most pages with general information.
|
|
'standard' => array(
|
|
'file' => 'columns3.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
// Main course page.
|
|
'course' => array(
|
|
'file' => 'columns3.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
'options' => array('langmenu'=>true),
|
|
),
|
|
'coursecategory' => array(
|
|
'file' => 'columns3.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
// part of course, typical for modules - default page layout if $cm specified in require_login().
|
|
'incourse' => array(
|
|
'file' => 'columns3.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
// The site home page.
|
|
'frontpage' => array(
|
|
'file' => 'columns3.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
'options' => array('nonavbar'=>true),
|
|
),
|
|
// Server administration scripts.
|
|
'admin' => array(
|
|
'file' => 'columns2.php',
|
|
'regions' => array('side-pre'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
// My dashboard page.
|
|
'mydashboard' => array(
|
|
'file' => 'columns3.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
'options' => array('langmenu'=>true),
|
|
),
|
|
// My public page.
|
|
'mypublic' => array(
|
|
'file' => 'columns3.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
'login' => array(
|
|
'file' => 'columns1.php',
|
|
'regions' => array(),
|
|
'options' => array('langmenu'=>true),
|
|
),
|
|
|
|
// Pages that appear in pop-up windows - no navigation, no blocks, no header.
|
|
'popup' => array(
|
|
'file' => 'columns1.php',
|
|
'regions' => array(),
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>true),
|
|
),
|
|
// No blocks and minimal footer - used for legacy frame layouts only!
|
|
'frametop' => array(
|
|
'file' => 'columns1.php',
|
|
'regions' => array(),
|
|
'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
|
|
),
|
|
// Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible.
|
|
'embedded' => array(
|
|
'file' => 'embedded.php',
|
|
'regions' => array()
|
|
),
|
|
// 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(
|
|
'file' => 'columns1.php',
|
|
'regions' => array(),
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocoursefooter'=>true, 'nocourseheader'=>true),
|
|
),
|
|
// Should display the content and basic headers only.
|
|
'print' => array(
|
|
'file' => 'columns1.php',
|
|
'regions' => array(),
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>false),
|
|
),
|
|
// The pagelayout used when a redirection is occuring.
|
|
'redirect' => array(
|
|
'file' => 'embedded.php',
|
|
'regions' => array(),
|
|
),
|
|
// The pagelayout used for reports.
|
|
'report' => array(
|
|
'file' => 'columns2.php',
|
|
'regions' => array('side-pre'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
// The pagelayout used for safebrowser and securewindow.
|
|
'secure' => array(
|
|
'file' => 'secure.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre'
|
|
),
|
|
);
|
|
|
|
$THEME->javascripts = array(
|
|
);
|
|
$THEME->javascripts_footer = array(
|
|
'moodlebootstrap',
|
|
);
|
|
|
|
if (core_useragent::check_ie_version() && !core_useragent::check_ie_version('9.0')) {
|
|
$THEME->javascripts[] = 'html5shiv';
|
|
}
|
|
|
|
$THEME->hidefromselector = true;
|
|
|
|
$THEME->blockrtlmanipulations = array(
|
|
'side-pre' => 'side-post',
|
|
'side-post' => 'side-pre'
|
|
);
|