|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00003 // This file is part of Moodle - http://moodle.org/ 00004 // 00005 // Moodle is free software: you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation, either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // Moodle is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 00017 00031 defined('MOODLE_INTERNAL') || die; 00032 00033 if ($ADMIN->fulltree) { 00034 // Block region-pre width 00035 $name = 'theme_nonzero/regionprewidth'; 00036 $title = get_string('regionprewidth','theme_nonzero'); 00037 $description = get_string('regionprewidthdesc', 'theme_nonzero'); 00038 $default = 200; 00039 $choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 230=>'230px', 240=>'240px', 250=>'250px', 260=>'260px'); 00040 $setting = new admin_setting_configselect($name, $title, $description, $default, $choices); 00041 $settings->add($setting); 00042 00043 // Block region-post width 00044 $name = 'theme_nonzero/regionpostwidth'; 00045 $title = get_string('regionpostwidth','theme_nonzero'); 00046 $description = get_string('regionpostwidthdesc', 'theme_nonzero'); 00047 $default = 200; 00048 $choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 230=>'230px', 240=>'240px', 250=>'250px', 260=>'260px'); 00049 $setting = new admin_setting_configselect($name, $title, $description, $default, $choices); 00050 $settings->add($setting); 00051 00052 // Custom CSS file 00053 $name = 'theme_nonzero/customcss'; 00054 $title = get_string('customcss','theme_nonzero'); 00055 $description = get_string('customcssdesc', 'theme_nonzero'); 00056 $setting = new admin_setting_configtextarea($name, $title, $description, ''); 00057 $settings->add($setting); 00058 }