moodle/theme/overlay/settings.php

41 lines
1.3 KiB
PHP

<?php
defined('MOODLE_INTERNAL') || die;
if ($ADMIN->fulltree) {
// link color setting
$name = 'theme_overlay/linkcolor';
$title = get_string('linkcolor','theme_overlay');
$description = get_string('linkcolordesc', 'theme_overlay');
$default = '#428ab5';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$settings->add($setting);
// Tag line setting
$name = 'theme_overlay/headercolor';
$title = get_string('headercolor','theme_overlay');
$description = get_string('headercolordesc', 'theme_overlay');
$default = '#2a4c7b';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$settings->add($setting);
// Foot note setting
$name = 'theme_overlay/footertext';
$title = get_string('footertext','theme_overlay');
$description = get_string('footertextdesc', 'theme_overlay');
$setting = new admin_setting_confightmleditor($name, $title, $description, '');
$settings->add($setting);
// Custom CSS file
$name = 'theme_overlay/customcss';
$title = get_string('customcss','theme_overlay');
$description = get_string('customcssdesc', 'theme_overlay');
$setting = new admin_setting_configtextarea($name, $title, $description, '');
$settings->add($setting);
}