-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.php
48 lines (28 loc) · 1.83 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
<?php
require_once($CFG->dirroot . '/mod/lightboxgallery/lib.php');
/* Disabled Plugins */
$options = lightboxgallery_edit_types(true);
$disableplugins = new admin_setting_configmulticheckbox('disabledplugins', get_string('configdisabledplugins', 'lightboxgallery'), get_string('configdisabledpluginsdesc', 'lightboxgallery'), array(), $options);
$disableplugins->plugin = 'lightboxgallery';
$settings->add($disableplugins);
/* Enable RSS Feeds */
$description = get_string('configenablerssfeedsdesc', 'lightboxgallery');
if (empty($CFG->enablerssfeeds)) {
$description .= ' (' . get_string('configenablerssfeedsdisabled2', 'admin') . ')';
}
$enablerss = new admin_setting_configcheckbox('enablerssfeeds', get_string('configenablerssfeeds', 'lightboxgallery'), $description, 0);
$enablerss->plugin = 'lightboxgallery';
$settings->add($enablerss);
/* Strict filenames */
$strictfilenames = new admin_setting_configcheckbox('strictfilenames', get_string('configstrictfilenames', 'lightboxgallery'), get_string('configstrictfilenamesdesc', 'lightboxgallery'), 0);
$strictfilenames->plugin = 'lightboxgallery';
$settings->add($strictfilenames);
/* Overwrite existing files */
$overwritefiles = new admin_setting_configcheckbox('overwritefiles', get_string('configoverwritefiles', 'lightboxgallery'), get_string('configoverwritefilesdesc', 'lightboxgallery'), 1);
$overwritefiles->plugin = 'lightboxgallery';
$settings->add($overwritefiles);
/* Thumbnail cache lifetime */
$imagelifetime = new admin_setting_configtext('imagelifetime', get_string('configimagelifetime', 'lightboxgallery'), get_string('configimagelifetimedesc', 'lightboxgallery'), '86400', PARAM_INT, 6);
$imagelifetime->plugin = 'lightboxgallery';
$settings->add($imagelifetime);
?>