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 2022 - 2023 Marcin Czaja (https://rosea.io)
|
|
|
21 |
* @license Commercial https://themeforest.net/licenses
|
|
|
22 |
*
|
|
|
23 |
*/
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
defined('MOODLE_INTERNAL') || die();
|
|
|
27 |
|
|
|
28 |
// Content Builder.
|
|
|
29 |
$page = new admin_settingpage('theme_monocolor_scb', get_string('scbsettings', 'theme_monocolor'));
|
|
|
30 |
|
|
|
31 |
$slotsarray = array(
|
|
|
32 |
"1" => "1",
|
|
|
33 |
"2" => "2",
|
|
|
34 |
"3" => "3",
|
|
|
35 |
"4" => "4",
|
|
|
36 |
"5" => "5",
|
|
|
37 |
"6" => "6",
|
|
|
38 |
"7" => "7",
|
|
|
39 |
"8" => "8",
|
|
|
40 |
"9" => "9",
|
|
|
41 |
"10" => "10",
|
|
|
42 |
"11" => "11",
|
|
|
43 |
"12" => "12",
|
|
|
44 |
"13" => "13",
|
|
|
45 |
"14" => "14",
|
|
|
46 |
"15" => "15",
|
|
|
47 |
"16" => "16",
|
|
|
48 |
"17" => "17",
|
|
|
49 |
"18" => "18",
|
|
|
50 |
"19" => "19",
|
|
|
51 |
"20" => "20",
|
|
|
52 |
"21" => "21",
|
|
|
53 |
"22" => "22"
|
|
|
54 |
);
|
|
|
55 |
$name = 'theme_monocolor/block0';
|
|
|
56 |
$title = get_string('block0', 'theme_monocolor');
|
|
|
57 |
$description = get_string('block0_desc', 'theme_monocolor');
|
|
|
58 |
$setting = new admin_setting_configselect($name, $title, $description, '2', $slotsarray);
|
|
|
59 |
$page->add($setting);
|
|
|
60 |
|
|
|
61 |
$name = 'theme_monocolor/block1';
|
|
|
62 |
$title = get_string('block1', 'theme_monocolor');
|
|
|
63 |
$description = get_string('block1_desc', 'theme_monocolor');
|
|
|
64 |
$setting = new admin_setting_configselect($name, $title, $description, '1', $slotsarray);
|
|
|
65 |
$page->add($setting);
|
|
|
66 |
|
|
|
67 |
$name = 'theme_monocolor/block2';
|
|
|
68 |
$title = get_string('block2', 'theme_monocolor');
|
|
|
69 |
$description = get_string('block2_desc', 'theme_monocolor');
|
|
|
70 |
$setting = new admin_setting_configselect($name, $title, $description, '2', $slotsarray);
|
|
|
71 |
$page->add($setting);
|
|
|
72 |
|
|
|
73 |
$name = 'theme_monocolor/block3';
|
|
|
74 |
$title = get_string('block3', 'theme_monocolor');
|
|
|
75 |
$description = get_string('block3_desc', 'theme_monocolor');
|
|
|
76 |
$setting = new admin_setting_configselect($name, $title, $description, '3', $slotsarray);
|
|
|
77 |
$page->add($setting);
|
|
|
78 |
|
|
|
79 |
$name = 'theme_monocolor/block4';
|
|
|
80 |
$title = get_string('block4', 'theme_monocolor');
|
|
|
81 |
$description = get_string('block4_desc', 'theme_monocolor');
|
|
|
82 |
$setting = new admin_setting_configselect($name, $title, $description, '4', $slotsarray);
|
|
|
83 |
$page->add($setting);
|
|
|
84 |
|
|
|
85 |
$name = 'theme_monocolor/block5';
|
|
|
86 |
$title = get_string('block5', 'theme_monocolor');
|
|
|
87 |
$description = get_string('block5_desc', 'theme_monocolor');
|
|
|
88 |
$setting = new admin_setting_configselect($name, $title, $description, '5', $slotsarray);
|
|
|
89 |
$page->add($setting);
|
|
|
90 |
|
|
|
91 |
$name = 'theme_monocolor/block6';
|
|
|
92 |
$title = get_string('block6', 'theme_monocolor');
|
|
|
93 |
$description = get_string('block6_desc', 'theme_monocolor');
|
|
|
94 |
$setting = new admin_setting_configselect($name, $title, $description, '6', $slotsarray);
|
|
|
95 |
$page->add($setting);
|
|
|
96 |
|
|
|
97 |
$name = 'theme_monocolor/block7';
|
|
|
98 |
$title = get_string('block7', 'theme_monocolor');
|
|
|
99 |
$description = get_string('block7_desc', 'theme_monocolor');
|
|
|
100 |
$setting = new admin_setting_configselect($name, $title, $description, '7', $slotsarray);
|
|
|
101 |
$page->add($setting);
|
|
|
102 |
|
|
|
103 |
$name = 'theme_monocolor/block8';
|
|
|
104 |
$title = get_string('block8', 'theme_monocolor');
|
|
|
105 |
$description = get_string('block8_desc', 'theme_monocolor');
|
|
|
106 |
$setting = new admin_setting_configselect($name, $title, $description, '8', $slotsarray);
|
|
|
107 |
$page->add($setting);
|
|
|
108 |
|
|
|
109 |
$name = 'theme_monocolor/block9';
|
|
|
110 |
$title = get_string('block9', 'theme_monocolor');
|
|
|
111 |
$description = get_string('block9_desc', 'theme_monocolor');
|
|
|
112 |
$setting = new admin_setting_configselect($name, $title, $description, '9', $slotsarray);
|
|
|
113 |
$page->add($setting);
|
|
|
114 |
|
|
|
115 |
$name = 'theme_monocolor/block10';
|
|
|
116 |
$title = get_string('block10', 'theme_monocolor');
|
|
|
117 |
$description = get_string('block10_desc', 'theme_monocolor');
|
|
|
118 |
$setting = new admin_setting_configselect($name, $title, $description, '10', $slotsarray);
|
|
|
119 |
$page->add($setting);
|
|
|
120 |
|
|
|
121 |
$name = 'theme_monocolor/block11';
|
|
|
122 |
$title = get_string('block11', 'theme_monocolor');
|
|
|
123 |
$description = get_string('block11_desc', 'theme_monocolor');
|
|
|
124 |
$setting = new admin_setting_configselect($name, $title, $description, '11', $slotsarray);
|
|
|
125 |
$page->add($setting);
|
|
|
126 |
|
|
|
127 |
$name = 'theme_monocolor/block12';
|
|
|
128 |
$title = get_string('block12', 'theme_monocolor');
|
|
|
129 |
$description = get_string('block12_desc', 'theme_monocolor');
|
|
|
130 |
$setting = new admin_setting_configselect($name, $title, $description, '12', $slotsarray);
|
|
|
131 |
$page->add($setting);
|
|
|
132 |
|
|
|
133 |
$name = 'theme_monocolor/block13';
|
|
|
134 |
$title = get_string('block13', 'theme_monocolor');
|
|
|
135 |
$description = get_string('block13_desc', 'theme_monocolor');
|
|
|
136 |
$setting = new admin_setting_configselect($name, $title, $description, '13', $slotsarray);
|
|
|
137 |
$page->add($setting);
|
|
|
138 |
|
|
|
139 |
$name = 'theme_monocolor/block14';
|
|
|
140 |
$title = get_string('block14', 'theme_monocolor');
|
|
|
141 |
$description = get_string('block14_desc', 'theme_monocolor');
|
|
|
142 |
$setting = new admin_setting_configselect($name, $title, $description, '14', $slotsarray);
|
|
|
143 |
$page->add($setting);
|
|
|
144 |
|
|
|
145 |
$name = 'theme_monocolor/block15';
|
|
|
146 |
$title = get_string('block15', 'theme_monocolor');
|
|
|
147 |
$description = get_string('block15_desc', 'theme_monocolor');
|
|
|
148 |
$setting = new admin_setting_configselect($name, $title, $description, '15', $slotsarray);
|
|
|
149 |
$page->add($setting);
|
|
|
150 |
|
|
|
151 |
$name = 'theme_monocolor/block16';
|
|
|
152 |
$title = get_string('block16', 'theme_monocolor');
|
|
|
153 |
$description = get_string('block16_desc', 'theme_monocolor');
|
|
|
154 |
$setting = new admin_setting_configselect($name, $title, $description, '16', $slotsarray);
|
|
|
155 |
$page->add($setting);
|
|
|
156 |
|
|
|
157 |
$name = 'theme_monocolor/block17';
|
|
|
158 |
$title = get_string('block17', 'theme_monocolor');
|
|
|
159 |
$description = get_string('block17_desc', 'theme_monocolor');
|
|
|
160 |
$setting = new admin_setting_configselect($name, $title, $description, '17', $slotsarray);
|
|
|
161 |
$page->add($setting);
|
|
|
162 |
|
|
|
163 |
$name = 'theme_monocolor/block18';
|
|
|
164 |
$title = get_string('block18', 'theme_monocolor');
|
|
|
165 |
$description = get_string('block18_desc', 'theme_monocolor');
|
|
|
166 |
$setting = new admin_setting_configselect($name, $title, $description, '18', $slotsarray);
|
|
|
167 |
$page->add($setting);
|
|
|
168 |
|
|
|
169 |
$name = 'theme_monocolor/block19';
|
|
|
170 |
$title = get_string('block19', 'theme_monocolor');
|
|
|
171 |
$description = get_string('block19_desc', 'theme_monocolor');
|
|
|
172 |
$setting = new admin_setting_configselect($name, $title, $description, '19', $slotsarray);
|
|
|
173 |
$page->add($setting);
|
|
|
174 |
|
|
|
175 |
$name = 'theme_monocolor/block20';
|
|
|
176 |
$title = get_string('block20', 'theme_monocolor');
|
|
|
177 |
$description = get_string('block20_desc', 'theme_monocolor');
|
|
|
178 |
$setting = new admin_setting_configselect($name, $title, $description, '1', $slotsarray);
|
|
|
179 |
$page->add($setting);
|
|
|
180 |
|
|
|
181 |
$name = 'theme_monocolor/block21';
|
|
|
182 |
$title = get_string('block21', 'theme_monocolor');
|
|
|
183 |
$description = get_string('block21_desc', 'theme_monocolor');
|
|
|
184 |
$setting = new admin_setting_configselect($name, $title, $description, '2', $slotsarray);
|
|
|
185 |
$page->add($setting);
|
|
|
186 |
|
|
|
187 |
$name = 'theme_monocolor/block22';
|
|
|
188 |
$title = get_string('block22', 'theme_monocolor');
|
|
|
189 |
$description = get_string('block22_desc', 'theme_monocolor');
|
|
|
190 |
$setting = new admin_setting_configselect($name, $title, $description, '3', $slotsarray);
|
|
|
191 |
$page->add($setting);
|
|
|
192 |
|
|
|
193 |
$settings->add($page);
|