| Línea 24... |
Línea 24... |
| 24 |
|
24 |
|
| Línea 25... |
Línea 25... |
| 25 |
|
25 |
|
| 26 |
defined('MOODLE_INTERNAL') || die();
|
- |
|
| 27 |
|
- |
|
| 28 |
$page = new admin_settingpage('theme_universe_customization', get_string('settingscustomization', 'theme_universe'));
|
- |
|
| 29 |
$name = 'theme_universe/hgooglefont';
|
- |
|
| 30 |
$heading = get_string('hgooglefont', 'theme_universe');
|
- |
|
| 31 |
$title = get_string('hgooglefont_desc', 'theme_universe');
|
- |
|
| 32 |
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
|
- |
|
| 33 |
$page->add($setting);
|
- |
|
| 34 |
|
- |
|
| 35 |
// Google Font.
|
- |
|
| 36 |
$name = 'theme_universe/googlefonturl';
|
- |
|
| 37 |
$title = get_string('googlefonturl', 'theme_universe');
|
- |
|
| 38 |
$description = get_string('googlefonturl_desc', 'theme_universe');
|
- |
|
| 39 |
$default = 'https://fonts.googleapis.com/css2?family=Manrope:wght@400,500,700&display=swap';
|
- |
|
| 40 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
- |
|
| 41 |
$page->add($setting);
|
- |
|
| 42 |
|
- |
|
| 43 |
$name = 'theme_universe/fontheadings';
|
- |
|
| 44 |
$title = get_string('fontheadings', 'theme_universe');
|
- |
|
| 45 |
$description = get_string('fontheadings_desc', 'theme_universe');
|
- |
|
| 46 |
$default = "'Manrope', Arial, sans-serif";
|
- |
|
| 47 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
- |
|
| 48 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
- |
|
| 49 |
$page->add($setting);
|
- |
|
| 50 |
|
- |
|
| 51 |
$name = 'theme_universe/fontweightheadings';
|
- |
|
| 52 |
$title = get_string('fontweightheadings', 'theme_universe');
|
- |
|
| 53 |
$description = get_string('fontweightheadings_desc', 'theme_universe');
|
- |
|
| 54 |
$default = '700';
|
- |
|
| 55 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
- |
|
| 56 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
- |
|
| 57 |
$page->add($setting);
|
- |
|
| 58 |
|
- |
|
| 59 |
$name = 'theme_universe/fontbody';
|
- |
|
| 60 |
$title = get_string('fontbody', 'theme_universe');
|
- |
|
| 61 |
$description = get_string('fontbody_desc', 'theme_universe');
|
- |
|
| 62 |
$default = "'Inter', Arial, sans-serif";
|
- |
|
| 63 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
- |
|
| 64 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
- |
|
| 65 |
$page->add($setting);
|
- |
|
| 66 |
|
- |
|
| 67 |
$name = 'theme_universe/fontweightregular';
|
- |
|
| 68 |
$title = get_string('fontweightregular', 'theme_universe');
|
- |
|
| 69 |
$description = get_string('fontweightregular_desc', 'theme_universe');
|
- |
|
| 70 |
$default = '400';
|
- |
|
| 71 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
- |
|
| 72 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
- |
|
| 73 |
$page->add($setting);
|
- |
|
| 74 |
|
- |
|
| 75 |
$name = 'theme_universe/fontweightmedium';
|
- |
|
| 76 |
$title = get_string('fontweightmedium', 'theme_universe');
|
- |
|
| 77 |
$description = get_string('fontweightmedium_desc', 'theme_universe');
|
- |
|
| 78 |
$default = '500';
|
- |
|
| 79 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
- |
|
| 80 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
- |
|
| 81 |
$page->add($setting);
|
- |
|
| 82 |
|
- |
|
| 83 |
$name = 'theme_universe/fontweightbold';
|
- |
|
| 84 |
$title = get_string('fontweightbold', 'theme_universe');
|
- |
|
| 85 |
$description = get_string('fontweightbold_desc', 'theme_universe');
|
- |
|
| 86 |
$default = '700';
|
- |
|
| Línea 87... |
Línea 26... |
| 87 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
26 |
defined('MOODLE_INTERNAL') || die();
|
| 88 |
$setting->set_updatedcallback('theme_reset_all_caches');
|
27 |
|
| 89 |
$page->add($setting);
|
28 |
$page = new admin_settingpage('theme_universe_customization', get_string('settingscustomization', 'theme_universe'));
|
| 90 |
|
29 |
|