| Línea 26... |
Línea 26... |
| 26 |
defined('MOODLE_INTERNAL') || die();
|
26 |
defined('MOODLE_INTERNAL') || die();
|
| Línea 27... |
Línea 27... |
| 27 |
|
27 |
|
| Línea 28... |
Línea -... |
| 28 |
|
- |
|
| 29 |
$page = new admin_settingpage('theme_universe_settingscourses', get_string( 'settingscourses', 'theme_universe'));
|
- |
|
| 30 |
|
- |
|
| 31 |
// Show/hide course index navigation.
|
- |
|
| 32 |
$name = 'theme_universe/hidecourseindexnav';
|
- |
|
| 33 |
$title = get_string('hidecourseindexnav', 'theme_universe');
|
- |
|
| 34 |
$description = get_string('hidecourseindexnav_desc', 'theme_universe');
|
- |
|
| 35 |
$default = 0;
|
- |
|
| 36 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
- |
|
| 37 |
$page->add($setting);
|
- |
|
| 38 |
|
- |
|
| 39 |
$name = 'theme_universe/courselistview';
|
- |
|
| 40 |
$title = get_string('courselistview', 'theme_universe');
|
- |
|
| 41 |
$description = get_string('courselistview_desc', 'theme_universe');
|
- |
|
| 42 |
$default = 0;
|
- |
|
| 43 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
- |
|
| 44 |
$page->add($setting);
|
- |
|
| 45 |
|
- |
|
| 46 |
$name = 'theme_universe/cccteachers';
|
- |
|
| 47 |
$title = get_string('cccteachers', 'theme_universe');
|
- |
|
| 48 |
$description = get_string('cccteachers_desc', 'theme_universe');
|
- |
|
| 49 |
$default = 1;
|
- |
|
| 50 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
28 |
|
| 51 |
$page->add($setting);
|
29 |
$page = new admin_settingpage('theme_universe_settingscourses', get_string( 'settingscourses', 'theme_universe'));
|
| 52 |
|
30 |
|
| 53 |
// Progress Bar.
|
31 |
// Progress Bar.
|
| 54 |
$name = 'theme_universe/courseprogressbar';
|
32 |
$name = 'theme_universe/courseprogressbar';
|
| Línea 63... |
Línea 41... |
| 63 |
$description = get_string('showcustomfields_desc', 'theme_universe');
|
41 |
$description = get_string('showcustomfields_desc', 'theme_universe');
|
| 64 |
$default = 1;
|
42 |
$default = 1;
|
| 65 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
43 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| 66 |
$page->add($setting);
|
44 |
$page->add($setting);
|
| Línea -... |
Línea 45... |
| - |
|
45 |
|
| 67 |
|
46 |
|
| 68 |
$name = 'theme_universe/hactivityicons';
|
47 |
$name = 'theme_universe/hcoursemainpage';
|
| 69 |
$heading = get_string('hactivityicons', 'theme_universe');
|
48 |
$heading = get_string('hcoursemainpage', 'theme_universe');
|
| 70 |
$title = get_string('hactivityicons_desc', 'theme_universe');
|
49 |
$title = get_string('hcoursemainpage_desc', 'theme_universe');
|
| 71 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
50 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
| Línea -... |
Línea 51... |
| - |
|
51 |
$page->add($setting);
|
| 72 |
$page->add($setting);
|
52 |
|
| 73 |
|
53 |
// Show/hide course index navigation.
|
| 74 |
$name = 'theme_universe/iconadministration';
|
54 |
$name = 'theme_universe/hidecourseindexnav';
|
| - |
|
55 |
$title = get_string('hidecourseindexnav', 'theme_universe');
|
| 75 |
$title = get_string('iconadministration', 'theme_universe');
|
56 |
$description = get_string('hidecourseindexnav_desc', 'theme_universe');
|
| 76 |
$description = get_string('color_desc', 'theme_universe');
|
- |
|
| 77 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
57 |
$default = 0;
|
| Línea 78... |
Línea 58... |
| 78 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
58 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| 79 |
$page->add($setting);
|
59 |
$page->add($setting);
|
| 80 |
|
60 |
|
| - |
|
61 |
$name = 'theme_universe/cccteachers';
|
| 81 |
$name = 'theme_universe/iconassessment';
|
62 |
$title = get_string('cccteachers', 'theme_universe');
|
| 82 |
$title = get_string('iconassessment', 'theme_universe');
|
- |
|
| 83 |
$description = get_string('color_desc', 'theme_universe');
|
63 |
$description = get_string('cccteachers_desc', 'theme_universe');
|
| Línea 84... |
Línea 64... |
| 84 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
64 |
$default = 1;
|
| 85 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
65 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| 86 |
$page->add($setting);
|
66 |
$page->add($setting);
|
| - |
|
67 |
|
| 87 |
|
68 |
$name = 'theme_universe/ipcoursesummary';
|
| 88 |
$name = 'theme_universe/iconcolleboration';
|
- |
|
| 89 |
$title = get_string('iconcolleboration', 'theme_universe');
|
69 |
$title = get_string('ipcoursesummary', 'theme_universe');
|
| Línea 90... |
Línea 70... |
| 90 |
$description = get_string('color_desc', 'theme_universe');
|
70 |
$description = get_string('ipcoursesummary_desc', 'theme_universe');
|
| 91 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
71 |
$default = 1;
|
| 92 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
72 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| - |
|
73 |
$page->add($setting);
|
| 93 |
$page->add($setting);
|
74 |
|
| 94 |
|
- |
|
| 95 |
$name = 'theme_universe/iconcommunication';
|
75 |
$name = 'theme_universe/ipcoursedetails';
|
| Línea 96... |
Línea 76... |
| 96 |
$title = get_string('iconcommunication', 'theme_universe');
|
76 |
$title = get_string('ipcoursedetails', 'theme_universe');
|
| 97 |
$description = get_string('color_desc', 'theme_universe');
|
77 |
$description = get_string('ipcoursedetails_desc', 'theme_universe');
|
| 98 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
78 |
$default = 1;
|
| - |
|
79 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| 99 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
80 |
$page->add($setting);
|
| 100 |
$page->add($setting);
|
- |
|
| 101 |
|
81 |
|
| Línea 102... |
Línea 82... |
| 102 |
$name = 'theme_universe/iconcontent';
|
82 |
$name = 'theme_universe/ipcoursedates';
|
| 103 |
$title = get_string('iconcontent', 'theme_universe');
|
83 |
$title = get_string('ipcoursedates', 'theme_universe');
|
| - |
|
84 |
$description = get_string('ipcoursedates_desc', 'theme_universe');
|
| - |
|
85 |
$default = 1;
|
| - |
|
86 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| - |
|
87 |
$page->add($setting);
|
| - |
|
88 |
|
| - |
|
89 |
$name = 'theme_universe/ipcourseimage';
|
| - |
|
90 |
$title = get_string('ipcourseimage', 'theme_universe');
|
| 104 |
$description = get_string('color_desc', 'theme_universe');
|
91 |
$description = get_string('ipcourseimage_desc', 'theme_universe');
|
| - |
|
92 |
$default = 1;
|
| 105 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
93 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| - |
|
94 |
$page->add($setting);
|
| - |
|
95 |
|
| - |
|
96 |
$name = 'theme_universe/courseimagefw';
|
| - |
|
97 |
$title = get_string('courseimagefw', 'theme_universe');
|
| - |
|
98 |
$description = get_string('courseimagefw_desc', 'theme_universe');
|
| - |
|
99 |
$default = 0;
|
| - |
|
100 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| - |
|
101 |
$page->add($setting);
|
| - |
|
102 |
|
| - |
|
103 |
$name = 'theme_universe/coursecoverstyle';
|
| 106 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
104 |
$title = get_string('coursecoverstyle', 'theme_universe');
|
| 107 |
$page->add($setting);
|
105 |
$description = get_string('coursecoverstyle_desc', 'theme_universe');
|
| Línea 108... |
Línea 106... |
| 108 |
|
106 |
$options = [];
|
| 109 |
$name = 'theme_universe/iconinterface';
|
107 |
$options['rui-course-cover--style-1'] = 'Style #1';
|
| Línea 131... |
Línea 129... |
| 131 |
$description = get_string('istab2active_desc', 'theme_universe');
|
129 |
$description = get_string('istab2active_desc', 'theme_universe');
|
| 132 |
$default = 0;
|
130 |
$default = 0;
|
| 133 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
131 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| 134 |
$page->add($setting);
|
132 |
$page->add($setting);
|
| Línea -... |
Línea 133... |
| - |
|
133 |
|
| - |
|
134 |
$name = 'theme_universe/disabletab1';
|
| - |
|
135 |
$title = get_string('disabletab1', 'theme_universe');
|
| - |
|
136 |
$description = get_string('disabletab1_desc', 'theme_universe');
|
| - |
|
137 |
$default = 0;
|
| - |
|
138 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| - |
|
139 |
$page->add($setting);
|
| 135 |
|
140 |
|
| 136 |
// Course Tabs.
|
141 |
// Course Tabs.
|
| 137 |
$name = 'theme_universe/titlecoursetab1';
|
142 |
$name = 'theme_universe/titlecoursetab1';
|
| 138 |
$title = get_string('titlecoursetab1', 'theme_universe');
|
143 |
$title = get_string('titlecoursetab1', 'theme_universe');
|
| 139 |
$description = get_string('titlecoursetab1_desc', 'theme_universe');
|
144 |
$description = get_string('titlecoursetab1_desc', 'theme_universe');
|
| Línea 204... |
Línea 209... |
| 204 |
$description = get_string('cccteacherslist_desc', 'theme_universe');
|
209 |
$description = get_string('cccteacherslist_desc', 'theme_universe');
|
| 205 |
$default = 1;
|
210 |
$default = 1;
|
| 206 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
211 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| 207 |
$page->add($setting);
|
212 |
$page->add($setting);
|
| Línea 208... |
Línea 213... |
| 208 |
|
213 |
|
| 209 |
$name = 'theme_universe/hcoursemainpage';
|
214 |
$name = 'theme_universe/hcoursecard';
|
| 210 |
$heading = get_string('hcoursemainpage', 'theme_universe');
|
215 |
$heading = get_string('hcoursecard', 'theme_universe');
|
| 211 |
$title = get_string('hcoursemainpage_desc', 'theme_universe');
|
216 |
$title = get_string('hcoursecard_desc', 'theme_universe');
|
| 212 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
217 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
| Línea 213... |
Línea -... |
| 213 |
$page->add($setting);
|
- |
|
| 214 |
|
- |
|
| 215 |
$name = 'theme_universe/ipcoursesummary';
|
- |
|
| 216 |
$title = get_string('ipcoursesummary', 'theme_universe');
|
- |
|
| 217 |
$description = get_string('ipcoursesummary_desc', 'theme_universe');
|
- |
|
| 218 |
$default = 1;
|
- |
|
| 219 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
- |
|
| 220 |
$page->add($setting);
|
- |
|
| 221 |
|
- |
|
| 222 |
$name = 'theme_universe/ipcoursedetails';
|
- |
|
| 223 |
$title = get_string('ipcoursedetails', 'theme_universe');
|
- |
|
| 224 |
$description = get_string('ipcoursedetails_desc', 'theme_universe');
|
- |
|
| 225 |
$default = 1;
|
- |
|
| 226 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
- |
|
| 227 |
$page->add($setting);
|
- |
|
| 228 |
|
- |
|
| 229 |
$name = 'theme_universe/ipcourseimage';
|
- |
|
| 230 |
$title = get_string('ipcourseimage', 'theme_universe');
|
- |
|
| 231 |
$description = get_string('ipcourseimage_desc', 'theme_universe');
|
- |
|
| 232 |
$default = 1;
|
- |
|
| 233 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
- |
|
| 234 |
$page->add($setting);
|
- |
|
| 235 |
|
- |
|
| 236 |
$name = 'theme_universe/courseimagefw';
|
- |
|
| 237 |
$title = get_string('courseimagefw', 'theme_universe');
|
- |
|
| 238 |
$description = get_string('courseimagefw_desc', 'theme_universe');
|
- |
|
| 239 |
$default = 0;
|
- |
|
| 240 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
- |
|
| 241 |
$page->add($setting);
|
- |
|
| 242 |
|
- |
|
| 243 |
// $name = 'theme_universe/coursedescwidth';
|
- |
|
| 244 |
// $title = get_string('coursedescwidth', 'theme_universe');
|
- |
|
| 245 |
// $description = get_string('coursedescwidth_desc', 'theme_universe');
|
- |
|
| 246 |
// $default = "700px";
|
- |
|
| 247 |
// $setting = new admin_setting_configtext($name, $title, $description, $default);
|
- |
|
| 248 |
// $setting->set_updatedcallback('theme_reset_all_caches');
|
- |
|
| 249 |
// $page->add($setting);
|
- |
|
| 250 |
|
- |
|
| 251 |
// $name = 'theme_universe/incoursedescwidth';
|
- |
|
| 252 |
// $title = get_string('incoursedescwidth', 'theme_universe');
|
- |
|
| 253 |
// $description = get_string('incoursedescwidth_desc', 'theme_universe');
|
- |
|
| 254 |
// $default = "700px";
|
- |
|
| 255 |
// $setting = new admin_setting_configtext($name, $title, $description, $default);
|
- |
|
| 256 |
// $setting->set_updatedcallback('theme_reset_all_caches');
|
- |
|
| 257 |
// $page->add($setting);
|
- |
|
| 258 |
|
- |
|
| 259 |
$name = 'theme_universe/coursecoverstyle';
|
- |
|
| 260 |
$title = get_string('coursecoverstyle', 'theme_universe');
|
- |
|
| 261 |
$description = get_string('coursecoverstyle_desc', 'theme_universe');
|
- |
|
| 262 |
$options = [];
|
- |
|
| 263 |
$options['rui-course-cover--style-1'] = 'Style #1';
|
- |
|
| 264 |
$options['rui-course-cover--style-2'] = 'Style #2';
|
- |
|
| 265 |
$options['rui-course-cover--style-3'] = 'Style #3';
|
- |
|
| 266 |
$setting = new admin_setting_configselect($name, $title, $description, 'rui-course-cover--style-1', $options);
|
- |
|
| 267 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
- |
|
| 268 |
$page->add($setting);
|
218 |
$page->add($setting);
|
| 269 |
|
219 |
|
| 270 |
$name = 'theme_universe/courselangbadge';
|
220 |
$name = 'theme_universe/courselangbadge';
|
| 271 |
$title = get_string('courselangbadge', 'theme_universe');
|
221 |
$title = get_string('courselangbadge', 'theme_universe');
|
| 272 |
$description = get_string('courselangbadge_desc', 'theme_universe', $a);
|
222 |
$description = get_string('courselangbadge_desc', 'theme_universe', $a);
|
| 273 |
$default = 1;
|
223 |
$default = 1;
|
| Línea 274... |
Línea -... |
| 274 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
- |
|
| 275 |
$page->add($setting);
|
- |
|
| 276 |
|
- |
|
| 277 |
$name = 'theme_universe/hcoursecard';
|
- |
|
| 278 |
$heading = get_string('hcoursecard', 'theme_universe');
|
- |
|
| 279 |
$title = get_string('hcoursecard_desc', 'theme_universe');
|
- |
|
| 280 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
224 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
| 281 |
$page->add($setting);
|
225 |
$page->add($setting);
|
| 282 |
|
226 |
|
| 283 |
$name = 'theme_universe/cccteacheravatar';
|
227 |
$name = 'theme_universe/cccteacheravatar';
|
| 284 |
$title = get_string('cccteacheravatar', 'theme_universe');
|
228 |
$title = get_string('cccteacheravatar', 'theme_universe');
|
| Línea 298... |
Línea 242... |
| 298 |
$title = get_string('coursecarddesclimit', 'theme_universe');
|
242 |
$title = get_string('coursecarddesclimit', 'theme_universe');
|
| 299 |
$description = get_string('coursecarddesclimit_desc', 'theme_universe');
|
243 |
$description = get_string('coursecarddesclimit_desc', 'theme_universe');
|
| 300 |
$setting = new admin_setting_configtext($name, $title, $description, '100');
|
244 |
$setting = new admin_setting_configtext($name, $title, $description, '100');
|
| 301 |
$page->add($setting);
|
245 |
$page->add($setting);
|
| Línea -... |
Línea 246... |
| - |
|
246 |
|
| - |
|
247 |
|
| - |
|
248 |
$name = 'theme_universe/hactivityicons';
|
| - |
|
249 |
$heading = get_string('hactivityicons', 'theme_universe');
|
| - |
|
250 |
$title = get_string('hactivityicons_desc', 'theme_universe');
|
| - |
|
251 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
| - |
|
252 |
$page->add($setting);
|
| - |
|
253 |
|
| - |
|
254 |
$name = 'theme_universe/iconadministration';
|
| - |
|
255 |
$title = get_string('iconadministration', 'theme_universe');
|
| - |
|
256 |
$description = get_string('color_desc', 'theme_universe');
|
| - |
|
257 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
| - |
|
258 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
| - |
|
259 |
$page->add($setting);
|
| - |
|
260 |
|
| - |
|
261 |
$name = 'theme_universe/iconassessment';
|
| - |
|
262 |
$title = get_string('iconassessment', 'theme_universe');
|
| - |
|
263 |
$description = get_string('color_desc', 'theme_universe');
|
| - |
|
264 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
| - |
|
265 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
| - |
|
266 |
$page->add($setting);
|
| - |
|
267 |
|
| - |
|
268 |
$name = 'theme_universe/iconcolleboration';
|
| - |
|
269 |
$title = get_string('iconcolleboration', 'theme_universe');
|
| - |
|
270 |
$description = get_string('color_desc', 'theme_universe');
|
| - |
|
271 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
| - |
|
272 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
| - |
|
273 |
$page->add($setting);
|
| - |
|
274 |
|
| - |
|
275 |
$name = 'theme_universe/iconcommunication';
|
| - |
|
276 |
$title = get_string('iconcommunication', 'theme_universe');
|
| - |
|
277 |
$description = get_string('color_desc', 'theme_universe');
|
| - |
|
278 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
| - |
|
279 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
| - |
|
280 |
$page->add($setting);
|
| - |
|
281 |
|
| - |
|
282 |
$name = 'theme_universe/iconcontent';
|
| - |
|
283 |
$title = get_string('iconcontent', 'theme_universe');
|
| - |
|
284 |
$description = get_string('color_desc', 'theme_universe');
|
| - |
|
285 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
| - |
|
286 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
| - |
|
287 |
$page->add($setting);
|
| - |
|
288 |
|
| - |
|
289 |
$name = 'theme_universe/iconinterface';
|
| - |
|
290 |
$title = get_string('iconinterface', 'theme_universe');
|
| - |
|
291 |
$description = get_string('color_desc', 'theme_universe');
|
| - |
|
292 |
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
|
| - |
|
293 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
| - |
|
294 |
$page->add($setting);
|
| 302 |
|
295 |
|