Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | 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_universe
20
 * @copyright 2023 Marcin Czaja (https://rosea.io)
21
 * @license   Commercial https://themeforest.net/licenses
22
 *
23
 */
24
 
25
 
26
defined('MOODLE_INTERNAL') || die();
27
 
28
// Advanced settings.
29
$page = new admin_settingpage(
30
    'theme_universe_advanced',
31
    get_string('advancedsettings', 'theme_universe')
32
);
33
 
34
// H5P custom CSS.
1441 ariadna 35
// $setting = new admin_setting_configtextarea(
36
//     'theme_universe/hvpcss',
37
//     get_string('hvpcss', 'theme_universe'),
38
//     get_string('hvpcss_desc', 'theme_universe'), '');
39
// $page->add($setting);
1 efrain 40
 
41
// Raw SCSS to include before the content.
42
$setting = new admin_setting_scsscode(
43
    'theme_universe/scsspre',
44
    get_string('rawscsspre', 'theme_universe'),
45
    get_string('rawscsspre_desc', 'theme_universe'),
46
    '',
47
    PARAM_RAW
48
);
49
$setting->set_updatedcallback('theme_reset_all_caches');
50
$page->add($setting);
51
 
52
// Raw SCSS to include after the content.
53
$setting = new admin_setting_scsscode(
54
    'theme_universe/scss',
55
    get_string('rawscss', 'theme_universe'),
56
    get_string('rawscss_desc', 'theme_universe'),
57
    '',
58
    PARAM_RAW
59
);
60
$setting->set_updatedcallback('theme_reset_all_caches');
61
$page->add($setting);
62
 
63
$settings->add($page);