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 - https://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 <https://www.gnu.org/licenses/>.
16
 
17
/**
18
 * Plugin administration pages are defined here.
19
 *
20
 * @package     mod_stickynotes
21
 * @category    admin
22
 * @copyright   2021 Olivier VALENTIN
23
 * @license     https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 */
25
 
26
defined('MOODLE_INTERNAL') || die();
27
 
28
if ($hassiteconfig) {
29
 
30
    if ($ADMIN->fulltree) {
31
        // Define all background colors for notes. Default colors are choosen in order to respect
32
        // accessibilty, an particularly blindcolorness. User can define others colors for the whole site
33
        // to respect template colors.
34
 
35
        // Defines color 1. Color 1 is also default color for notes background if color choice is not enabled.
36
        $settings->add(new admin_setting_configcolourpicker('mod_stickynotes/color1',
37
        get_string('color1_title', 'mod_stickynotes'),
38
        get_string('color1_descr', 'mod_stickynotes'),
39
        get_string('color1', 'mod_stickynotes'),
40
        null )
41
        );
42
 
43
        // Defines color 2.
44
        $settings->add(new admin_setting_configcolourpicker('mod_stickynotes/color2',
45
        get_string('color2_title', 'mod_stickynotes'),
46
        get_string('color2_descr', 'mod_stickynotes'),
47
        get_string('color2', 'mod_stickynotes'),
48
        null )
49
        );
50
 
51
        // Defines color 3.
52
        $settings->add(new admin_setting_configcolourpicker('mod_stickynotes/color3',
53
        get_string('color3_title', 'mod_stickynotes'),
54
        get_string('color3_descr', 'mod_stickynotes'),
55
        get_string('color3', 'mod_stickynotes'),
56
        null )
57
        );
58
 
59
        // Defines color 4.
60
        $settings->add(new admin_setting_configcolourpicker('mod_stickynotes/color4',
61
        get_string('color4_title', 'mod_stickynotes'),
62
        get_string('color4_descr', 'mod_stickynotes'),
63
        get_string('color4', 'mod_stickynotes'),
64
        null )
65
        );
66
 
67
        // Defines color 5.
68
        $settings->add(new admin_setting_configcolourpicker('mod_stickynotes/color5',
69
        get_string('color5_title', 'mod_stickynotes'),
70
        get_string('color5_descr', 'mod_stickynotes'),
71
        get_string('color5', 'mod_stickynotes'),
72
        null )
73
        );
74
 
75
        // Defines color 6.
76
        $settings->add(new admin_setting_configcolourpicker('mod_stickynotes/color6',
77
        get_string('color6_title', 'mod_stickynotes'),
78
        get_string('color6_descr', 'mod_stickynotes'),
79
        get_string('color6', 'mod_stickynotes'),
80
        null )
81
        );
82
    }
83
}