3 // This file is part of Moodle - http://moodle.org/
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.
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/>.
19 * This file contains the settings for the Nonzero theme.
21 * Currently you can set the following settings:
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');
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');
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);
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);