|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00007 defined('MOODLE_INTERNAL') || die; 00008 00009 if ($ADMIN->fulltree) { 00010 // font size reference 00011 $name = 'theme_formal_white/fontsizereference'; 00012 $title = get_string('fontsizereference','theme_formal_white'); 00013 $description = get_string('fontsizereferencedesc', 'theme_formal_white'); 00014 $default = '13'; 00015 $choices = array(11=>'11px', 12=>'12px', 13=>'13px', 14=>'14px', 15=>'15px', 16=>'16px'); 00016 $setting = new admin_setting_configselect($name, $title, $description, $default, $choices); 00017 $settings->add($setting); 00018 00019 // moodle 1.* like setting 00020 $name = 'theme_formal_white/noframe'; 00021 $title = get_string('noframe','theme_formal_white'); 00022 $description = get_string('noframedesc', 'theme_formal_white'); 00023 $default = '0'; 00024 $setting = new admin_setting_configcheckbox($name, $title, $description, $default); 00025 $settings->add($setting); 00026 00027 // Display logo or heading 00028 $name = 'theme_formal_white/displaylogo'; 00029 $title = get_string('displaylogo','theme_formal_white'); 00030 $description = get_string('displaylogodesc', 'theme_formal_white'); 00031 $default = '1'; 00032 $choices = array(1=>get_string('moodlelogo', 'theme_formal_white'), 0=>get_string('heading', 'theme_formal_white')); 00033 $setting = new admin_setting_configselect($name, $title, $description, $default, $choices); 00034 $settings->add($setting); 00035 00036 // Custom site logo setting 00037 $name = 'theme_formal_white/logo'; 00038 $title = get_string('logo','theme_formal_white'); 00039 $description = get_string('logodesc', 'theme_formal_white'); 00040 $default = ''; 00041 $setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_URL); 00042 $settings->add($setting); 00043 00044 // Custom front page site logo setting 00045 $name = 'theme_formal_white/frontpagelogo'; 00046 $title = get_string('frontpagelogo','theme_formal_white'); 00047 $description = get_string('frontpagelogodesc', 'theme_formal_white'); 00048 $default = ''; 00049 $setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_URL); 00050 $settings->add($setting); 00051 00052 // page header background colour setting 00053 $name = 'theme_formal_white/headerbgc'; 00054 $title = get_string('headerbgc','theme_formal_white'); 00055 $description = get_string('headerbgcdesc', 'theme_formal_white'); 00056 $default = '#E3DFD4'; 00057 $previewconfig = array('selector'=>'#page-header', 'style'=>'backgroundColor'); 00058 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig); 00059 $settings->add($setting); 00060 00061 // creditstomoodleorg: ctmo 00062 $name = 'theme_formal_white/creditstomoodleorg'; 00063 $title = get_string('creditstomoodleorg','theme_formal_white'); 00064 $description = get_string('creditstomoodleorgdesc', 'theme_formal_white'); 00065 $default = '2'; 00066 $choices = array(2 => get_string('ctmo_ineverypage', 'theme_formal_white'), 1 => get_string('ctmo_onfrontpageonly', 'theme_formal_white'), 0 => get_string('ctmo_no', 'theme_formal_white')); 00067 $setting = new admin_setting_configselect($name, $title, $description, $default, $choices); 00068 $settings->add($setting); 00069 00070 // Block region width 00071 $name = 'theme_formal_white/blockcolumnwidth'; 00072 $title = get_string('blockcolumnwidth','theme_formal_white'); 00073 $description = get_string('blockcolumnwidthdesc', 'theme_formal_white'); 00074 $default = '200'; 00075 $choices = array(150=>'150px', 170=>'170px', 200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px'); 00076 $setting = new admin_setting_configselect($name, $title, $description, $default, $choices); 00077 $settings->add($setting); 00078 00079 // Block content background colour setting 00080 $name = 'theme_formal_white/blockcontentbgc'; 00081 $title = get_string('blockcontentbgc','theme_formal_white'); 00082 $description = get_string('blockcontentbgcdesc', 'theme_formal_white'); 00083 $default = '#F6F6F6'; 00084 $previewconfig = array('selector'=>'.block .content', 'style'=>'backgroundColor'); 00085 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig); 00086 $settings->add($setting); 00087 00088 // Left column colour setting 00089 $name = 'theme_formal_white/lblockcolumnbgc'; 00090 $title = get_string('lblockcolumnbgc','theme_formal_white'); 00091 $description = get_string('lblockcolumnbgcdesc', 'theme_formal_white'); 00092 $default = '#E3DFD4'; 00093 $previewconfig = array('selector'=>'#page-content, #page-content #region-pre, #page-content #region-post-box', 'style'=>'backgroundColor'); 00094 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig); 00095 $settings->add($setting); 00096 00097 // Right column colour setting 00098 $name = 'theme_formal_white/rblockcolumnbgc'; 00099 $title = get_string('rblockcolumnbgc','theme_formal_white'); 00100 $description = get_string('rblockcolumnbgcdesc', 'theme_formal_white'); 00101 $default = ''; 00102 $previewconfig = array('selector'=>'#page-content #region-post-box, #page-content #region-post', 'style'=>'backgroundColor'); 00103 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig); 00104 $settings->add($setting); 00105 00106 // Foot note setting 00107 $name = 'theme_formal_white/footnote'; 00108 $title = get_string('footnote','theme_formal_white'); 00109 $description = get_string('footnotedesc', 'theme_formal_white'); 00110 $default = ''; 00111 $setting = new admin_setting_confightmleditor($name, $title, $description, $default); 00112 $settings->add($setting); 00113 00114 // Custom CSS file 00115 $name = 'theme_formal_white/customcss'; 00116 $title = get_string('customcss','theme_formal_white'); 00117 $description = get_string('customcssdesc', 'theme_formal_white'); 00118 $default = ''; 00119 $setting = new admin_setting_configtextarea($name, $title, $description, $default); 00120 $settings->add($setting); 00121 }