MDL-39178 add missing update callback for all theme settings
This commit is contained in:
@@ -18,6 +18,7 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('footnotedesc', 'theme_afterburner');
|
||||
$default = '';
|
||||
$setting = new admin_setting_confightmleditor($name, $title, $description, $default);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
@@ -26,6 +27,7 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('customcssdesc', 'theme_afterburner');
|
||||
$default = '';
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
}
|
||||
@@ -10,6 +10,7 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('taglinedesc', 'theme_anomaly');
|
||||
$default = '';
|
||||
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
@@ -18,6 +19,7 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('customcssdesc', 'theme_anomaly');
|
||||
$default = '';
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('logo','theme_arialist');
|
||||
$description = get_string('logodesc', 'theme_arialist');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Tagline setting
|
||||
@@ -19,6 +20,7 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('tagline','theme_arialist');
|
||||
$description = get_string('taglinedesc', 'theme_arialist');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Link colour setting
|
||||
@@ -28,6 +30,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#f25f0f';
|
||||
$previewconfig = array('selector'=>'.block .content', 'style'=>'linkcolor');
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Block region width
|
||||
@@ -37,6 +40,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = 250;
|
||||
$choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 240=>'240px', 250=>'250px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
@@ -44,5 +48,6 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('customcss','theme_arialist');
|
||||
$description = get_string('customcssdesc', 'theme_arialist');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
}
|
||||
@@ -10,6 +10,7 @@ $name = 'theme_brick/logo';
|
||||
$title = get_string('logo','theme_brick');
|
||||
$description = get_string('logodesc', 'theme_brick');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// link color setting
|
||||
@@ -19,6 +20,7 @@ $description = get_string('linkcolordesc', 'theme_brick');
|
||||
$default = '#06365b';
|
||||
$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
|
||||
@@ -28,6 +30,7 @@ $description = get_string('linkhoverdesc', 'theme_brick');
|
||||
$default = '#5487ad';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// main color setting
|
||||
@@ -37,6 +40,7 @@ $description = get_string('maincolordesc', 'theme_brick');
|
||||
$default = '#8e2800';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// main color accent setting
|
||||
@@ -46,6 +50,7 @@ $description = get_string('maincolorlinkdesc', 'theme_brick');
|
||||
$default = '#fff0a5';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// heading color setting
|
||||
@@ -55,6 +60,7 @@ $description = get_string('headingcolordesc', 'theme_brick');
|
||||
$default = '#5c3500';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
}
|
||||
@@ -14,6 +14,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '13';
|
||||
$choices = array(11=>'11px', 12=>'12px', 13=>'13px', 14=>'14px', 15=>'15px', 16=>'16px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// moodle 1.* like setting
|
||||
@@ -22,6 +23,7 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('noframedesc', 'theme_formal_white');
|
||||
$default = '0';
|
||||
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Frame margin
|
||||
@@ -31,6 +33,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '15';
|
||||
$choices = array(0=>'0px', 5=>'5px', 10=>'10px', 15=>'15px', 20=>'20px', 25=>'25px', 30=>'30px', 35=>'35px', 40=>'40px', 45=>'45px', 50=>'50px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Display logo or heading
|
||||
@@ -40,6 +43,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '1';
|
||||
$choices = array(1=>get_string('displaylogo', 'theme_formal_white'), 0=>get_string('displayheading', 'theme_formal_white'));
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom site logo setting
|
||||
@@ -48,6 +52,7 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('customlogourldesc', 'theme_formal_white');
|
||||
$default = '';
|
||||
$setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_RAW); // we want it accepting ../ at the beginning. Security is not at its top but Moodle trusts admins.
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom front page site logo setting
|
||||
@@ -56,6 +61,7 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('frontpagelogourldesc', 'theme_formal_white');
|
||||
$default = '';
|
||||
$setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_RAW); // we want it accepting ../ at the beginning. Security is not at its top but Moodle trusts admins.
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// page header background colour setting
|
||||
@@ -65,6 +71,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#E3DFD4';
|
||||
$previewconfig = array('selector'=>'#page-header', 'style'=>'backgroundColor');
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// creditstomoodleorg: ctmo
|
||||
@@ -74,6 +81,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '2';
|
||||
$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'));
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Block region width
|
||||
@@ -83,6 +91,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '200';
|
||||
$choices = array(150=>'150px', 170=>'170px', 200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Block padding
|
||||
@@ -92,6 +101,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '8';
|
||||
$choices = array(1=>'1px', 2=>'2px', 4=>'4px', 8=>'8px', 12=>'12px', 16=>'16px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Block content background colour setting
|
||||
@@ -101,6 +111,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#F6F6F6';
|
||||
$previewconfig = array('selector'=>'.block .content', 'style'=>'backgroundColor');
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Left column colour setting
|
||||
@@ -110,6 +121,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#E3DFD4';
|
||||
$previewconfig = array('selector'=>'#page-content, #page-content #region-pre, #page-content #region-post-box', 'style'=>'backgroundColor');
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Right column colour setting
|
||||
@@ -119,6 +131,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '';
|
||||
$previewconfig = array('selector'=>'#page-content #region-post-box, #page-content #region-post', 'style'=>'backgroundColor');
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Foot note setting
|
||||
@@ -127,6 +140,7 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('footnotedesc', 'theme_formal_white');
|
||||
$default = '';
|
||||
$setting = new admin_setting_confightmleditor($name, $title, $description, $default);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
@@ -135,5 +149,6 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('customcssdesc', 'theme_formal_white');
|
||||
$default = '';
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#2d83d5';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Tag line setting
|
||||
@@ -18,6 +19,7 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('tagline','theme_fusion');
|
||||
$description = get_string('taglinedesc', 'theme_fusion');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Foot note setting
|
||||
@@ -25,6 +27,7 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('footertext','theme_fusion');
|
||||
$description = get_string('footertextdesc', 'theme_fusion');
|
||||
$setting = new admin_setting_confightmleditor($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
@@ -32,6 +35,7 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('customcss','theme_fusion');
|
||||
$description = get_string('customcssdesc', 'theme_fusion');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ if ($ADMIN->fulltree) {
|
||||
$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);
|
||||
|
||||
// logo image setting
|
||||
@@ -16,6 +17,7 @@ if ($ADMIN->fulltree) {
|
||||
$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);
|
||||
|
||||
// link color setting
|
||||
@@ -25,6 +27,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#32529a';
|
||||
$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
|
||||
@@ -34,6 +37,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#4e2300';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// main color setting
|
||||
@@ -43,6 +47,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#002f2f';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// main color accent setting
|
||||
@@ -52,6 +57,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#092323';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// heading color setting
|
||||
@@ -61,6 +67,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#4e0000';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// block heading color setting
|
||||
@@ -70,6 +77,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#002f2f';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// forum subject background color setting
|
||||
@@ -79,6 +87,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#e6e2af';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
}
|
||||
@@ -42,12 +42,14 @@ if ($ADMIN->fulltree) {
|
||||
'grey' => get_string('grey', 'theme_mymobile')
|
||||
);
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
$name = 'theme_mymobile/showmobileintro';
|
||||
$title = get_string('showmobileintro','theme_mymobile');
|
||||
$description = get_string('showmobileintro_desc', 'theme_mymobile');
|
||||
$setting = new admin_setting_confightmleditor($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
$name = 'theme_mymobile/showsitetopic';
|
||||
@@ -56,6 +58,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = 'topicshow';
|
||||
$choices = array('topicshow' => $yesstr, 'topicnoshow' => $nostr);
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
$name = 'theme_mymobile/showfullsizeimages';
|
||||
@@ -64,6 +67,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = 'ithumb';
|
||||
$choices = array('ithumb' => $nostr, 'ithumbno' => $yesstr);
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
$name = 'theme_mymobile/usetableview';
|
||||
@@ -72,6 +76,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = 'tabshow';
|
||||
$choices = array('tabshow' => $yesstr, 'tabnoshow' => $nostr);
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
$name = 'theme_mymobile/customcss';
|
||||
@@ -79,6 +84,7 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('customcssdesc', 'theme_mymobile');
|
||||
$default = '';
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
unset($yesstr);
|
||||
|
||||
@@ -10,6 +10,7 @@ if ($ADMIN->fulltree) {
|
||||
$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
|
||||
@@ -17,6 +18,7 @@ if ($ADMIN->fulltree) {
|
||||
$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);
|
||||
|
||||
|
||||
@@ -27,6 +29,7 @@ if ($ADMIN->fulltree) {
|
||||
$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
|
||||
@@ -36,6 +39,7 @@ if ($ADMIN->fulltree) {
|
||||
$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
|
||||
@@ -45,6 +49,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = '#222222';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = 200;
|
||||
$choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 230=>'230px', 240=>'240px', 250=>'250px', 260=>'260px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Block region-post width
|
||||
@@ -47,6 +48,7 @@ if ($ADMIN->fulltree) {
|
||||
$default = 200;
|
||||
$choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 230=>'230px', 240=>'240px', 250=>'250px', 260=>'260px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
@@ -54,5 +56,6 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('customcss','theme_nonzero');
|
||||
$description = get_string('customcssdesc', 'theme_nonzero');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
}
|
||||
@@ -12,6 +12,7 @@ $description = get_string('linkcolordesc', 'theme_overlay');
|
||||
$default = '#428ab5';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
|
||||
@@ -22,6 +23,7 @@ $description = get_string('headercolordesc', 'theme_overlay');
|
||||
$default = '#2a4c7b';
|
||||
$previewconfig = NULL;
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Foot note setting
|
||||
@@ -29,6 +31,7 @@ $name = 'theme_overlay/footertext';
|
||||
$title = get_string('footertext','theme_overlay');
|
||||
$description = get_string('footertextdesc', 'theme_overlay');
|
||||
$setting = new admin_setting_confightmleditor($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
@@ -36,6 +39,7 @@ $name = 'theme_overlay/customcss';
|
||||
$title = get_string('customcss','theme_overlay');
|
||||
$description = get_string('customcssdesc', 'theme_overlay');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
}
|
||||
@@ -37,6 +37,7 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('invert', 'theme_simple');
|
||||
$description = get_string('invertdesc', 'theme_simple');
|
||||
$setting = new admin_setting_configcheckbox($name, $title, $description, 0);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Logo file setting.
|
||||
@@ -53,6 +54,7 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('customcssdesc', 'theme_simple');
|
||||
$default = '';
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Footnote setting.
|
||||
@@ -61,5 +63,6 @@ if ($ADMIN->fulltree) {
|
||||
$description = get_string('footnotedesc', 'theme_simple');
|
||||
$default = '';
|
||||
$setting = new admin_setting_confightmleditor($name, $title, $description, $default);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ $name = 'theme_sky_high/logo';
|
||||
$title = get_string('logo','theme_sky_high');
|
||||
$description = get_string('logodesc', 'theme_sky_high');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Block region width
|
||||
@@ -22,6 +23,7 @@ $description = get_string('regionwidthdesc', 'theme_sky_high');
|
||||
$default = 240;
|
||||
$choices = array(200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Foot note setting
|
||||
@@ -29,6 +31,7 @@ $name = 'theme_sky_high/footnote';
|
||||
$title = get_string('footnote','theme_sky_high');
|
||||
$description = get_string('footnotedesc', 'theme_sky_high');
|
||||
$setting = new admin_setting_confightmleditor($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
@@ -36,6 +39,7 @@ $name = 'theme_sky_high/customcss';
|
||||
$title = get_string('customcss','theme_sky_high');
|
||||
$description = get_string('customcssdesc', 'theme_sky_high');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Add our page to the structure of the admin tree
|
||||
|
||||
@@ -31,6 +31,7 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('logo', 'theme_splash');
|
||||
$description = get_string('logodesc', 'theme_splash');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Tagline setting
|
||||
@@ -38,12 +39,14 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('tagline', 'theme_splash');
|
||||
$description = get_string('taglinedesc', 'theme_splash');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, get_string('defaulttagline', 'theme_splash'));
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
$name = 'theme_splash/hide_tagline';
|
||||
$title = get_string('hide_tagline', 'theme_splash');
|
||||
$description = get_string('hide_taglinedesc', 'theme_splash');
|
||||
$setting = new admin_setting_configcheckbox($name, $title, $description, 0);
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Block region width
|
||||
@@ -53,6 +56,7 @@ if ($ADMIN->fulltree) {
|
||||
//$default = 240;
|
||||
//$choices = array(200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');
|
||||
//$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
//$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
//$temp->add($setting);
|
||||
|
||||
// Foot note setting
|
||||
@@ -60,6 +64,7 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('footnote', 'theme_splash');
|
||||
$description = get_string('footnotedesc', 'theme_splash');
|
||||
$setting = new admin_setting_confightmleditor($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
@@ -67,6 +72,7 @@ if ($ADMIN->fulltree) {
|
||||
$title = get_string('customcss', 'theme_splash');
|
||||
$description = get_string('customcssdesc', 'theme_splash');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$setting->set_updatedcallback('theme_reset_all_caches');
|
||||
$settings->add($setting);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user