|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00003 defined('MOODLE_INTERNAL') || die; 00004 00005 if ($ADMIN->fulltree) { 00006 00007 00008 // Tagline setting 00009 $name = 'theme_nimble/tagline'; 00010 $title = get_string('tagline','theme_nimble'); 00011 $description = get_string('taglinedesc', 'theme_nimble'); 00012 $setting = new admin_setting_configtext($name, $title, $description, ''); 00013 $settings->add($setting); 00014 00015 // footerline setting 00016 $name = 'theme_nimble/footerline'; 00017 $title = get_string('footerline','theme_nimble'); 00018 $description = get_string('footerlinedesc', 'theme_nimble'); 00019 $setting = new admin_setting_configtext($name, $title, $description, ''); 00020 $settings->add($setting); 00021 00022 00023 // Background color setting 00024 $name = 'theme_nimble/backgroundcolor'; 00025 $title = get_string('backgroundcolor','theme_nimble'); 00026 $description = get_string('backgroundcolordesc', 'theme_nimble'); 00027 $default = '#454545'; 00028 $previewconfig = NULL; 00029 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig); 00030 $settings->add($setting); 00031 00032 // link color setting 00033 $name = 'theme_nimble/linkcolor'; 00034 $title = get_string('linkcolor','theme_nimble'); 00035 $description = get_string('linkcolordesc', 'theme_nimble'); 00036 $default = '#2a65b1'; 00037 $previewconfig = NULL; 00038 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig); 00039 $settings->add($setting); 00040 00041 // link hover color setting 00042 $name = 'theme_nimble/linkhover'; 00043 $title = get_string('linkhover','theme_nimble'); 00044 $description = get_string('linkhoverdesc', 'theme_nimble'); 00045 $default = '#222222'; 00046 $previewconfig = NULL; 00047 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig); 00048 $settings->add($setting); 00049 00050 00051 00052 }