Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
4 ariadna 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
 * Administration configuration
19
 *
20
 *
21
 * @package    block_point_view
22
 * @copyright  2020 Quentin Fombaron
23
 * @author     Quentin Fombaron <q.fombaron@outlook.fr>
24
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 */
26
 
27
defined('MOODLE_INTERNAL') || die;
28
 
29
if ($ADMIN->fulltree) {
30
 
31
    $settings->add(new admin_setting_configcheckbox(
32
        'block_point_view/enable_point_views_admin',
33
        new lang_string('enablepoint_views', 'block_point_view'),
34
        '',
35
        1
36
    ));
37
 
38
    $settings->add(new admin_setting_configcheckbox(
39
        'block_point_view/enable_pix_admin',
40
        new lang_string('enablecustompix', 'block_point_view'),
41
        '',
42
 
43
    ));
44
 
45
    $settings->add(new admin_setting_configstoredfile(
46
        'block_point_view/point_views_pix_admin',
47
        new lang_string('customemoji', 'block_point_view'),
48
        new lang_string('customemoji_help', 'block_point_view'),
49
        'point_views_pix_admin',
50
        0,
51
        ['subdirs' => 0, 'maxfiles' => 11, 'accepted_types' => '.png']
52
    ));
53
 
54
    $settings->add(new admin_setting_configcolourpicker(
55
        'block_point_view/green_track_color_admin',
56
        new lang_string('greentrack', 'block_point_view'),
57
        '',
58
        '#129800',
59
        null,
60
        true
61
    ));
62
 
63
    $settings->add(new admin_setting_configcolourpicker(
64
        'block_point_view/blue_track_color_admin',
65
        new lang_string('bluetrack', 'block_point_view'),
66
        '',
67
        '#0B619F',
68
        null,
69
        true
70
    ));
71
 
72
    $settings->add(new admin_setting_configcolourpicker(
73
        'block_point_view/red_track_color_admin',
74
        new lang_string('redtrack', 'block_point_view'),
75
        '',
76
        '#BD0F29',
77
        null,
78
        true
79
    ));
80
 
81
    $settings->add(new admin_setting_configcolourpicker(
82
        'block_point_view/black_track_color_admin',
83
        new lang_string('blacktrack', 'block_point_view'),
84
        '',
85
        '#01262E',
86
        null,
87
        true
88
    ));
89
}