Merge branch 'wip-MDL-25454-master' of git://github.com/marinaglancy/moodle
[moodle.git] / theme / splash / settings.php
blob750f0d4fd58f547a33db435ccff30c64bbed949a
1 <?php
4 // This file is part of Moodle - http://moodle.org/
5 //
6 // Moodle is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation, either version 3 of the License, or
9 // (at your option) any later version.
11 // Moodle is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
19 /**
20 * Settings for the splash theme
22 * @package theme_splash
23 * @copyright 2010 Caroline Kennedy of Synergy Learning
24 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27 defined('MOODLE_INTERNAL') || die;
29 if ($ADMIN->fulltree) {
31 // Logo file setting
32 $name = 'theme_splash/logo';
33 $title = get_string('logo','theme_splash');
34 $description = get_string('logodesc', 'theme_splash');
35 $setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
36 $settings->add($setting);
38 // Tagline setting
39 $name = 'theme_splash/tagline';
40 $title = get_string('tagline','theme_splash');
41 $description = get_string('taglinedesc', 'theme_splash');
42 $setting = new admin_setting_configtextarea($name, $title, $description, get_string('defaulttagline', 'theme_splash'));
43 $settings->add($setting);
45 $name = 'theme_splash/hide_tagline';
46 $title = get_string('hide_tagline','theme_splash');
47 $description = get_string('hide_taglinedesc', 'theme_splash');
48 $setting = new admin_setting_configcheckbox($name, $title, $description, 0);
49 $settings->add($setting);
52 // Block region width
53 $name = 'theme_splash/regionwidth';
54 $title = get_string('regionwidth','theme_splash');
55 $description = get_string('regionwidthdesc', 'theme_splash');
56 $default = 240;
57 $choices = array(200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');
58 $setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
59 $temp->add($setting); */
61 // Foot note setting
62 $name = 'theme_splash/footnote';
63 $title = get_string('footnote','theme_splash');
64 $description = get_string('footnotedesc', 'theme_splash');
65 $setting = new admin_setting_confightmleditor($name, $title, $description, '');
66 $settings->add($setting);
68 // Custom CSS file
69 $name = 'theme_splash/customcss';
70 $title = get_string('customcss','theme_splash');
71 $description = get_string('customcssdesc', 'theme_splash');
72 $setting = new admin_setting_configtextarea($name, $title, $description, '');
73 $settings->add($setting);