1 |
efrain |
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 |
*
|
|
|
19 |
* @package theme_monocolor
|
|
|
20 |
* @copyright 2022 - 2023 Marcin Czaja (https://rosea.io)
|
|
|
21 |
* @license Commercial https://themeforest.net/licenses
|
|
|
22 |
*
|
|
|
23 |
*/
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
defined('MOODLE_INTERNAL') || die();
|
|
|
27 |
|
|
|
28 |
$page = new admin_settingpage('theme_monocolor_customization', get_string('settingscustomization', 'theme_monocolor'));
|
|
|
29 |
$name = 'theme_monocolor/hgooglefont';
|
|
|
30 |
$heading = get_string('hgooglefont', 'theme_monocolor');
|
|
|
31 |
$title = get_string('hgooglefont_desc', 'theme_monocolor');
|
|
|
32 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
|
|
33 |
$page->add($setting);
|
|
|
34 |
|
|
|
35 |
// Google Font.
|
|
|
36 |
$name = 'theme_monocolor/googlefonturl';
|
|
|
37 |
$title = get_string('googlefonturl', 'theme_monocolor');
|
|
|
38 |
$description = get_string('googlefonturl_desc', 'theme_monocolor');
|
|
|
39 |
$default = 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Space+Grotesk:wght@500&display=swap';
|
|
|
40 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
41 |
$page->add($setting);
|
|
|
42 |
|
|
|
43 |
$name = 'theme_monocolor/fontheadings';
|
|
|
44 |
$title = get_string('fontheadings', 'theme_monocolor');
|
|
|
45 |
$description = get_string('fontheadings_desc', 'theme_monocolor');
|
|
|
46 |
$default = "'Space Grotesk', Arial, sans-serif";
|
|
|
47 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
|
|
48 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
49 |
$page->add($setting);
|
|
|
50 |
|
|
|
51 |
$name = 'theme_monocolor/fontweightheadings';
|
|
|
52 |
$title = get_string('fontweightheadings', 'theme_monocolor');
|
|
|
53 |
$description = get_string('fontweightheadings_desc', 'theme_monocolor');
|
|
|
54 |
$default = '500';
|
|
|
55 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
|
|
56 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
57 |
$page->add($setting);
|
|
|
58 |
|
|
|
59 |
$name = 'theme_monocolor/fontbody';
|
|
|
60 |
$title = get_string('fontbody', 'theme_monocolor');
|
|
|
61 |
$description = get_string('fontbody_desc', 'theme_monocolor');
|
|
|
62 |
$default = "'Inter', Arial, sans-serif";
|
|
|
63 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
|
|
64 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
65 |
$page->add($setting);
|
|
|
66 |
|
|
|
67 |
$name = 'theme_monocolor/fontweightregular';
|
|
|
68 |
$title = get_string('fontweightregular', 'theme_monocolor');
|
|
|
69 |
$description = get_string('fontweightregular_desc', 'theme_monocolor');
|
|
|
70 |
$default = '400';
|
|
|
71 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
|
|
72 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
73 |
$page->add($setting);
|
|
|
74 |
|
|
|
75 |
$name = 'theme_monocolor/fontweightmedium';
|
|
|
76 |
$title = get_string('fontweightmedium', 'theme_monocolor');
|
|
|
77 |
$description = get_string('fontweightmedium_desc', 'theme_monocolor');
|
|
|
78 |
$default = '500';
|
|
|
79 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
|
|
80 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
81 |
$page->add($setting);
|
|
|
82 |
|
|
|
83 |
$name = 'theme_monocolor/fontweightbold';
|
|
|
84 |
$title = get_string('fontweightbold', 'theme_monocolor');
|
|
|
85 |
$description = get_string('fontweightbold_desc', 'theme_monocolor');
|
|
|
86 |
$default = '700';
|
|
|
87 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
|
|
88 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
89 |
$page->add($setting);
|
|
|
90 |
|
|
|
91 |
$name = 'theme_monocolor/hgeneral';
|
|
|
92 |
$heading = get_string('hgeneral', 'theme_monocolor');
|
|
|
93 |
$title = get_string('hgeneral_desc', 'theme_monocolor');
|
|
|
94 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
|
|
95 |
$page->add($setting);
|
|
|
96 |
|
|
|
97 |
$name = 'theme_monocolor/colorbodybg';
|
|
|
98 |
$title = get_string('colorbodybg', 'theme_monocolor');
|
|
|
99 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
100 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
101 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
102 |
$page->add($setting);
|
|
|
103 |
|
|
|
104 |
$name = 'theme_monocolor/colorborder';
|
|
|
105 |
$title = get_string('colorborder', 'theme_monocolor');
|
|
|
106 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
107 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
108 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
109 |
$page->add($setting);
|
|
|
110 |
|
|
|
111 |
$name = 'theme_monocolor/btnborderradius';
|
|
|
112 |
$title = get_string('btnborderradius', 'theme_monocolor');
|
|
|
113 |
$description = get_string('empty_desc', 'theme_monocolor');
|
|
|
114 |
$setting = new admin_setting_configtext($name, $title, $description, '');
|
|
|
115 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
116 |
$page->add($setting);
|
|
|
117 |
|
|
|
118 |
$name = 'theme_monocolor/hcolorstxt';
|
|
|
119 |
$heading = get_string('hcolorstxt', 'theme_monocolor');
|
|
|
120 |
$title = get_string('hcolorstxt_desc', 'theme_monocolor');
|
|
|
121 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
|
|
122 |
$page->add($setting);
|
|
|
123 |
|
|
|
124 |
$name = 'theme_monocolor/colorbody';
|
|
|
125 |
$title = get_string('colorbody', 'theme_monocolor');
|
|
|
126 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
127 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
128 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
129 |
$page->add($setting);
|
|
|
130 |
|
|
|
131 |
$name = 'theme_monocolor/colorbodysecondary';
|
|
|
132 |
$title = get_string('colorbodysecondary', 'theme_monocolor');
|
|
|
133 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
134 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
135 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
136 |
$page->add($setting);
|
|
|
137 |
|
|
|
138 |
$name = 'theme_monocolor/colorbodylight';
|
|
|
139 |
$title = get_string('colorbodylight', 'theme_monocolor');
|
|
|
140 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
141 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
142 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
143 |
$page->add($setting);
|
|
|
144 |
|
|
|
145 |
$name = 'theme_monocolor/colorheadings';
|
|
|
146 |
$title = get_string('colorheadings', 'theme_monocolor');
|
|
|
147 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
148 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
149 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
150 |
$page->add($setting);
|
|
|
151 |
|
|
|
152 |
$name = 'theme_monocolor/colorgradientheading1';
|
|
|
153 |
$title = get_string('colorgradientheading1', 'theme_monocolor');
|
|
|
154 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
155 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
156 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
157 |
$page->add($setting);
|
|
|
158 |
|
|
|
159 |
$name = 'theme_monocolor/colorgradientheading2';
|
|
|
160 |
$title = get_string('colorgradientheading2', 'theme_monocolor');
|
|
|
161 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
162 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
163 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
164 |
$page->add($setting);
|
|
|
165 |
|
|
|
166 |
$name = 'theme_monocolor/colorlink';
|
|
|
167 |
$title = get_string('colorlink', 'theme_monocolor');
|
|
|
168 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
169 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
170 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
171 |
$page->add($setting);
|
|
|
172 |
|
|
|
173 |
$name = 'theme_monocolor/colorlinkhover';
|
|
|
174 |
$title = get_string('colorlinkhover', 'theme_monocolor');
|
|
|
175 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
176 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
177 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
178 |
$page->add($setting);
|
|
|
179 |
|
|
|
180 |
$name = 'theme_monocolor/hcolorsprimary';
|
|
|
181 |
$heading = get_string('hcolorsprimary', 'theme_monocolor');
|
|
|
182 |
$title = get_string('hcolorsprimary_desc', 'theme_monocolor');
|
|
|
183 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
|
|
184 |
$page->add($setting);
|
|
|
185 |
|
|
|
186 |
$name = 'theme_monocolor/colorprimary600';
|
|
|
187 |
$title = get_string('colorprimary600', 'theme_monocolor');
|
|
|
188 |
$description = get_string('colorprimary_desc', 'theme_monocolor');
|
|
|
189 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
190 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
191 |
$page->add($setting);
|
|
|
192 |
|
|
|
193 |
$name = 'theme_monocolor/colorprimary100';
|
|
|
194 |
$title = get_string('colorprimary100', 'theme_monocolor');
|
|
|
195 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
196 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
197 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
198 |
$page->add($setting);
|
|
|
199 |
|
|
|
200 |
$name = 'theme_monocolor/colorprimary200';
|
|
|
201 |
$title = get_string('colorprimary200', 'theme_monocolor');
|
|
|
202 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
203 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
204 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
205 |
$page->add($setting);
|
|
|
206 |
|
|
|
207 |
$name = 'theme_monocolor/colorprimary300';
|
|
|
208 |
$title = get_string('colorprimary300', 'theme_monocolor');
|
|
|
209 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
210 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
211 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
212 |
$page->add($setting);
|
|
|
213 |
|
|
|
214 |
$name = 'theme_monocolor/colorprimary400';
|
|
|
215 |
$title = get_string('colorprimary400', 'theme_monocolor');
|
|
|
216 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
217 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
218 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
219 |
$page->add($setting);
|
|
|
220 |
|
|
|
221 |
$name = 'theme_monocolor/colorprimary500';
|
|
|
222 |
$title = get_string('colorprimary500', 'theme_monocolor');
|
|
|
223 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
224 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
225 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
226 |
$page->add($setting);
|
|
|
227 |
|
|
|
228 |
$name = 'theme_monocolor/colorprimary700';
|
|
|
229 |
$title = get_string('colorprimary700', 'theme_monocolor');
|
|
|
230 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
231 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
232 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
233 |
$page->add($setting);
|
|
|
234 |
|
|
|
235 |
$name = 'theme_monocolor/colorprimary800';
|
|
|
236 |
$title = get_string('colorprimary800', 'theme_monocolor');
|
|
|
237 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
238 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
239 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
240 |
$page->add($setting);
|
|
|
241 |
|
|
|
242 |
$name = 'theme_monocolor/colorprimary900';
|
|
|
243 |
$title = get_string('colorprimary900', 'theme_monocolor');
|
|
|
244 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
245 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
246 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
247 |
$page->add($setting);
|
|
|
248 |
|
|
|
249 |
$name = 'theme_monocolor/hcolorsgrays';
|
|
|
250 |
$heading = get_string('hcolorsgrays', 'theme_monocolor');
|
|
|
251 |
$title = get_string('hcolorsgrays_desc', 'theme_monocolor');
|
|
|
252 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
|
|
253 |
$page->add($setting);
|
|
|
254 |
|
|
|
255 |
$name = 'theme_monocolor/colorgray100';
|
|
|
256 |
$title = get_string('colorgray100', 'theme_monocolor');
|
|
|
257 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
258 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
259 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
260 |
$page->add($setting);
|
|
|
261 |
|
|
|
262 |
$name = 'theme_monocolor/colorgray200';
|
|
|
263 |
$title = get_string('colorgray200', 'theme_monocolor');
|
|
|
264 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
265 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
266 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
267 |
$page->add($setting);
|
|
|
268 |
|
|
|
269 |
$name = 'theme_monocolor/colorgray300';
|
|
|
270 |
$title = get_string('colorgray300', 'theme_monocolor');
|
|
|
271 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
272 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
273 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
274 |
$page->add($setting);
|
|
|
275 |
|
|
|
276 |
$name = 'theme_monocolor/colorgray400';
|
|
|
277 |
$title = get_string('colorgray400', 'theme_monocolor');
|
|
|
278 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
279 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
280 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
281 |
$page->add($setting);
|
|
|
282 |
|
|
|
283 |
$name = 'theme_monocolor/colorgray500';
|
|
|
284 |
$title = get_string('colorgray500', 'theme_monocolor');
|
|
|
285 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
286 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
287 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
288 |
$page->add($setting);
|
|
|
289 |
|
|
|
290 |
$name = 'theme_monocolor/colorgray600';
|
|
|
291 |
$title = get_string('colorgray600', 'theme_monocolor');
|
|
|
292 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
293 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
294 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
295 |
$page->add($setting);
|
|
|
296 |
|
|
|
297 |
$name = 'theme_monocolor/colorgray700';
|
|
|
298 |
$title = get_string('colorgray700', 'theme_monocolor');
|
|
|
299 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
300 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
301 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
302 |
$page->add($setting);
|
|
|
303 |
|
|
|
304 |
$name = 'theme_monocolor/colorgray800';
|
|
|
305 |
$title = get_string('colorgray800', 'theme_monocolor');
|
|
|
306 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
307 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
308 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
309 |
$page->add($setting);
|
|
|
310 |
|
|
|
311 |
$name = 'theme_monocolor/colorgray900';
|
|
|
312 |
$title = get_string('colorgray900', 'theme_monocolor');
|
|
|
313 |
$description = get_string('color_desc', 'theme_monocolor');
|
|
|
314 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
315 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
316 |
$page->add($setting);
|
|
|
317 |
|
|
|
318 |
$name = 'theme_monocolor/hdmgeneral';
|
|
|
319 |
$heading = get_string('hdmgeneral', 'theme_monocolor');
|
|
|
320 |
$setting = new admin_setting_heading($name, $heading, format_text(get_string('hgeneral_desc', 'theme_monocolor'), FORMAT_MARKDOWN));
|
|
|
321 |
$page->add($setting);
|
|
|
322 |
|
|
|
323 |
$name = 'theme_monocolor/dmcolorbodybg';
|
|
|
324 |
$title = get_string('dmcolorbodybg', 'theme_monocolor');
|
|
|
325 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
326 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
327 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
328 |
$page->add($setting);
|
|
|
329 |
|
|
|
330 |
$name = 'theme_monocolor/dmcolorborder';
|
|
|
331 |
$title = get_string('dmcolorborder', 'theme_monocolor');
|
|
|
332 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
333 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
334 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
335 |
$page->add($setting);
|
|
|
336 |
|
|
|
337 |
$name = 'theme_monocolor/hdmcolorstxt';
|
|
|
338 |
$heading = get_string('hdmcolorstxt', 'theme_monocolor');
|
|
|
339 |
$setting = new admin_setting_heading($name, $heading, format_text(get_string('hdmcolorstxt_desc', 'theme_monocolor'), FORMAT_MARKDOWN));
|
|
|
340 |
$page->add($setting);
|
|
|
341 |
|
|
|
342 |
$name = 'theme_monocolor/dmcolorbody';
|
|
|
343 |
$title = get_string('dmcolorbody', 'theme_monocolor');
|
|
|
344 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
345 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
346 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
347 |
$page->add($setting);
|
|
|
348 |
|
|
|
349 |
$name = 'theme_monocolor/dmcolorbodysecondary';
|
|
|
350 |
$title = get_string('dmcolorbodysecondary', 'theme_monocolor');
|
|
|
351 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
352 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
353 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
354 |
$page->add($setting);
|
|
|
355 |
|
|
|
356 |
$name = 'theme_monocolor/dmcolorbodylight';
|
|
|
357 |
$title = get_string('dmcolorbodylight', 'theme_monocolor');
|
|
|
358 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
359 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
360 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
361 |
$page->add($setting);
|
|
|
362 |
|
|
|
363 |
$name = 'theme_monocolor/dmcolorheadings';
|
|
|
364 |
$title = get_string('dmcolorheadings', 'theme_monocolor');
|
|
|
365 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
366 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
367 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
368 |
$page->add($setting);
|
|
|
369 |
|
|
|
370 |
$name = 'theme_monocolor/dmcolorgradientheading1';
|
|
|
371 |
$title = get_string('dmcolorgradientheading1', 'theme_monocolor');
|
|
|
372 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
373 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
374 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
375 |
$page->add($setting);
|
|
|
376 |
|
|
|
377 |
$name = 'theme_monocolor/dmcolorgradientheading2';
|
|
|
378 |
$title = get_string('dmcolorgradientheading2', 'theme_monocolor');
|
|
|
379 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
380 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
381 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
382 |
$page->add($setting);
|
|
|
383 |
|
|
|
384 |
$name = 'theme_monocolor/dmcolorlink';
|
|
|
385 |
$title = get_string('dmcolorlink', 'theme_monocolor');
|
|
|
386 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
387 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
388 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
389 |
$page->add($setting);
|
|
|
390 |
|
|
|
391 |
$name = 'theme_monocolor/dmcolorlinkhover';
|
|
|
392 |
$title = get_string('dmcolorlinkhover', 'theme_monocolor');
|
|
|
393 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
394 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
395 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
396 |
$page->add($setting);
|
|
|
397 |
|
|
|
398 |
$name = 'theme_monocolor/hdmcolorsgrays';
|
|
|
399 |
$heading = get_string('hdmcolorsgrays', 'theme_monocolor');
|
|
|
400 |
$setting = new admin_setting_heading($name, $heading, format_text(get_string('hdmcolorsgrays_desc', 'theme_monocolor'), FORMAT_MARKDOWN));
|
|
|
401 |
$page->add($setting);
|
|
|
402 |
|
|
|
403 |
$name = 'theme_monocolor/dmcolorgray100';
|
|
|
404 |
$title = get_string('dmcolorgray100', 'theme_monocolor');
|
|
|
405 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
406 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
407 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
408 |
$page->add($setting);
|
|
|
409 |
|
|
|
410 |
$name = 'theme_monocolor/dmcolorgray200';
|
|
|
411 |
$title = get_string('dmcolorgray200', 'theme_monocolor');
|
|
|
412 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
413 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
414 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
415 |
$page->add($setting);
|
|
|
416 |
|
|
|
417 |
$name = 'theme_monocolor/dmcolorgray300';
|
|
|
418 |
$title = get_string('dmcolorgray300', 'theme_monocolor');
|
|
|
419 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
420 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
421 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
422 |
$page->add($setting);
|
|
|
423 |
|
|
|
424 |
$name = 'theme_monocolor/dmcolorgray400';
|
|
|
425 |
$title = get_string('dmcolorgray400', 'theme_monocolor');
|
|
|
426 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
427 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
428 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
429 |
$page->add($setting);
|
|
|
430 |
|
|
|
431 |
$name = 'theme_monocolor/dmcolorgray500';
|
|
|
432 |
$title = get_string('dmcolorgray500', 'theme_monocolor');
|
|
|
433 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
434 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
435 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
436 |
$page->add($setting);
|
|
|
437 |
|
|
|
438 |
$name = 'theme_monocolor/dmcolorgray600';
|
|
|
439 |
$title = get_string('dmcolorgray600', 'theme_monocolor');
|
|
|
440 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
441 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
442 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
443 |
$page->add($setting);
|
|
|
444 |
|
|
|
445 |
$name = 'theme_monocolor/dmcolorgray700';
|
|
|
446 |
$title = get_string('dmcolorgray700', 'theme_monocolor');
|
|
|
447 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
448 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
449 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
450 |
$page->add($setting);
|
|
|
451 |
|
|
|
452 |
$name = 'theme_monocolor/dmcolorgray800';
|
|
|
453 |
$title = get_string('dmcolorgray800', 'theme_monocolor');
|
|
|
454 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
455 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
456 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
457 |
$page->add($setting);
|
|
|
458 |
|
|
|
459 |
$name = 'theme_monocolor/dmcolorgray900';
|
|
|
460 |
$title = get_string('dmcolorgray900', 'theme_monocolor');
|
|
|
461 |
$description = get_string('dmcolor_desc', 'theme_monocolor');
|
|
|
462 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
|
|
463 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
|
464 |
$page->add($setting);
|
|
|
465 |
|
|
|
466 |
$settings->add($page);
|