forked from bmbrands/theme_bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
64 lines (52 loc) · 2.47 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* Settings for the bootstrap theme
*/
defined('MOODLE_INTERNAL') || die;
if ($ADMIN->fulltree) {
//This is the note box for all the settings pages
$name = 'theme_bootstrap/notes';
$heading = get_string('notes', 'theme_bootstrap');
$information = get_string('notesdesc', 'theme_bootstrap');
$setting = new admin_setting_heading($name, $heading, $information);
$settings->add($setting);
$name = 'theme_bootstrap/enablejquery';
$title = get_string('enablejquery','theme_bootstrap');
$description = get_string('enablejquerydesc', 'theme_bootstrap');
$default = '1';
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$settings->add($setting);
$name = 'theme_bootstrap/enableglyphicons';
$title = get_string('enableglyphicons','theme_bootstrap');
$description = get_string('enableglyphiconsdesc', 'theme_bootstrap');
$default = '0';
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$settings->add($setting);
$name = 'theme_bootstrap/logo_url';
$title = get_string('logo_url','theme_bootstrap');
$description = get_string('logo_urldesc', 'theme_bootstrap');
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
$settings->add($setting);
$name = 'theme_bootstrap/navlogo_url';
$title = get_string('navlogo_url','theme_bootstrap');
$description = get_string('navlogo_urldesc', 'theme_bootstrap');
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
$settings->add($setting);
$name = 'theme_bootstrap/customcss';
$title = get_string('customcss','theme_bootstrap');
$description = get_string('customcssdesc', 'theme_bootstrap');
$default = '';
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
$settings->add($setting);
$name = 'theme_bootstrap/gakey';
$title = get_string('gakey','theme_bootstrap');
$description = get_string('gakeydesc', 'theme_bootstrap');
$setting = new admin_setting_configtext($name, $title, $description, '');
$settings->add($setting);
$name= 'theme_bootstrap/bootswatch_theme';
$title = get_string('bootswatch_theme', 'theme_bootstrap');
$description = get_string('bootswatch_themedesc', 'theme_bootstrap');
$default = '';
$setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_URL);
$settings->add($setting);
}