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/>.
18 * This script prints basic CSS for the installer
22 * @copyright 2011 Petr Skoda (http://skodak.org)
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26 if (file_exists(dirname(dirname(__FILE__
)).'/config.php')) {
31 // include only the necessary stuff from themes, keep this small otherwise IE will complain...
33 'base/style/pagelayout.css',
34 'base/style/core.css',
35 'standard/style/core.css',
36 'standard/style/css3.css');
41 foreach($files as $file) {
42 $content .= file_get_contents(dirname(dirname(__FILE__
)).'/theme/'.$file) . "\n";
62 padding-bottom: 0.5em;
96 .formrow label.formlabel {
104 .formrow .forminput {
123 background-color:white;
136 $content = str_replace('[[pix:theme|hgradient]]', '../theme/standard/pix/hgradient.jpg', $content);
137 $content = str_replace('[[pix:theme|vgradient]]', '../theme/standard/pix/vgradient.jpg', $content);
139 @header
('Content-Disposition: inline; filename="css.php"');
140 @header
('Cache-Control: no-store, no-cache, must-revalidate');
141 @header
('Cache-Control: post-check=0, pre-check=0', false);
142 @header
('Pragma: no-cache');
143 @header
('Expires: Mon, 20 Aug 1969 09:23:00 GMT');
144 @header
('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
145 @header
('Accept-Ranges: none');
146 @header
('Content-Type: text/css; charset=utf-8');