mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
53 lines
2.0 KiB
PHP
53 lines
2.0 KiB
PHP
<?php
|
|
|
|
defined('MOODLE_INTERNAL') || die;
|
|
|
|
if ($ADMIN->fulltree) {
|
|
|
|
// Tagline setting
|
|
$name = 'theme_nimble/tagline';
|
|
$title = get_string('tagline','theme_nimble');
|
|
$description = get_string('taglinedesc', 'theme_nimble');
|
|
$setting = new admin_setting_configtext($name, $title, $description, '');
|
|
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
$settings->add($setting);
|
|
|
|
// footerline setting
|
|
$name = 'theme_nimble/footerline';
|
|
$title = get_string('footerline','theme_nimble');
|
|
$description = get_string('footerlinedesc', 'theme_nimble');
|
|
$setting = new admin_setting_configtext($name, $title, $description, '');
|
|
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
$settings->add($setting);
|
|
|
|
// Background color setting
|
|
$name = 'theme_nimble/backgroundcolor';
|
|
$title = get_string('backgroundcolor','theme_nimble');
|
|
$description = get_string('backgroundcolordesc', 'theme_nimble');
|
|
$default = '#454545';
|
|
$previewconfig = NULL;
|
|
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
|
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
$settings->add($setting);
|
|
|
|
// link color setting
|
|
$name = 'theme_nimble/linkcolor';
|
|
$title = get_string('linkcolor','theme_nimble');
|
|
$description = get_string('linkcolordesc', 'theme_nimble');
|
|
$default = '#2a65b1';
|
|
$previewconfig = NULL;
|
|
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
|
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
$settings->add($setting);
|
|
|
|
// link hover color setting
|
|
$name = 'theme_nimble/linkhover';
|
|
$title = get_string('linkhover','theme_nimble');
|
|
$description = get_string('linkhoverdesc', 'theme_nimble');
|
|
$default = '#222222';
|
|
$previewconfig = NULL;
|
|
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
|
$setting->set_updatedcallback('theme_reset_all_caches');
|
|
$settings->add($setting);
|
|
}
|