MDL-23867 - fixed errors when there are no enrolled users.
[moodle.git] / theme / sky_high / settings.php
CommitLineData
dc38e364
S
1<?php
2
3/**
4 * Settings for the sky_high theme
5 */
6
7// Create our admin page
8$temp = new admin_settingpage('theme_sky_high', get_string('configtitle','theme_sky_high'));
9
10// Logo file setting
11$name = 'theme_sky_high/logo';
12$title = get_string('logo','theme_sky_high');
13$description = get_string('logodesc', 'theme_sky_high');
14$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
15$temp->add($setting);
16
17// Block region width
18$name = 'theme_sky_high/regionwidth';
19$title = get_string('regionwidth','theme_sky_high');
20$description = get_string('regionwidthdesc', 'theme_sky_high');
21$default = 240;
22$choices = array(200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');
23$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
24$temp->add($setting);
25
26// Foot note setting
27$name = 'theme_sky_high/footnote';
28$title = get_string('footnote','theme_sky_high');
29$description = get_string('footnotedesc', 'theme_sky_high');
30$setting = new admin_setting_confightmleditor($name, $title, $description, '');
31$temp->add($setting);
32
33// Custom CSS file
34$name = 'theme_sky_high/customcss';
35$title = get_string('customcss','theme_sky_high');
36$description = get_string('customcssdesc', 'theme_sky_high');
37$setting = new admin_setting_configtextarea($name, $title, $description, '');
38$temp->add($setting);
39
40// Add our page to the structure of the admin tree
41$ADMIN->add('themes', $temp);
42?>