MDL-26047 - added new theme called Nimble
[moodle.git] / theme / nimble / settings.php
1 <?php
3 defined('MOODLE_INTERNAL') || die;
5 if ($ADMIN->fulltree) {
8 // Tagline setting
9     $name = 'theme_nimble/tagline';
10     $title = get_string('tagline','theme_nimble');
11     $description = get_string('taglinedesc', 'theme_nimble');
12     $setting = new admin_setting_configtext($name, $title, $description, '');
13     $settings->add($setting);
14     
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     $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         $settings->add($setting);
32         // link color setting
33         $name = 'theme_nimble/linkcolor';
34         $title = get_string('linkcolor','theme_nimble');
35         $description = get_string('linkcolordesc', 'theme_nimble');
36         $default = '#2a65b1';
37         $previewconfig = NULL;
38         $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
39         $settings->add($setting);
41         // link hover color setting
42         $name = 'theme_nimble/linkhover';
43         $title = get_string('linkhover','theme_nimble');
44         $description = get_string('linkhoverdesc', 'theme_nimble');
45         $default = '#222222';
46         $previewconfig = NULL;
47         $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
48         $settings->add($setting);
52 }