2 // This file is part of Moodle - http://moodle.org/
4 // Moodle is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
9 // Moodle is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // You should have received a copy of the GNU General Public License
15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
20 * @package theme_boost
21 * @copyright 2016 Frédéric Massart
22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25 defined('MOODLE_INTERNAL') ||
die();
27 require_once(__DIR__
. '/lib.php');
29 $THEME->name
= 'boost';
31 $THEME->editor_sheets
= [];
32 $THEME->scss
= function($theme) {
33 return theme_boost_get_main_scss_content($theme);
37 // Most backwards compatible layout without the blocks - this is the layout used by default.
39 'file' => 'columns2.php',
42 // Standard layout with blocks, this is recommended for most pages with general information.
44 'file' => 'columns2.php',
45 'regions' => array('side-pre'),
46 'defaultregion' => 'side-pre',
50 'file' => 'columns2.php',
51 'regions' => array('side-pre'),
52 'defaultregion' => 'side-pre',
53 'options' => array('langmenu' => true),
55 'coursecategory' => array(
56 'file' => 'columns2.php',
57 'regions' => array('side-pre'),
58 'defaultregion' => 'side-pre',
60 // Part of course, typical for modules - default page layout if $cm specified in require_login().
62 'file' => 'columns2.php',
63 'regions' => array('side-pre'),
64 'defaultregion' => 'side-pre',
66 // The site home page.
68 'file' => 'columns2.php',
69 'regions' => array('side-pre'),
70 'defaultregion' => 'side-pre',
71 'options' => array('nonavbar' => true),
73 // Server administration scripts.
75 'file' => 'columns2.php',
76 'regions' => array('side-pre'),
77 'defaultregion' => 'side-pre',
80 'mydashboard' => array(
81 'file' => 'columns2.php',
82 'regions' => array('side-pre'),
83 'defaultregion' => 'side-pre',
84 'options' => array('nonavbar' => true, 'langmenu' => true),
88 'file' => 'columns2.php',
89 'regions' => array('side-pre'),
90 'defaultregion' => 'side-pre',
93 'file' => 'login.php',
95 'options' => array('langmenu' => true),
98 // Pages that appear in pop-up windows - no navigation, no blocks, no header.
100 'file' => 'columns1.php',
101 'regions' => array(),
102 'options' => array('nofooter' => true, 'nonavbar' => true),
104 // No blocks and minimal footer - used for legacy frame layouts only!
106 'file' => 'columns1.php',
107 'regions' => array(),
108 'options' => array('nofooter' => true, 'nocoursefooter' => true),
110 // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible.
112 'file' => 'embedded.php',
115 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
116 // This must not have any blocks, links, or API calls that would lead to database or cache interaction.
117 // Please be extremely careful if you are modifying this layout.
118 'maintenance' => array(
119 'file' => 'maintenance.php',
120 'regions' => array(),
122 // Should display the content and basic headers only.
124 'file' => 'columns1.php',
125 'regions' => array(),
126 'options' => array('nofooter' => true, 'nonavbar' => false),
128 // The pagelayout used when a redirection is occuring.
130 'file' => 'embedded.php',
131 'regions' => array(),
133 // The pagelayout used for reports.
135 'file' => 'columns2.php',
136 'regions' => array('side-pre'),
137 'defaultregion' => 'side-pre',
139 // The pagelayout used for safebrowser and securewindow.
141 'file' => 'secure.php',
142 'regions' => array('side-pre'),
143 'defaultregion' => 'side-pre'
147 $THEME->parents
= [];
148 $THEME->enable_dock
= false;
149 $THEME->csstreepostprocessor
= 'theme_boost_css_tree_post_processor';
150 $THEME->extrascsscallback
= 'theme_boost_get_extra_scss';
151 $THEME->prescsscallback
= 'theme_boost_get_pre_scss';
152 $THEME->yuicssmodules
= array();
153 $THEME->rendererfactory
= 'theme_overridden_renderer_factory';
154 $THEME->requiredblocks
= '';
155 $THEME->addblockposition
= BLOCK_ADDBLOCK_POSITION_FLATNAV
;
156 $THEME->iconsystem
= \core\output\icon_system
::FONTAWESOME
;