MDL-42453 theme_base: Fixed Error in base/style/admin.css that breaks CSS validator.
[moodle.git] / theme / nimble / settings.php
bloba8a233f3cd8b53dd356fb986fbb5654ed50b09bb
1 <?php
3 defined('MOODLE_INTERNAL') || die;
5 if ($ADMIN->fulltree) {
7 // Tagline setting
8 $name = 'theme_nimble/tagline';
9 $title = get_string('tagline','theme_nimble');
10 $description = get_string('taglinedesc', 'theme_nimble');
11 $setting = new admin_setting_configtext($name, $title, $description, '');
12 $setting->set_updatedcallback('theme_reset_all_caches');
13 $settings->add($setting);
15 // footerline setting
16 $name = 'theme_nimble/footerline';
17 $title = get_string('footerline','theme_nimble');
18 $description = get_string('footerlinedesc', 'theme_nimble');
19 $setting = new admin_setting_configtext($name, $title, $description, '');
20 $setting->set_updatedcallback('theme_reset_all_caches');
21 $settings->add($setting);
23 // Background color setting
24 $name = 'theme_nimble/backgroundcolor';
25 $title = get_string('backgroundcolor','theme_nimble');
26 $description = get_string('backgroundcolordesc', 'theme_nimble');
27 $default = '#454545';
28 $previewconfig = NULL;
29 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
30 $setting->set_updatedcallback('theme_reset_all_caches');
31 $settings->add($setting);
33 // link color setting
34 $name = 'theme_nimble/linkcolor';
35 $title = get_string('linkcolor','theme_nimble');
36 $description = get_string('linkcolordesc', 'theme_nimble');
37 $default = '#2a65b1';
38 $previewconfig = NULL;
39 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
40 $setting->set_updatedcallback('theme_reset_all_caches');
41 $settings->add($setting);
43 // link hover color setting
44 $name = 'theme_nimble/linkhover';
45 $title = get_string('linkhover','theme_nimble');
46 $description = get_string('linkhoverdesc', 'theme_nimble');
47 $default = '#222222';
48 $previewconfig = NULL;
49 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
50 $setting->set_updatedcallback('theme_reset_all_caches');
51 $settings->add($setting);