MDL-27764 restore - always restore as much info as possible (1.9 approach)
[moodle.git] / theme / nonzero / settings.php
blob6e201ae9a5029427bdcc0be7bd166727684d5db2
1 <?php
3 // This file is part of Moodle - http://moodle.org/
4 //
5 // Moodle is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // Moodle is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 /**
19 * This file contains the settings for the Nonzero theme.
21 * Currently you can set the following settings:
22 * - Region pre width
23 * - Region post width
24 * - Some custom CSS
26 * @package moodlecore
27 * @copyright 2010 Dietmar Wagner
28 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
31 defined('MOODLE_INTERNAL') || die;
33 if ($ADMIN->fulltree) {
34 // Block region-pre width
35 $name = 'theme_nonzero/regionprewidth';
36 $title = get_string('regionprewidth','theme_nonzero');
37 $description = get_string('regionprewidthdesc', 'theme_nonzero');
38 $default = 200;
39 $choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 230=>'230px', 240=>'240px', 250=>'250px', 260=>'260px');
40 $setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
41 $settings->add($setting);
43 // Block region-post width
44 $name = 'theme_nonzero/regionpostwidth';
45 $title = get_string('regionpostwidth','theme_nonzero');
46 $description = get_string('regionpostwidthdesc', 'theme_nonzero');
47 $default = 200;
48 $choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 230=>'230px', 240=>'240px', 250=>'250px', 260=>'260px');
49 $setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
50 $settings->add($setting);
52 // Custom CSS file
53 $name = 'theme_nonzero/customcss';
54 $title = get_string('customcss','theme_nonzero');
55 $description = get_string('customcssdesc', 'theme_nonzero');
56 $setting = new admin_setting_configtextarea($name, $title, $description, '');
57 $settings->add($setting);