Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/mymobile/settings.php
Go to the documentation of this file.
00001 <?php
00002 // This file is part of Moodle - http://moodle.org/
00003 //
00004 // Moodle is free software: you can redistribute it and/or modify
00005 // it under the terms of the GNU General Public License as published by
00006 // the Free Software Foundation, either version 3 of the License, or
00007 // (at your option) any later version.
00008 //
00009 // Moodle is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU General Public License
00015 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
00016 
00026 defined('MOODLE_INTERNAL') || die;
00027 
00028 if ($ADMIN->fulltree) {
00029 
00030     // TODO: Really the yes/no settings below should be changed to checkboxes
00031     //       given checkboxes are yes/no. Also saves us having to use language
00032     //       strings for them.
00033     $yesstr = get_string('yes','theme_mymobile');
00034     $nostr = get_string('no','theme_mymobile');
00035 
00036     $name = 'theme_mymobile/colourswatch';
00037     $title = get_string('colourswatch','theme_mymobile');
00038     $description = get_string('colourswatch_desc', 'theme_mymobile');
00039     $default = 'light';
00040     $choices = array(
00041         'light' => get_string('light', 'theme_mymobile'),
00042         'grey' => get_string('grey', 'theme_mymobile')
00043     );
00044     $setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
00045     $settings->add($setting);
00046 
00047     $name = 'theme_mymobile/showmobileintro';
00048     $title = get_string('showmobileintro','theme_mymobile');
00049     $description = get_string('showmobileintro_desc', 'theme_mymobile');
00050     $setting = new admin_setting_confightmleditor($name, $title, $description, '');
00051     $settings->add($setting);
00052 
00053     $name = 'theme_mymobile/showsitetopic';
00054     $title = get_string('showsitetopic','theme_mymobile');
00055     $description = get_string('showsitetopic_desc', 'theme_mymobile');
00056     $default = 'topicshow';
00057     $choices = array('topicshow' => $yesstr, 'topicnoshow' => $nostr);
00058     $setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
00059     $settings->add($setting);
00060 
00061     $name = 'theme_mymobile/showfullsizeimages';
00062     $title = get_string('showfullsizeimages','theme_mymobile');
00063     $description = get_string('showfullsizeimages_desc', 'theme_mymobile');
00064     $default = 'ithumb';
00065     $choices = array('ithumb' => $nostr, 'ithumbno' => $yesstr);
00066     $setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
00067     $settings->add($setting);
00068 
00069     $name = 'theme_mymobile/usetableview';
00070     $title = get_string('usetableview','theme_mymobile');
00071     $description = get_string('usetableview_desc', 'theme_mymobile');
00072     $default = 'tabshow';
00073     $choices = array('tabshow' => $yesstr, 'tabnoshow' => $nostr);
00074     $setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
00075     $settings->add($setting);
00076 
00077     unset($yesstr);
00078     unset($nostr);
00079 }
 All Data Structures Namespaces Files Functions Variables Enumerations