-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.php
433 lines (370 loc) · 27.9 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Local plugin "Boost navigation fumbling" - Settings
*
* @package local_boostnavigation
* @copyright 2017 Alexander Bias, Ulm University <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once(__DIR__ . '/lib.php');
if ($hassiteconfig) {
// Create admin settings category.
$ADMIN->add('appearance', new admin_category('local_boostnavigation',
get_string('pluginname', 'local_boostnavigation', null, true)));
// Create empty settings page structure to make the site administration work on non-admin pages.
if (!$ADMIN->fulltree) {
// Settings page: Root nodes.
$page = new admin_settingpage('local_boostnavigation_rootnodes',
get_string('settingspage_rootnodes', 'local_boostnavigation', null, true));
$ADMIN->add('local_boostnavigation', $page);
// Settings page: Course nodes.
$page = new admin_settingpage('local_boostnavigation_coursenodes',
get_string('settingspage_coursenodes', 'local_boostnavigation', null, true));
$ADMIN->add('local_boostnavigation', $page);
// Settings page: Bottom nodes.
$page = new admin_settingpage('local_boostnavigation_bottomnodes',
get_string('settingspage_bottomnodes', 'local_boostnavigation', null, true));
$ADMIN->add('local_boostnavigation', $page);
}
// Create full settings page structure.
// @codingStandardsIgnoreLine
else if ($ADMIN->fulltree) {
// Settings page: Root nodes.
$page = new admin_settingpage('local_boostnavigation_rootnodes',
get_string('settingspage_rootnodes', 'local_boostnavigation', null, true));
// Add remove nodes heading.
$page->add(new admin_setting_heading('local_boostnavigation/removenodesheading',
get_string('setting_removenodesheading', 'local_boostnavigation', null, true),
''));
// Create remove myhome node control widget (switch label and description depending on what will really happen on the site).
if (get_config('core', 'defaulthomepage') == HOMEPAGE_SITE) {
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removemyhomenode',
get_string('setting_removehomenode', 'local_boostnavigation', null, true),
get_string('setting_removehomenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removenodestechnicalhint', 'local_boostnavigation', null, true),
0));
} else if (get_config('core', 'defaulthomepage') == HOMEPAGE_MY) {
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removemyhomenode',
get_string('setting_removedashboardnode', 'local_boostnavigation', null, true),
get_string('setting_removedashboardnode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removenodestechnicalhint', 'local_boostnavigation', null, true),
0));
} else if (get_config('core', 'defaulthomepage') == HOMEPAGE_USER) {
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removemyhomenode',
get_string('setting_removefirsthomenode', 'local_boostnavigation', null, true),
get_string('setting_removefirsthomenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removenodestechnicalhint', 'local_boostnavigation', null, true),
0));
} else { // This should not happen.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removemyhomenode',
get_string('setting_removehomenode', 'local_boostnavigation', null, true),
get_string('setting_removehomenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removenodestechnicalhint', 'local_boostnavigation', null, true),
0));
}
// Create remove home node control widget (switch label and description depending on what will really happen on the site).
if (get_config('core', 'defaulthomepage') == HOMEPAGE_SITE) {
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removehomenode',
get_string('setting_removedashboardnode', 'local_boostnavigation', null, true),
get_string('setting_removedashboardnode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removenodestechnicalhint', 'local_boostnavigation', null, true),
0));
} else if (get_config('core', 'defaulthomepage') == HOMEPAGE_MY) {
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removehomenode',
get_string('setting_removehomenode', 'local_boostnavigation', null, true),
get_string('setting_removehomenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removenodestechnicalhint', 'local_boostnavigation', null, true),
0));
} else if (get_config('core', 'defaulthomepage') == HOMEPAGE_USER) {
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removehomenode',
get_string('setting_removesecondhomenode', 'local_boostnavigation', null, true),
get_string('setting_removesecondhomenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removenodestechnicalhint', 'local_boostnavigation', null, true),
0));
} else { // This should not happen.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removehomenode',
get_string('setting_removehomenode', 'local_boostnavigation', null, true),
get_string('setting_removehomenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removenodestechnicalhint', 'local_boostnavigation', null, true),
0));
}
// Create remove calendar node control widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removecalendarnode',
get_string('setting_removecalendarnode', 'local_boostnavigation', null, true),
get_string('setting_removecalendarnode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create remove privatefiles node control widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removeprivatefilesnode',
get_string('setting_removeprivatefilesnode', 'local_boostnavigation', null, true),
get_string('setting_removeprivatefilesnode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create remove mycourses node control widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removemycoursesnode',
get_string('setting_removemycoursesnode', 'local_boostnavigation', null, true),
get_string('setting_removemycoursesnode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removemycoursesnodeperformancehint', 'local_boostnavigation', null, true).
'<br /><br />'.
get_string('setting_removenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Add insert nodes heading.
$page->add(new admin_setting_heading('local_boostnavigation/insertnodesheading',
get_string('setting_insertnodesheading', 'local_boostnavigation', null, true),
''));
// Create insert custom nodes for users widget.
$setting = new admin_setting_configtextarea('local_boostnavigation/insertcustomnodesusers',
get_string('setting_insertcustomnodesusers', 'local_boostnavigation', null, true),
get_string('setting_insertcustomnodesusers_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_customnodesusageusers', 'local_boostnavigation', null, true).
get_string('setting_customnodesusagechildnodes', 'local_boostnavigation', null, true),
'',
PARAM_RAW);
$setting->set_updatedcallback('local_boostnavigation_reset_fontawesome_icon_map');
$page->add($setting);
// Create insert custom nodes for admins widget.
$setting = new admin_setting_configtextarea('local_boostnavigation/insertcustomnodesadmins',
get_string('setting_insertcustomnodesadmins', 'local_boostnavigation', null, true),
get_string('setting_insertcustomnodesadmins_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_customnodesusageadmins', 'local_boostnavigation', null, true).
get_string('setting_customnodesusagechildnodes', 'local_boostnavigation', null, true),
'',
PARAM_RAW);
$setting->set_updatedcallback('local_boostnavigation_reset_fontawesome_icon_map');
$page->add($setting);
// Add collapse nodes heading.
$page->add(new admin_setting_heading('local_boostnavigation/collapsenodesheading',
get_string('setting_collapsenodesheading', 'local_boostnavigation', null, true),
''));
// Create my courses node collapse widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsemycoursesnode',
get_string('setting_collapsemycoursesnode', 'local_boostnavigation', null, true),
get_string('setting_collapsemycoursesnode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_collapsenodestechnicalhint', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_collapsemycoursesnodeperformancehint', 'local_boostnavigation', null, true),
0));
// Create my courses node collapse default widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsemycoursesnodedefault',
get_string('setting_collapsemycoursesnodedefault', 'local_boostnavigation', null, true),
get_string('setting_collapsemycoursesnodedefault_desc', 'local_boostnavigation', null, true),
0));
// Create custom nodes for users collapse widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustomnodesusers',
get_string('setting_collapsecustomnodesusers', 'local_boostnavigation', null, true),
get_string('setting_collapsecustomnodesusers_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_collapsenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create custom nodes for users collapse default widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustomnodesusersdefault',
get_string('setting_collapsecustomnodesusersdefault', 'local_boostnavigation', null, true),
get_string('setting_collapsecustomnodesusersdefault_desc', 'local_boostnavigation', null, true),
0));
// Create custom nodes for admins collapse widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustomnodesadmins',
get_string('setting_collapsecustomnodesadmins', 'local_boostnavigation', null, true),
get_string('setting_collapsecustomnodesadmins_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_collapsenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create custom nodes for admins collapse default widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustomnodesadminsdefault',
get_string('setting_collapsecustomnodesadminsdefault', 'local_boostnavigation', null, true),
get_string('setting_collapsecustomnodesadminsdefault_desc', 'local_boostnavigation', null, true),
0));
// Add settings page to the admin settings category.
$ADMIN->add('local_boostnavigation', $page);
// Settings page: Course nodes.
$page = new admin_settingpage('local_boostnavigation_coursenodes',
get_string('settingspage_coursenodes', 'local_boostnavigation', null, true));
// Add remove course nodes heading.
$page->add(new admin_setting_heading('local_boostnavigation/removecoursenodesheading',
get_string('setting_removecoursenodesheading', 'local_boostnavigation', null, true),
''));
// Create remove badges course node control widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removebadgescoursenode',
get_string('setting_removebadgescoursenode', 'local_boostnavigation', null, true),
get_string('setting_removebadgescoursenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removecoursenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create remove competencies course node control widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removecompetenciescoursenode',
get_string('setting_removecompetenciescoursenode', 'local_boostnavigation', null, true),
get_string('setting_removecompetenciescoursenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removecoursenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create remove grades course node control widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removegradescoursenode',
get_string('setting_removegradescoursenode', 'local_boostnavigation', null, true),
get_string('setting_removegradescoursenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removecoursenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create remove participants course node control widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/removeparticipantscoursenode',
get_string('setting_removeparticipantscoursenode', 'local_boostnavigation', null, true),
get_string('setting_removeparticipantscoursenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_removecoursenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Add insert course nodes heading.
$page->add(new admin_setting_heading('local_boostnavigation/insertcoursenodesheading',
get_string('setting_insertcoursenodesheading', 'local_boostnavigation', null, true),
''));
// Create insert course sections course node widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/insertcoursesectionscoursenode',
get_string('setting_insertcoursesectionscoursenode', 'local_boostnavigation', null, true),
get_string('setting_insertcoursesectionscoursenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_insertcoursesectionscoursenodecorehint', 'local_boostnavigation', null, true).
'<br /><br />'.
get_string('setting_insertnodescollapsehint', 'local_boostnavigation', null, true),
0));
// Create insert activities course node widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/insertactivitiescoursenode',
get_string('setting_insertactivitiescoursenode', 'local_boostnavigation', null, true),
get_string('setting_insertactivitiescoursenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_insertnodescollapsehint', 'local_boostnavigation', null, true),
0));
// Create insert resources course node widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/insertresourcescoursenode',
get_string('setting_insertresourcescoursenode', 'local_boostnavigation', null, true),
get_string('setting_insertresourcescoursenode_desc', 'local_boostnavigation', null, true),
0));
// Create insert custom course nodes for users widget.
$setting = new admin_setting_configtextarea('local_boostnavigation/insertcustomcoursenodesusers',
get_string('setting_insertcustomcoursenodesusers', 'local_boostnavigation', null, true),
get_string('setting_insertcustomcoursenodesusers_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_customnodesusageusers', 'local_boostnavigation', null, true).
get_string('setting_customnodesusagechildnodes', 'local_boostnavigation', null, true),
'',
PARAM_RAW);
$setting->set_updatedcallback('local_boostnavigation_reset_fontawesome_icon_map');
$page->add($setting);
// Create insert custom course nodes for admins widget.
$setting = new admin_setting_configtextarea('local_boostnavigation/insertcustomcoursenodesadmins',
get_string('setting_insertcustomcoursenodesadmins', 'local_boostnavigation', null, true),
get_string('setting_insertcustomcoursenodesadmins_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_customnodesusageadmins', 'local_boostnavigation', null, true).
get_string('setting_customnodesusagechildnodes', 'local_boostnavigation', null, true),
'',
PARAM_RAW);
$setting->set_updatedcallback('local_boostnavigation_reset_fontawesome_icon_map');
$page->add($setting);
// Add collapse course nodes heading.
$page->add(new admin_setting_heading('local_boostnavigation/collapsecoursenodesheading',
get_string('setting_collapsecoursenodesheading', 'local_boostnavigation', null, true),
''));
// Create course sections course node collapse widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecoursesectionscoursenode',
get_string('setting_collapsecoursesectionscoursenode', 'local_boostnavigation', null, true),
get_string('setting_collapsecoursesectionscoursenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_collapsenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create course sections course node collapse default widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecoursesectionscoursenodedefault',
get_string('setting_collapsecoursesectionscoursenodedefault', 'local_boostnavigation', null, true),
get_string('setting_collapsecoursesectionscoursenodedefault_desc', 'local_boostnavigation', null, true),
0));
// Create activities course node collapse widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapseactivitiescoursenode',
get_string('setting_collapseactivitiescoursenode', 'local_boostnavigation', null, true),
get_string('setting_collapseactivitiescoursenode_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_collapsenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create activities course node collapse default widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapseactivitiescoursenodedefault',
get_string('setting_collapseactivitiescoursenodedefault', 'local_boostnavigation', null, true),
get_string('setting_collapseactivitiescoursenodedefault_desc', 'local_boostnavigation', null, true),
1));
// Create custom course nodes for users collapse widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustomcoursenodesusers',
get_string('setting_collapsecustomcoursenodesusers', 'local_boostnavigation', null, true),
get_string('setting_collapsecustomcoursenodesusers_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_collapsenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create custom course nodes for users collapse default widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustomcoursenodesusersdefault',
get_string('setting_collapsecustomcoursenodesusersdefault', 'local_boostnavigation', null, true),
get_string('setting_collapsecustomcoursenodesusersdefault_desc', 'local_boostnavigation', null, true),
0));
// Create custom course nodes for admins collapse widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustomcoursenodesadmins',
get_string('setting_collapsecustomcoursenodesadmins', 'local_boostnavigation', null, true),
get_string('setting_collapsecustomcoursenodesadmins_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_collapsenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create custom course nodes for admins collapse default widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustomcoursenodesadminsdefault',
get_string('setting_collapsecustomcoursenodesadminsdefault', 'local_boostnavigation', null, true),
get_string('setting_collapsecustomcoursenodesadminsdefault_desc', 'local_boostnavigation', null, true),
0));
// Add settings page to the admin settings category.
$ADMIN->add('local_boostnavigation', $page);
// Settings page: Bottom nodes.
$page = new admin_settingpage('local_boostnavigation_bottomnodes',
get_string('settingspage_bottomnodes', 'local_boostnavigation', null, true));
// Add insert bottom nodes heading.
$page->add(new admin_setting_heading('local_boostnavigation/insertbottomnodesheading',
get_string('setting_insertbottomnodesheading', 'local_boostnavigation', null, true),
''));
// Create insert custom bottom nodes for users widget.
$setting = new admin_setting_configtextarea('local_boostnavigation/insertcustombottomnodesusers',
get_string('setting_insertcustombottomnodesusers', 'local_boostnavigation', null, true),
get_string('setting_insertcustombottomnodesusers_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_customnodesusageusers', 'local_boostnavigation', null, true).
get_string('setting_customnodesusagechildnodes', 'local_boostnavigation', null, true),
'',
PARAM_RAW);
$setting->set_updatedcallback('local_boostnavigation_reset_fontawesome_icon_map');
$page->add($setting);
// Create insert custom bottom nodes for admins widget.
$setting = new admin_setting_configtextarea('local_boostnavigation/insertcustombottomnodesadmins',
get_string('setting_insertcustombottomnodesadmins', 'local_boostnavigation', null, true),
get_string('setting_insertcustombottomnodesadmins_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_customnodesusageadmins', 'local_boostnavigation', null, true).
get_string('setting_customnodesusagechildnodes', 'local_boostnavigation', null, true),
'',
PARAM_RAW);
$setting->set_updatedcallback('local_boostnavigation_reset_fontawesome_icon_map');
$page->add($setting);
// Add collapse bottom nodes heading.
$page->add(new admin_setting_heading('local_boostnavigation/collapsebottomnodesheading',
get_string('setting_collapsebottomnodesheading', 'local_boostnavigation', null, true),
''));
// Create custom bottom nodes for users collapse widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustombottomnodesusers',
get_string('setting_collapsecustombottomnodesusers', 'local_boostnavigation', null, true),
get_string('setting_collapsecustombottomnodesusers_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_collapsenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create custom bottom nodes for users collapse default widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustombottomnodesusersdefault',
get_string('setting_collapsecustombottomnodesusersdefault', 'local_boostnavigation', null, true),
get_string('setting_collapsecustombottomnodesusersdefault_desc', 'local_boostnavigation', null, true),
0));
// Create custom bottom nodes for admins collapse widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustombottomnodesadmins',
get_string('setting_collapsecustombottomnodesadmins', 'local_boostnavigation', null, true),
get_string('setting_collapsecustombottomnodesadmins_desc', 'local_boostnavigation', null, true).'<br /><br />'.
get_string('setting_collapsenodestechnicalhint', 'local_boostnavigation', null, true),
0));
// Create custom bottom nodes for admins collapse default widget.
$page->add(new admin_setting_configcheckbox('local_boostnavigation/collapsecustombottomnodesadminsdefault',
get_string('setting_collapsecustombottomnodesadminsdefault', 'local_boostnavigation', null, true),
get_string('setting_collapsecustombottomnodesadminsdefault_desc', 'local_boostnavigation', null, true),
0));
// Add settings page to the admin settings category.
$ADMIN->add('local_boostnavigation', $page);
}
}