1342 |
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 |
*
|
|
|
19 |
* @package theme_universe
|
|
|
20 |
* @copyright 2023 Marcin Czaja (#)
|
|
|
21 |
* @license Commercial https://themeforest.net/licenses
|
|
|
22 |
*
|
|
|
23 |
*/
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
defined('MOODLE_INTERNAL') || die();
|
|
|
27 |
|
|
|
28 |
$page = new admin_settingpage('theme_universe_block6', get_string('settingsblock6', 'theme_universe'));
|
|
|
29 |
|
|
|
30 |
$name = 'theme_universe/displayblock6';
|
|
|
31 |
$title = get_string('turnon', 'theme_universe');
|
|
|
32 |
$description = get_string('displayblock6_desc', 'theme_universe');
|
|
|
33 |
$default = 0;
|
|
|
34 |
$setting = new admin_setting_configcheckbox($name, $title .
|
|
|
35 |
'<span class="badge badge-sq badge-dark ml-2">Block #6</span>', $description, $default);
|
|
|
36 |
$page->add($setting);
|
|
|
37 |
|
|
|
38 |
$name = 'theme_universe/displayhrblock6';
|
|
|
39 |
$title = get_string('displayblockhr', 'theme_universe');
|
|
|
40 |
$description = get_string('displayblockhr_desc', 'theme_universe');
|
|
|
41 |
$default = 1;
|
|
|
42 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
|
|
43 |
$page->add($setting);
|
|
|
44 |
|
|
|
45 |
$name = 'theme_universe/block6id';
|
|
|
46 |
$title = get_string('additionalid', 'theme_universe');
|
|
|
47 |
$description = get_string('additionalid_desc', 'theme_universe');
|
|
|
48 |
$default = '';
|
|
|
49 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
|
|
50 |
$page->add($setting);
|
|
|
51 |
|
|
|
52 |
$name = 'theme_universe/block6class';
|
|
|
53 |
$title = get_string('additionalclass', 'theme_universe');
|
|
|
54 |
$description = get_string('additionalclass_desc', 'theme_universe');
|
|
|
55 |
$default = '';
|
|
|
56 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
|
|
57 |
$page->add($setting);
|
|
|
58 |
|
|
|
59 |
$name = 'theme_universe/block6introsubtitle';
|
|
|
60 |
$title = get_string('blockintrosubtitle', 'theme_universe');
|
|
|
61 |
$description = get_string('blockintrosubtitle_desc', 'theme_universe');
|
|
|
62 |
$default = '';
|
|
|
63 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
64 |
$page->add($setting);
|
|
|
65 |
|
|
|
66 |
$name = 'theme_universe/block6introtitle';
|
|
|
67 |
$title = get_string('blockintrotitle', 'theme_universe');
|
|
|
68 |
$description = get_string('blockintrotitle_desc', 'theme_universe');
|
|
|
69 |
$default = '';
|
|
|
70 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
71 |
$page->add($setting);
|
|
|
72 |
|
|
|
73 |
$name = 'theme_universe/block6introcontent';
|
|
|
74 |
$title = get_string('blockintrocontent', 'theme_universe');
|
|
|
75 |
$description = get_string('blockintrocontent_desc', 'theme_universe');
|
|
|
76 |
$default = '';
|
|
|
77 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
78 |
$page->add($setting);
|
|
|
79 |
|
|
|
80 |
$name = 'theme_universe/block6htmlcontent';
|
|
|
81 |
$title = get_string('blockhtmlcontent', 'theme_universe');
|
|
|
82 |
$description = get_string('blockhtmlcontent_desc', 'theme_universe');
|
|
|
83 |
$default = '<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3">
|
|
|
84 |
|
|
|
85 |
<!-- Start item -->
|
|
|
86 |
<div class="rui-card-item col mb-4">
|
|
|
87 |
<div class="rui-card--smpl">
|
|
|
88 |
<div class="rui-card-body">
|
|
|
89 |
|
|
|
90 |
<!-- icon -->
|
|
|
91 |
<div class="rui-rounded-icon rui-rounded-icon--gray mb-3">
|
|
|
92 |
<svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24"
|
|
|
93 |
fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
|
|
|
94 |
<path d="M12 11.5v5M12 7.51l.01-.011M12 22c5.523 0 10-4.477 10-10S17.523
|
|
|
95 |
2 12 2 2 6.477 2 12s4.477 10 10 10z" stroke="currentColor" stroke-width="1.5"
|
|
|
96 |
stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
97 |
</svg>
|
|
|
98 |
</div>
|
|
|
99 |
<!-- end icon -->
|
|
|
100 |
|
|
|
101 |
<h3 class="rui-card-title">Moodle 4.x</h3>
|
|
|
102 |
<p class="rui-card-text--md">universe theme works with Moodle 4.1, 4.0.</p>
|
|
|
103 |
<a href="#" target="_blank" class="rui-card-btn-link underline--anim">Check All Moodle Themes</a>
|
|
|
104 |
</div>
|
|
|
105 |
</div>
|
|
|
106 |
</div>
|
|
|
107 |
<!-- End item -->
|
|
|
108 |
|
|
|
109 |
<!-- Start item -->
|
|
|
110 |
<div class="rui-card-item col mb-4">
|
|
|
111 |
<div class="rui-card--smpl">
|
|
|
112 |
<div class="rui-card-body">
|
|
|
113 |
|
|
|
114 |
<!-- icon -->
|
|
|
115 |
<div class="rui-rounded-icon rui-rounded-icon--gray mb-3">
|
|
|
116 |
<svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24"
|
|
|
117 |
fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
|
|
|
118 |
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="1.5"></circle>
|
|
|
119 |
<path d="M16.583 9.667C15.81 8.097 14.043 7 11.988 7 9.388 7 7.25 8.754 7 11"
|
|
|
120 |
stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
121 |
<path d="M14.494 9.722H16.4a.6.6 0 00.6-.6V7.5M7.417 13.667C8.191 15.629 9.957 17
|
|
|
122 |
12.012 17c2.6 0 4.736-2.193 4.988-5" stroke="currentColor" stroke-width="1.5"
|
|
|
123 |
stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
124 |
<path d="M9.506 13.622H7.6a.6.6 0 00-.6.6V16.4" stroke="currentColor"
|
|
|
125 |
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
126 |
</svg>
|
|
|
127 |
</div>
|
|
|
128 |
<!-- end icon -->
|
|
|
129 |
|
|
|
130 |
<h3 class="rui-card-title">Updates</h3>
|
|
|
131 |
<p class="rui-card-text--md">Get new features, improvements, and bug fixes in each future update.;</p>
|
|
|
132 |
<a href="#" target="_blank" class="rui-card-btn-link underline--anim">Get this theme</a>
|
|
|
133 |
</div>
|
|
|
134 |
</div>
|
|
|
135 |
</div>
|
|
|
136 |
<!-- End item -->
|
|
|
137 |
|
|
|
138 |
<!-- Start item -->
|
|
|
139 |
<div class="rui-card-item col mb-4">
|
|
|
140 |
<div class="rui-card--smpl">
|
|
|
141 |
<div class="rui-card-body">
|
|
|
142 |
|
|
|
143 |
<!-- icon -->
|
|
|
144 |
<div class="rui-rounded-icon rui-rounded-icon--gray mb-3">
|
|
|
145 |
<svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24"
|
|
|
146 |
fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
|
|
|
147 |
<path d="M20 11a8 8 0 10-16 0" stroke="currentColor" stroke-width="1.5"
|
|
|
148 |
stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
149 |
<path d="M2 15.438v-1.876a2 2 0 011.515-1.94l1.74-.436a.6.6 0
|
|
|
150 |
01.745.582v5.463a.6.6 0 01-.746.583l-1.74-.435A2 2 0 012 15.439zM22
|
|
|
151 |
15.438v-1.876a2 2 0 00-1.515-1.94l-1.74-.436a.6.6 0 00-.745.582v5.463a.6.6
|
|
|
152 |
|
|
|
153 |
stroke="currentColor" stroke-width="1.5"></path>
|
|
|
154 |
<path d="M13.5 22h-3a1.5 1.5 0 010-3h3a1.5 1.5 0 010 3z"
|
|
|
155 |
stroke="currentColor" stroke-width="1.5"></path>
|
|
|
156 |
</svg>
|
|
|
157 |
</div>
|
|
|
158 |
<!-- end icon -->
|
|
|
159 |
|
|
|
160 |
<h3 class="rui-card-title">Support</h3>
|
|
|
161 |
<p class="rui-card-text--md">I also provide free customer support even when...</p>
|
|
|
162 |
<a href="#" target="_blank" class="rui-card-btn-link underline--anim">Support page</a>
|
|
|
163 |
</div>
|
|
|
164 |
</div>
|
|
|
165 |
</div>
|
|
|
166 |
<!-- End item -->
|
|
|
167 |
|
|
|
168 |
<!-- Start item -->
|
|
|
169 |
<div class="rui-card-item col mb-4">
|
|
|
170 |
<div class="rui-card--smpl">
|
|
|
171 |
<div class="rui-card-body">
|
|
|
172 |
|
|
|
173 |
<!-- icon -->
|
|
|
174 |
<div class="rui-rounded-icon rui-rounded-icon--gray mb-3">
|
|
|
175 |
<svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24"
|
|
|
176 |
fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
|
|
|
177 |
<path d="M14.272 10.445L18 2m-8.684 8.632L5 2m7.761 8.048L8.835 2m5.525
|
|
|
178 |
0l-1.04 2.5M6 16a6 6 0 1012 0 6 6 0 00-12 0z" stroke="currentColor"
|
|
|
179 |
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
180 |
<path d="M10.5 15l2-1.5v5" stroke="currentColor" stroke-width="1.5"
|
|
|
181 |
stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
182 |
</svg>
|
|
|
183 |
</div>
|
|
|
184 |
<!-- end icon -->
|
|
|
185 |
|
|
|
186 |
<h3 class="rui-card-title">Top-notch quality</h3>
|
|
|
187 |
<p class="rui-card-text--md">With supporting text below as a natural....</p>
|
|
|
188 |
<a href="#" target="_blank" class="rui-card-btn-link underline--anim">New features list</a>
|
|
|
189 |
</div>
|
|
|
190 |
</div>
|
|
|
191 |
</div>
|
|
|
192 |
<!-- End item -->
|
|
|
193 |
|
|
|
194 |
<!-- Start item -->
|
|
|
195 |
<div class="rui-card-item col mb-4">
|
|
|
196 |
<div class="rui-card--smpl">
|
|
|
197 |
<div class="rui-card-body">
|
|
|
198 |
|
|
|
199 |
<!-- icon -->
|
|
|
200 |
<div class="rui-rounded-icon rui-rounded-icon--gray mb-3">
|
|
|
201 |
<svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24"
|
|
|
202 |
fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
|
|
|
203 |
<path d="M11 13.6V21H3.6a.6.6 0 01-.6-.6V13h7.4a.6.6 0 01.6.6zM11 21h3M3
|
|
|
204 |
13v-3M6 3H3.6a.6.6 0 00-.6.6V6M14 3h-4M21 10v4M18 3h2.4a.6.6 0 01.6.6V6M18
|
|
|
205 |
21h2.4a.6.6 0 00.6-.6V18M11 10h3v3" stroke="currentColor" stroke-width="1.5"
|
|
|
206 |
stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
207 |
</svg>
|
|
|
208 |
</div>
|
|
|
209 |
<!-- end icon -->
|
|
|
210 |
|
|
|
211 |
<h3 class="rui-card-title">Built from scratch</h3>
|
|
|
212 |
<p class="rui-card-text--md">It is not the Boost-based theme...</p>
|
|
|
213 |
<a href="#" target="_blank" class="rui-card-btn-link underline--anim">Learn more</a>
|
|
|
214 |
</div>
|
|
|
215 |
</div>
|
|
|
216 |
</div>
|
|
|
217 |
<!-- End item -->
|
|
|
218 |
|
|
|
219 |
<!-- Start item -->
|
|
|
220 |
<div class="rui-card-item col mb-4">
|
|
|
221 |
<div class="rui-card--smpl">
|
|
|
222 |
<div class="rui-card-body">
|
|
|
223 |
|
|
|
224 |
<!-- icon -->
|
|
|
225 |
<div class="rui-rounded-icon rui-rounded-icon--gray mb-3">
|
|
|
226 |
<svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24"
|
|
|
227 |
fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
|
|
|
228 |
<path d="M3 11.507a9.493 9.493 0 0018 4.219c-8.507 0-12.726-4.22-12.726-12.726A9.494
|
|
|
229 |
9.494 0 003 11.507z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
|
|
|
230 |
stroke-linejoin="round"></path>
|
|
|
231 |
</svg>
|
|
|
232 |
</div>
|
|
|
233 |
<!-- end icon -->
|
|
|
234 |
|
|
|
235 |
<h3 class="rui-card-title">In-build Dark Mode</h3>
|
|
|
236 |
<p class="rui-card-text--md">Optional in-build dark mode theme. Decide which one you prefer more.</p>
|
|
|
237 |
<a href="#" target="_blank" class="rui-card-btn-link underline--anim">Documentation</a>
|
|
|
238 |
</div>
|
|
|
239 |
</div>
|
|
|
240 |
</div>
|
|
|
241 |
<!-- End item -->
|
|
|
242 |
|
|
|
243 |
</div>';
|
|
|
244 |
$setting = new universe_setting_confightmleditor($name, $title, $description, $default);
|
|
|
245 |
$page->add($setting);
|
|
|
246 |
|
|
|
247 |
$name = 'theme_universe/block6footercontent';
|
|
|
248 |
$title = get_string('blockfootercontent', 'theme_universe');
|
|
|
249 |
$description = get_string('blockfootercontent_desc', 'theme_universe');
|
|
|
250 |
$default = '';
|
|
|
251 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
252 |
$page->add($setting);
|
|
|
253 |
|
|
|
254 |
$name = 'theme_universe/block6customcss';
|
|
|
255 |
$title = get_string('blockcustomcss', 'theme_universe');
|
|
|
256 |
$description = get_string('blockcustomcss_desc', 'theme_universe');
|
|
|
257 |
$default = '';
|
|
|
258 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
259 |
$page->add($setting);
|
|
|
260 |
|
|
|
261 |
$settings->add($page);
|