MDL-70237 payment: Allow html tags in gateway description
[moodle.git] / install / css.php
CommitLineData
e5d2c577
PS
1<?php
2// This file is part of Moodle - http://moodle.org/
3//
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.
8//
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.
13//
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/>.
16
17/**
18 * This script prints basic CSS for the installer
19 *
20 * @package core
21 * @subpackage install
22 * @copyright 2011 Petr Skoda (http://skodak.org)
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24 */
25
1fcf0ca8 26if (file_exists(__DIR__.'/../config.php')) {
e5d2c577
PS
27 // already installed
28 die;
29}
30
7d1f086f 31// and remove some of the CSS in $content.
c8edee42 32$files = array('boost/style/moodle.css');
e5d2c577
PS
33
34$content = '';
35
36foreach($files as $file) {
1fcf0ca8 37 $content .= file_get_contents(__DIR__.'/../theme/'.$file) . "\n";
e5d2c577
PS
38}
39
395e5e53 40$content .= <<<EOF
e5d2c577 41
7d1f086f
AD
42body {
43 padding: 4px;
44}
45
525ef9c8
FM
46.text-ltr {
47 direction: ltr !important;
48}
49
7d1f086f
AD
50.headermain {
51 margin: 15px;
52}
53
e5d2c577
PS
54h2 {
55 text-align:center;
56}
57
395e5e53 58textarea, .uneditable-input {
7d1f086f
AD
59 width: 50%;
60}
61
e5d2c577 62#installdiv {
395e5e53
AN
63 margin-left:auto;
64 margin-right:auto;
65 padding: 5px;
66 margin-bottom: 15px;
e5d2c577
PS
67}
68
69#installdiv dt {
395e5e53 70 font-weight: bold;
e5d2c577
PS
71}
72
73#installdiv dd {
395e5e53 74 padding-bottom: 0.5em;
e5d2c577
PS
75}
76
77.stage {
395e5e53
AN
78 margin-top: 2em;
79 margin-bottom: 2em;
80 padding: 25px;
e5d2c577
PS
81}
82
83#installform {
395e5e53 84 width: 100%;
e5d2c577
PS
85}
86
87#envresult {
395e5e53
AN
88 text-align:left;
89 width: auto;
90 margin-left:10em;
e5d2c577
PS
91}
92
93#envresult dd {
395e5e53 94 color: red;
e5d2c577
PS
95}
96
395e5e53
AN
97fieldset {
98 text-align:center;
99 border:none;
e5d2c577
PS
100}
101
395e5e53
AN
102fieldset .configphp,
103fieldset .alert {
104 text-align: left;
b42cf867 105 direction: ltr;
e5d2c577
PS
106}
107
395e5e53
AN
108.sitelink {
109 text-align: center;
e5d2c577
PS
110}
111
395e5e53 112EOF;
e5d2c577
PS
113
114// fix used urls
115$content = str_replace('[[pix:theme|hgradient]]', '../theme/standard/pix/hgradient.jpg', $content);
116$content = str_replace('[[pix:theme|vgradient]]', '../theme/standard/pix/vgradient.jpg', $content);
117
118@header('Content-Disposition: inline; filename="css.php"');
119@header('Cache-Control: no-store, no-cache, must-revalidate');
120@header('Cache-Control: post-check=0, pre-check=0', false);
121@header('Pragma: no-cache');
122@header('Expires: Mon, 20 Aug 1969 09:23:00 GMT');
123@header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
124@header('Accept-Ranges: none');
125@header('Content-Type: text/css; charset=utf-8');
126
127echo $content;