moodle/theme/magazine/settings.php
2010-08-02 19:09:55 +00:00

84 lines
3.2 KiB
PHP

<?php
// Create our admin page
$temp = new admin_settingpage('theme_magazine', get_string('configtitle','theme_magazine'));
// Background image setting
$name = 'theme_magazine/background';
$title = get_string('background','theme_magazine');
$description = get_string('backgrounddesc', 'theme_magazine');
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
$temp->add($setting);
// logo image setting
$name = 'theme_magazine/logo';
$title = get_string('logo','theme_magazine');
$description = get_string('logodesc', 'theme_magazine');
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
$temp->add($setting);
// link color setting
$name = 'theme_magazine/linkcolor';
$title = get_string('linkcolor','theme_magazine');
$description = get_string('linkcolordesc', 'theme_magazine');
$default = '#32529a';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// link hover color setting
$name = 'theme_magazine/linkhover';
$title = get_string('linkhover','theme_magazine');
$description = get_string('linkhoverdesc', 'theme_magazine');
$default = '#4e2300';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// main color setting
$name = 'theme_magazine/maincolor';
$title = get_string('maincolor','theme_magazine');
$description = get_string('maincolordesc', 'theme_magazine');
$default = '#002f2f';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// main color accent setting
$name = 'theme_magazine/maincoloraccent';
$title = get_string('maincoloraccent','theme_magazine');
$description = get_string('maincoloraccentdesc', 'theme_magazine');
$default = '#092323';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// heading color setting
$name = 'theme_magazine/headingcolor';
$title = get_string('headingcolor','theme_magazine');
$description = get_string('headingcolordesc', 'theme_magazine');
$default = '#4e0000';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// block heading color setting
$name = 'theme_magazine/blockcolor';
$title = get_string('blockcolor','theme_magazine');
$description = get_string('blockcolordesc', 'theme_magazine');
$default = '#002f2f';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// forum subject background color setting
$name = 'theme_magazine/forumback';
$title = get_string('forumback','theme_magazine');
$description = get_string('forumbackdesc', 'theme_magazine');
$default = '#e6e2af';
$previewconfig = NULL;
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
$temp->add($setting);
// Add our page to the structure of the admin tree
$ADMIN->add('themes', $temp);