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 - 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_monocolor
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
$page = new admin_settingpage('theme_monocolor_block19', get_string('settingsblock19', 'theme_monocolor'));
29
 
30
$name = 'theme_monocolor/displayblock19';
31
$title = get_string('turnon', 'theme_monocolor');
32
$description = get_string('displayblock19_desc', 'theme_monocolor');
33
$default = 0;
34
$setting = new admin_setting_configcheckbox($name, $title .
35
'<span class="badge badge-sq badge-dark ml-2">Block #19</span>', $description, $default);
36
$page->add($setting);
37
 
38
$name = 'theme_monocolor/displayhrblock19';
39
$title = get_string('displayblockhr', 'theme_monocolor');
40
$description = get_string('displayblockhr_desc', 'theme_monocolor');
41
$default = 1;
42
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
43
$page->add($setting);
44
 
45
$name = 'theme_monocolor/block19id';
46
$title = get_string('additionalid', 'theme_monocolor');
47
$description = get_string('additionalid_desc', 'theme_monocolor');
48
$default = '';
49
$setting = new admin_setting_configtext($name, $title, $description, $default);
50
$page->add($setting);
51
 
52
$name = 'theme_monocolor/block19class';
53
$title = get_string('additionalclass', 'theme_monocolor');
54
$description = get_string('additionalclass_desc', 'theme_monocolor');
55
$default = '';
56
$setting = new admin_setting_configtext($name, $title, $description, $default);
57
$page->add($setting);
58
 
59
$name = 'theme_monocolor/block19introsubtitle';
60
$title = get_string('blockintrosubtitle', 'theme_monocolor');
61
$description = get_string('blockintrosubtitle_desc', 'theme_monocolor');
62
$default = '';
63
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
64
$page->add($setting);
65
 
66
$name = 'theme_monocolor/block19introtitle';
67
$title = get_string('blockintrotitle', 'theme_monocolor');
68
$description = get_string('blockintrotitle_desc', 'theme_monocolor');
69
$default = '';
70
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
71
$page->add($setting);
72
 
73
$name = 'theme_monocolor/block19introcontent';
74
$title = get_string('blockintrocontent', 'theme_monocolor');
75
$description = get_string('blockintrocontent_desc', 'theme_monocolor');
76
$default = '';
77
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
78
$page->add($setting);
79
 
80
$name = 'theme_monocolor/block19htmlcontent';
81
$title = get_string('blockhtmlcontent', 'theme_monocolor');
82
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
83
$default = '<div class="rui-card-cat-grid">
84
<!-- Start item -->
85
<a href="#" class="rui-block-category-item">
86
<div class="rui-icon-box rui-icon-box--gray">
87
<img src="https://assets.rosea.io/monocolor/demo/icon.svg" alt="Icon #1" width="24" height="24" class="img-fluid">
88
</div>
89
<div class="ml-3">
90
<h3 class="rui-block-category-item-title">History</h3>
91
<span class="rui-block-category-item-subtitle">3 courses</span>
92
</div>
93
</a>
94
<!-- End item -->
95
 
96
<!-- Start item -->
97
<a href="#" class="rui-block-category-item">
98
<div class="rui-icon-box rui-icon-box--gray">
99
<img src="https://assets.rosea.io/monocolor/demo/icon.svg" alt="Icon #2" width="24" height="24" class="img-fluid">
100
</div>
101
<div class="ml-3">
102
<h3 class="rui-block-category-item-title">Statistics</h3>
103
<span class="rui-block-category-item-subtitle">16 courses</span>
104
</div>
105
</a>
106
<!-- End item -->
107
 
108
<!-- Start item -->
109
<a href="#" class="rui-block-category-item">
110
<div class="rui-icon-box rui-icon-box--gray">
111
<img src="https://assets.rosea.io/monocolor/demo/icon.svg" alt="Icon #3" width="24" height="24" class="img-fluid">
112
</div>
113
<div class="ml-3">
114
<h3 class="rui-block-category-item-title">Math</h3>
115
<span class="rui-block-category-item-subtitle">4 courses</span>
116
</div>
117
</a>
118
<!-- End item -->
119
 
120
<!-- Start item -->
121
<a href="#" class="rui-block-category-item">
122
<div class="rui-icon-box rui-icon-box--gray">
123
<img src="https://assets.rosea.io/monocolor/demo/icon.svg" alt="Icon #4" width="24" height="24" class="img-fluid">
124
</div>
125
<div class="ml-3">
126
<h3 class="rui-block-category-item-title">Geometry</h3>
127
<span class="rui-block-category-item-subtitle">9 courses</span>
128
</div>
129
</a>
130
<!-- End item -->
131
 
132
<!-- Start item -->
133
<a href="#" class="rui-block-category-item">
134
<div class="rui-icon-box rui-icon-box--gray">
135
<img src="https://assets.rosea.io/monocolor/demo/icon.svg" alt="Icon #5" width="24" height="24" class="img-fluid">
136
</div>
137
<div class="ml-3">
138
<h3 class="rui-block-category-item-title">Programming</h3>
139
<span class="rui-block-category-item-subtitle">2 courses</span>
140
</div>
141
</a>
142
<!-- End item -->
143
 
144
</div>';
145
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
146
$page->add($setting);
147
 
148
$name = 'theme_monocolor/block19footercontent';
149
$title = get_string('blockfootercontent', 'theme_monocolor');
150
$description = get_string('blockfootercontent_desc', 'theme_monocolor');
151
$default = '';
152
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
153
$page->add($setting);
154
 
155
$name = 'theme_monocolor/block19customcss';
156
$title = get_string('blockcustomcss', 'theme_monocolor');
157
$description = get_string('blockcustomcss_desc', 'theme_monocolor');
158
$default = '';
159
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
160
$page->add($setting);
161
 
162
$settings->add($page);