First cut at an overview page for the user listing (when you first arrive)
[moodle.git] / admin / settings / appearance.php
CommitLineData
1ea1bcb3 1<?php // $Id$
2
3// This file defines settingpages and externalpages under the "appearance" category
4
5$ADMIN->add('appearance', new admin_category('themes', get_string('themes')));
6// "themesettings" settingpage
8f8ed475 7$temp = new admin_settingpage('themesettings', get_string('themesettings', 'admin'));
1ea1bcb3 8$temp->add(new admin_setting_configtext('themelist', get_string('themelist', 'admin'), get_string('configthemelist','admin'), '', PARAM_NOTAGS));
9$temp->add(new admin_setting_configcheckbox('allowuserthemes', get_string('allowuserthemes', 'admin'), get_string('configallowuserthemes', 'admin'), 0));
10$temp->add(new admin_setting_configcheckbox('allowcoursethemes', get_string('allowcoursethemes', 'admin'), get_string('configallowcoursethemes', 'admin'), 0));
11$temp->add(new admin_setting_configcheckbox('allowuserblockhiding', get_string('allowuserblockhiding', 'admin'), get_string('configallowuserblockhiding', 'admin'), 1));
12$temp->add(new admin_setting_configcheckbox('showblocksonmodpages', get_string('showblocksonmodpages', 'admin'), get_string('configshowblocksonmodpages', 'admin'), 0));
13$temp->add(new admin_setting_configcheckbox('tabselectedtofront', get_string('tabselectedtofronttext', 'admin'), get_string('tabselectedtofront', 'admin'), 0));
14$ADMIN->add('themes', $temp);
15$ADMIN->add('themes', new admin_externalpage('themeselector', get_string('themeselector','admin'), $CFG->wwwroot . '/theme/index.php'));
16
17
18// "frontpage" settingpage
19$temp = new admin_settingpage('frontpage', get_string('frontpage','admin'));
2febd88e 20$temp->add(new admin_setting_sitesettext('fullname', get_string('fullsitename'), '', '', PARAM_NOTAGS));
21$temp->add(new admin_setting_sitesettext('shortname', get_string('shortsitename'), '', PARAM_NOTAGS));
1ea1bcb3 22$temp->add(new admin_setting_special_frontpagedesc());
1ea1bcb3 23$temp->add(new admin_setting_courselist_frontpage(false)); // non-loggedin version of the setting (that's what the parameter is for :) )
24$temp->add(new admin_setting_courselist_frontpage(true)); // loggedin version of the setting
eef868d1 25$temp->add(new admin_setting_sitesetcheckbox('numsections', get_string('sitesection'),
2febd88e 26 get_string('sitesectionhelp','admin'), 1));
eef868d1 27$temp->add(new admin_setting_sitesetselect('newsitems', get_string('newsitemsnumber'),
28 '', 3,
2febd88e 29 array('0' => '0',
30 '1' => '1',
31 '2' => '2',
32 '3' => '3',
33 '4' => '4',
34 '5' => '5',
35 '6' => '6',
36 '7' => '7',
37 '8' => '8',
38 '9' => '9',
39 '10' => '10')));
9e24fbd1 40$temp->add(new admin_setting_configtext('coursesperpage', get_string('coursesperpage', 'admin'), get_string('configcoursesperpage', 'admin'), 20, PARAM_INT));
1ea1bcb3 41$ADMIN->add('appearance', $temp);
42
db51ddc5 43// calendar
44$ADMIN->add('appearance', new admin_externalpage('calendar', get_string('calendarsettings', 'admin'), $CFG->wwwroot.'/'.$CFG->admin.'/calendar.php'));
1ea1bcb3 45
46// "filtersettings" settingpage
47$temp = new admin_settingpage('filtersettings', get_string('filtersettings', 'admin'));
48$temp->add(new admin_setting_configselect('cachetext', get_string('cachetext', 'admin'), get_string('configcachetext', 'admin'), 60, array(604800 => get_string('numdays','',7),
49 86400 => get_string('numdays','',1),
50 43200 => get_string('numhours','',12),
51 10800 => get_string('numhours','',3),
52 7200 => get_string('numhours','',2),
53 3600 => get_string('numhours','',1),
54 2700 => get_string('numminutes','',45),
55 1800 => get_string('numminutes','',30),
56 900 => get_string('numminutes','',15),
57 600 => get_string('numminutes','',10),
58 540 => get_string('numminutes','',9),
59 480 => get_string('numminutes','',8),
60 420 => get_string('numminutes','',7),
61 360 => get_string('numminutes','',6),
62 300 => get_string('numminutes','',5),
63 240 => get_string('numminutes','',4),
64 180 => get_string('numminutes','',3),
65 120 => get_string('numminutes','',2),
66 60 => get_string('numminutes','',1),
67 30 => get_string('numseconds','',30),
68 0 => get_string('no'))));
69$temp->add(new admin_setting_configselect('filteruploadedfiles', get_string('filteruploadedfiles', 'admin'), get_string('configfilteruploadedfiles', 'admin'), 0, array('0' => get_string('none'),
70 '1' => get_string('allfiles'),
61240489 71 '2' => get_string('htmlfilesonly'))));
1ea1bcb3 72$temp->add(new admin_setting_configcheckbox('filtermatchoneperpage', get_string('filtermatchoneperpage', 'admin'), get_string('configfiltermatchoneperpage', 'admin'), 0));
73$temp->add(new admin_setting_configcheckbox('filtermatchonepertext', get_string('filtermatchonepertext', 'admin'), get_string('configfiltermatchonepertext', 'admin'), 0));
74$temp->add(new admin_setting_configcheckbox('filterall', get_string('filterall', 'admin'), get_string('configfilterall', 'admin'), 0));
75$ADMIN->add('appearance', $temp);
76
77
78
79
80
81// "htmleditor" settingpage
82$temp = new admin_settingpage('htmleditor', get_string('htmleditor', 'admin'));
83$temp->add(new admin_setting_configcheckbox('htmleditor', get_string('usehtmleditor', 'admin'), get_string('confightmleditor','admin'), 1));
84$temp->add(new admin_setting_configtext('editorbackgroundcolor', get_string('editorbackgroundcolor', 'admin'), get_string('edhelpbgcolor'), '#ffffff', PARAM_NOTAGS));
85$temp->add(new admin_setting_configtext('editorfontfamily', get_string('editorfontfamily', 'admin'), get_string('edhelpfontfamily'), 'Trebuchet MS,Verdana,Arial,Helvetica,sans-serif', PARAM_NOTAGS));
86$temp->add(new admin_setting_configtext('editorfontsize', get_string('editorfontsize', 'admin'), get_string('edhelpfontsize'), '', PARAM_NOTAGS));
87$temp->add(new admin_setting_special_editorfontlist());
88$temp->add(new admin_setting_configcheckbox('editorkillword', get_string('editorkillword', 'admin'), get_string('edhelpcleanword'), 1));
89if (!empty($CFG->aspellpath)) { // make aspell settings disappear if path isn't set
90 $temp->add(new admin_setting_configcheckbox('editorspelling', get_string('editorspelling', 'admin'), get_string('editorspellinghelp', 'admin'), 0));
91 $temp->add(new admin_setting_special_editordictionary());
92}
93$temp->add(new admin_setting_special_editorhidebuttons());
94$ADMIN->add('appearance', $temp);
95
96// "documentation" settingpage
97$temp = new admin_settingpage('documentation', get_string('moodledocs'));
98$temp->add(new admin_setting_configtext('docroot', get_string('docroot', 'admin'), get_string('configdocroot', 'admin'), 'http://docs.moodle.org', PARAM_URL));
99$temp->add(new admin_setting_configcheckbox('doctonewwindow', get_string('doctonewwindow', 'admin'), get_string('configdoctonewwindow', 'admin'), 0));
100$ADMIN->add('appearance', $temp);
101
102$temp = new admin_settingpage('mymoodle', get_string('mymoodle', 'admin'));
103$temp->add(new admin_setting_configcheckbox('mymoodleredirect', get_string('mymoodleredirect', 'admin'), get_string('configmymoodleredirect', 'admin'), 0));
104$ADMIN->add('appearance', $temp);
105
106?>