moodle/theme/magazine/settings.php

94 lines
3.9 KiB
PHP
Raw Normal View History

2010-08-02 19:09:55 +00:00
<?php
defined('MOODLE_INTERNAL') || die;
if ($ADMIN->fulltree) {
2010-08-02 19:09:55 +00:00
// 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);
$setting->set_updatedcallback('theme_reset_all_caches');
$settings->add($setting);
2010-08-02 19:09:55 +00:00
// 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);
$setting->set_updatedcallback('theme_reset_all_caches');
$settings->add($setting);
2010-08-02 19:09:55 +00:00
// 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);
$setting->set_updatedcallback('theme_reset_all_caches');
$settings->add($setting);
2010-08-02 19:09:55 +00:00
// 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);
$setting->set_updatedcallback('theme_reset_all_caches');
$settings->add($setting);
2010-08-02 19:09:55 +00:00
// 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);
$setting->set_updatedcallback('theme_reset_all_caches');
$settings->add($setting);
2010-08-02 19:09:55 +00:00
// 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);
$setting->set_updatedcallback('theme_reset_all_caches');
$settings->add($setting);
2010-08-02 19:09:55 +00:00
// 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);
$setting->set_updatedcallback('theme_reset_all_caches');
$settings->add($setting);
2010-08-02 19:09:55 +00:00
// 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);
$setting->set_updatedcallback('theme_reset_all_caches');
$settings->add($setting);
2010-08-02 19:09:55 +00:00
// 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);
$setting->set_updatedcallback('theme_reset_all_caches');
$settings->add($setting);
2010-08-02 19:09:55 +00:00
}