forked from tmuras/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
60 lines (51 loc) · 2.03 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
defined('MOODLE_INTERNAL') || die;
if ($ADMIN->fulltree) {
// Background image setting
// logo image setting
$name = 'theme_brick/logo';
$title = get_string('logo','theme_brick');
$description = get_string('logodesc', 'theme_brick');
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
$settings->add($setting);
// link color setting
$name = 'theme_brick/linkcolor';
$title = get_string('linkcolor','theme_brick');
$description = get_string('linkcolordesc', 'theme_brick');
$default = '#06365b';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$settings->add($setting);
// link hover color setting
$name = 'theme_brick/linkhover';
$title = get_string('linkhover','theme_brick');
$description = get_string('linkhoverdesc', 'theme_brick');
$default = '#5487ad';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$settings->add($setting);
// main color setting
$name = 'theme_brick/maincolor';
$title = get_string('maincolor','theme_brick');
$description = get_string('maincolordesc', 'theme_brick');
$default = '#8e2800';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$settings->add($setting);
// main color accent setting
$name = 'theme_brick/maincolorlink';
$title = get_string('maincolorlink','theme_brick');
$description = get_string('maincolorlinkdesc', 'theme_brick');
$default = '#fff0a5';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$settings->add($setting);
// heading color setting
$name = 'theme_brick/headingcolor';
$title = get_string('headingcolor','theme_brick');
$description = get_string('headingcolordesc', 'theme_brick');
$default = '#5c3500';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$settings->add($setting);
}