Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
// This file is part of Moodle - http://moodle.org/
3
//
4
// Moodle is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// Moodle is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
 
17
/**
18
 *
19
 * @package   theme_monocolor
20
 * @copyright 2022 - 2023 Marcin Czaja (https://rosea.io)
21
 * @license   Commercial https://themeforest.net/licenses
22
 *
23
 */
24
 
25
 
26
defined('MOODLE_INTERNAL') || die();
27
 
28
 
29
$page = new admin_settingpage('theme_monocolor_settingscourses', get_string( 'settingscourses', 'theme_monocolor'));
30
 
31
// Show/hide course index navigation.
32
$name = 'theme_monocolor/hidecourseindexnav';
33
$title = get_string('hidecourseindexnav', 'theme_monocolor');
34
$description = get_string('hidecourseindexnav_desc', 'theme_monocolor');
35
$default = 0;
36
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
37
$page->add($setting);
38
 
39
$name = 'theme_monocolor/courselistview';
40
$title = get_string('courselistview', 'theme_monocolor');
41
$description = get_string('courselistview_desc', 'theme_monocolor');
42
$default = 0;
43
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
44
$page->add($setting);
45
 
46
$name = 'theme_monocolor/courselangbadge';
47
$title = get_string('courselangbadge', 'theme_monocolor');
48
$description = get_string('courselangbadge_desc', 'theme_monocolor');
49
$default = 1;
50
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
51
$page->add($setting);
52
 
53
$name = 'theme_monocolor/hcoursemainpage';
54
$heading = get_string('hcoursemainpage', 'theme_monocolor');
55
$title = get_string('hcoursemainpage_desc', 'theme_monocolor');
56
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
57
$page->add($setting);
58
 
59
$name = 'theme_monocolor/cccteachers';
60
$title = get_string('cccteachers', 'theme_monocolor');
61
$description = get_string('cccteachers_desc', 'theme_monocolor');
62
$default = 1;
63
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
64
$page->add($setting);
65
 
66
$name = 'theme_monocolor/ipcoursesummary';
67
$title = get_string('ipcoursesummary', 'theme_monocolor');
68
$description = get_string('ipcoursesummary_desc', 'theme_monocolor');
69
$default = 1;
70
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
71
$page->add($setting);
72
 
73
$name = 'theme_monocolor/ipcoursedetails';
74
$title = get_string('ipcoursedetails', 'theme_monocolor');
75
$description = get_string('ipcoursedetails_desc', 'theme_monocolor');
76
$default = 1;
77
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
78
$page->add($setting);
79
 
80
$name = 'theme_monocolor/ipcourseimage';
81
$title = get_string('ipcourseimage', 'theme_monocolor');
82
$description = get_string('ipcourseimage_desc', 'theme_monocolor');
83
$default = 1;
84
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
85
$page->add($setting);
86
 
87
$name = 'theme_monocolor/coursedescwidth';
88
$title = get_string('coursedescwidth', 'theme_monocolor');
89
$description = get_string('coursedescwidth_desc', 'theme_monocolor');
90
$default = "700px";
91
$setting = new admin_setting_configtext($name, $title, $description, $default);
92
$setting->set_updatedcallback('theme_reset_all_caches');
93
$page->add($setting);
94
 
95
$name = 'theme_monocolor/incoursedescwidth';
96
$title = get_string('incoursedescwidth', 'theme_monocolor');
97
$description = get_string('incoursedescwidth_desc', 'theme_monocolor');
98
$default = "700px";
99
$setting = new admin_setting_configtext($name, $title, $description, $default);
100
$setting->set_updatedcallback('theme_reset_all_caches');
101
$page->add($setting);
102
 
103
// Progress Bar.
104
$name = 'theme_monocolor/courseprogressbar';
105
$title = get_string('courseprogressbar', 'theme_monocolor');
106
$description = get_string('courseprogressbar_desc', 'theme_monocolor');
107
$default = 0;
108
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
109
$page->add($setting);
110
 
111
$name = 'theme_monocolor/hcoursepagetabs';
112
$heading = get_string('hcoursepagetabs', 'theme_monocolor');
113
$title = get_string('hcoursepagetabs_desc', 'theme_monocolor');
114
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
115
$page->add($setting);
116
 
117
$name = 'theme_monocolor/coursetablayout';
118
$title = get_string('coursetablayout', 'theme_monocolor');
119
$description = get_string('coursetablayout_desc', 'theme_monocolor');
120
$default = 1;
121
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
122
$page->add($setting);
123
 
124
$name = 'theme_monocolor/istab2active';
125
$title = get_string('istab2active', 'theme_monocolor');
126
$description = get_string('istab2active_desc', 'theme_monocolor');
127
$default = 0;
128
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
129
$page->add($setting);
130
 
131
// Course Tabs.
132
$name = 'theme_monocolor/titlecoursetab1';
133
$title = get_string('titlecoursetab1', 'theme_monocolor');
134
$description = get_string('titlecoursetab1_desc', 'theme_monocolor');
135
$setting = new admin_setting_configtextarea($name, $title, $description, 'Overview');
136
$page->add($setting);
137
 
138
$name = 'theme_monocolor/coursetab1content';
139
$title = get_string('blockhtmlcontent', 'theme_monocolor');
140
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
141
$default = '';
142
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
143
$page->add($setting);
144
 
145
$name = 'theme_monocolor/titlecoursetab2';
146
$title = get_string('titlecoursetab2', 'theme_monocolor');
147
$description = get_string('titlecoursetab2_desc', 'theme_monocolor');
148
$setting = new admin_setting_configtextarea($name, $title, $description, 'Course Content');
149
$page->add($setting);
150
 
151
$name = 'theme_monocolor/coursetab2content';
152
$title = get_string('blockhtmlcontent', 'theme_monocolor');
153
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
154
$default = '';
155
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
156
$page->add($setting);
157
 
158
$name = 'theme_monocolor/titlecoursetab3';
159
$title = get_string('titlecoursetab3', 'theme_monocolor');
160
$description = get_string('titlecoursetab3_desc', 'theme_monocolor');
161
$setting = new admin_setting_configtextarea($name, $title, $description, 'FAQ');
162
$page->add($setting);
163
 
164
$name = 'theme_monocolor/coursetab3content';
165
$title = get_string('blockhtmlcontent', 'theme_monocolor');
166
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
167
$default = '';
168
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
169
$page->add($setting);
170
 
171
$name = 'theme_monocolor/titlecoursetab4';
172
$title = get_string('titlecoursetab4', 'theme_monocolor');
173
$description = get_string('titlecoursetab4_desc', 'theme_monocolor');
174
$setting = new admin_setting_configtextarea($name, $title, $description, 'Resources');
175
$page->add($setting);
176
 
177
$name = 'theme_monocolor/coursetab4content';
178
$title = get_string('blockhtmlcontent', 'theme_monocolor');
179
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
180
$default = '';
181
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
182
$page->add($setting);
183
 
184
$name = 'theme_monocolor/titlecoursetab5';
185
$title = get_string('titlecoursetab5', 'theme_monocolor');
186
$description = get_string('titlecoursetab5_desc', 'theme_monocolor');
187
$setting = new admin_setting_configtextarea($name, $title, $description, 'Teacher');
188
$page->add($setting);
189
 
190
$name = 'theme_monocolor/coursetab5content';
191
$title = get_string('blockhtmlcontent', 'theme_monocolor');
192
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
193
$default = '';
194
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
195
$page->add($setting);
196
 
197
$name = 'theme_monocolor/cccteacherslist';
198
$title = get_string('cccteacherslist', 'theme_monocolor');
199
$description = get_string('cccteacherslist_desc', 'theme_monocolor');
200
$default = 1;
201
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
202
$page->add($setting);
203
 
204
$name = 'theme_monocolor/hcoursecard';
205
$heading = get_string('hcoursecard', 'theme_monocolor');
206
$title = get_string('hcoursecard_desc', 'theme_monocolor');
207
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
208
$page->add($setting);
209
 
210
$name = 'theme_monocolor/cccteacheravatar';
211
$title = get_string('cccteacheravatar', 'theme_monocolor');
212
$description = get_string('cccteacheravatar_desc', 'theme_monocolor');
213
$default = 0;
214
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
215
$page->add($setting);
216
 
217
$name = 'theme_monocolor/cccsummary';
218
$title = get_string('cccsummary', 'theme_monocolor');
219
$description = get_string('cccsummary_desc', 'theme_monocolor');
220
$default = 1;
221
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
222
$page->add($setting);
223
 
224
$name = 'theme_monocolor/coursecarddesclimit';
225
$title = get_string('coursecarddesclimit', 'theme_monocolor');
226
$description = get_string('coursecarddesclimit_desc', 'theme_monocolor');
227
$setting = new admin_setting_configtext($name, $title, $description, '100');
228
$page->add($setting);
229
 
230
$name = 'theme_monocolor/showcustomfields';
231
$title = get_string('showcustomfields', 'theme_monocolor');
232
$description = get_string('showcustomfields_desc', 'theme_monocolor');
233
$default = 1;
234
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
235
$page->add($setting);
236
 
237
$name = 'theme_monocolor/hactivityicons';
238
$heading = get_string('hactivityicons', 'theme_monocolor');
239
$title = get_string('hactivityicons_desc', 'theme_monocolor');
240
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
241
$page->add($setting);
242
 
243
$name = 'theme_monocolor/iconadministration';
244
$title = get_string('iconadministration', 'theme_monocolor');
245
$description = get_string('color_desc', 'theme_monocolor');
246
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
247
$setting->set_updatedcallback('theme_reset_all_caches');
248
$page->add($setting);
249
 
250
$name = 'theme_monocolor/iconassessment';
251
$title = get_string('iconassessment', 'theme_monocolor');
252
$description = get_string('color_desc', 'theme_monocolor');
253
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
254
$setting->set_updatedcallback('theme_reset_all_caches');
255
$page->add($setting);
256
 
257
$name = 'theme_monocolor/iconcolleboration';
258
$title = get_string('iconcolleboration', 'theme_monocolor');
259
$description = get_string('color_desc', 'theme_monocolor');
260
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
261
$setting->set_updatedcallback('theme_reset_all_caches');
262
$page->add($setting);
263
 
264
$name = 'theme_monocolor/iconcommunication';
265
$title = get_string('iconcommunication', 'theme_monocolor');
266
$description = get_string('color_desc', 'theme_monocolor');
267
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
268
$setting->set_updatedcallback('theme_reset_all_caches');
269
$page->add($setting);
270
 
271
$name = 'theme_monocolor/iconcontent';
272
$title = get_string('iconcontent', 'theme_monocolor');
273
$description = get_string('color_desc', 'theme_monocolor');
274
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
275
$setting->set_updatedcallback('theme_reset_all_caches');
276
$page->add($setting);
277
 
278
$name = 'theme_monocolor/iconinterface';
279
$title = get_string('iconinterface', 'theme_monocolor');
280
$description = get_string('color_desc', 'theme_monocolor');
281
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
282
$setting->set_updatedcallback('theme_reset_all_caches');
283
$page->add($setting);
284
 
285
$settings->add($page);