mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
169 lines
5.1 KiB
PHP
169 lines
5.1 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 Moodle Bootstrap theme
|
|
* @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 = 'bootstrap';
|
|
$THEME->parents = array('');
|
|
$THEME->sheets = array('generated');
|
|
$THEME->supportscssoptimisation = false;
|
|
|
|
$THEME->editor_sheets = array('editor');
|
|
|
|
$THEME->plugins_exclude_sheets = array(
|
|
'block' => array(
|
|
'settings',
|
|
'navigation',
|
|
'html'
|
|
),
|
|
'gradereport' => array(
|
|
'grader',
|
|
),
|
|
);
|
|
|
|
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
|
|
|
|
$THEME->layouts = array(
|
|
'base' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
'standard' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
'course' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre'
|
|
),
|
|
'coursecategory' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
'incourse' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
'frontpage' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array('side-pre'),
|
|
'defaultregion' => 'side-pre',
|
|
'options' => array('nonavbar'=>true),
|
|
),
|
|
'admin' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array('side-pre'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
'mydashboard' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
'options' => array('langmenu'=>true),
|
|
),
|
|
'mypublic' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
'login' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array(),
|
|
'options' => array('langmenu'=>true),
|
|
'options' => array('nonavbar'=>true, 'noheader'=>true),
|
|
),
|
|
'popup' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array(),
|
|
'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
|
|
),
|
|
'frametop' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array(),
|
|
'options' => array('nofooter'=>true),
|
|
),
|
|
'maintenance' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array(),
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>true),
|
|
),
|
|
'embedded' => array(
|
|
'theme' => 'canvas',
|
|
'file' => 'embedded.php',
|
|
'regions' => array(),
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>true),
|
|
),
|
|
'print' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array(),
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
|
|
),
|
|
'redirect' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array(),
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
|
|
),
|
|
'report' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array('side-pre'),
|
|
'defaultregion' => 'side-pre',
|
|
),
|
|
// The pagelayout used for safebrowser and securewindow.
|
|
'secure' => array(
|
|
'file' => 'general.php',
|
|
'regions' => array('side-pre', 'side-post'),
|
|
'defaultregion' => 'side-pre',
|
|
'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true,
|
|
'nologinlinks'=>true, 'nocourseheaderfooter'=>true),
|
|
),
|
|
);
|
|
|
|
$THEME->javascripts = array(
|
|
);
|
|
$THEME->javascripts_footer = array(
|
|
'moodlebootstrap',
|
|
);
|
|
|
|
$useragent = '';
|
|
if (!empty($_SERVER['HTTP_USER_AGENT'])) {
|
|
$useragent = $_SERVER['HTTP_USER_AGENT'];
|
|
}
|
|
if (strpos($useragent, 'MSIE 8') || strpos($useragent, 'MSIE 7')) {
|
|
$THEME->javascripts[] = 'html5shiv';
|
|
}
|
|
|
|
$THEME->hidefromselector = true;
|