AutorÃa | Ultima modificación | Ver Log |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
*
* @package theme_monocolor
* @copyright 2022 - 2023 Marcin Czaja (https://rosea.io)
* @license Commercial https://themeforest.net/licenses
*
*/
defined('MOODLE_INTERNAL') || die();
$page = new admin_settingpage('theme_monocolor_customization', get_string('settingscustomization', 'theme_monocolor'));
$name = 'theme_monocolor/hgooglefont';
$heading = get_string('hgooglefont', 'theme_monocolor');
$title = get_string('hgooglefont_desc', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
$page->add($setting);
// Google Font.
$name = 'theme_monocolor/googlefonturl';
$title = get_string('googlefonturl', 'theme_monocolor');
$description = get_string('googlefonturl_desc', 'theme_monocolor');
$default = 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Space+Grotesk:wght@500&display=swap';
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/fontheadings';
$title = get_string('fontheadings', 'theme_monocolor');
$description = get_string('fontheadings_desc', 'theme_monocolor');
$default = "'Space Grotesk', Arial, sans-serif";
$setting = new admin_setting_configtext($name, $title, $description, $default);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/fontweightheadings';
$title = get_string('fontweightheadings', 'theme_monocolor');
$description = get_string('fontweightheadings_desc', 'theme_monocolor');
$default = '500';
$setting = new admin_setting_configtext($name, $title, $description, $default);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/fontbody';
$title = get_string('fontbody', 'theme_monocolor');
$description = get_string('fontbody_desc', 'theme_monocolor');
$default = "'Inter', Arial, sans-serif";
$setting = new admin_setting_configtext($name, $title, $description, $default);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/fontweightregular';
$title = get_string('fontweightregular', 'theme_monocolor');
$description = get_string('fontweightregular_desc', 'theme_monocolor');
$default = '400';
$setting = new admin_setting_configtext($name, $title, $description, $default);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/fontweightmedium';
$title = get_string('fontweightmedium', 'theme_monocolor');
$description = get_string('fontweightmedium_desc', 'theme_monocolor');
$default = '500';
$setting = new admin_setting_configtext($name, $title, $description, $default);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/fontweightbold';
$title = get_string('fontweightbold', 'theme_monocolor');
$description = get_string('fontweightbold_desc', 'theme_monocolor');
$default = '700';
$setting = new admin_setting_configtext($name, $title, $description, $default);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/hgeneral';
$heading = get_string('hgeneral', 'theme_monocolor');
$title = get_string('hgeneral_desc', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
$page->add($setting);
$name = 'theme_monocolor/colorbodybg';
$title = get_string('colorbodybg', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorborder';
$title = get_string('colorborder', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/btnborderradius';
$title = get_string('btnborderradius', 'theme_monocolor');
$description = get_string('empty_desc', 'theme_monocolor');
$setting = new admin_setting_configtext($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/hcolorstxt';
$heading = get_string('hcolorstxt', 'theme_monocolor');
$title = get_string('hcolorstxt_desc', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
$page->add($setting);
$name = 'theme_monocolor/colorbody';
$title = get_string('colorbody', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorbodysecondary';
$title = get_string('colorbodysecondary', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorbodylight';
$title = get_string('colorbodylight', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorheadings';
$title = get_string('colorheadings', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorgradientheading1';
$title = get_string('colorgradientheading1', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorgradientheading2';
$title = get_string('colorgradientheading2', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorlink';
$title = get_string('colorlink', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorlinkhover';
$title = get_string('colorlinkhover', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/hcolorsprimary';
$heading = get_string('hcolorsprimary', 'theme_monocolor');
$title = get_string('hcolorsprimary_desc', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
$page->add($setting);
$name = 'theme_monocolor/colorprimary600';
$title = get_string('colorprimary600', 'theme_monocolor');
$description = get_string('colorprimary_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorprimary100';
$title = get_string('colorprimary100', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorprimary200';
$title = get_string('colorprimary200', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorprimary300';
$title = get_string('colorprimary300', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorprimary400';
$title = get_string('colorprimary400', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorprimary500';
$title = get_string('colorprimary500', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorprimary700';
$title = get_string('colorprimary700', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorprimary800';
$title = get_string('colorprimary800', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorprimary900';
$title = get_string('colorprimary900', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/hcolorsgrays';
$heading = get_string('hcolorsgrays', 'theme_monocolor');
$title = get_string('hcolorsgrays_desc', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
$page->add($setting);
$name = 'theme_monocolor/colorgray100';
$title = get_string('colorgray100', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorgray200';
$title = get_string('colorgray200', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorgray300';
$title = get_string('colorgray300', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorgray400';
$title = get_string('colorgray400', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorgray500';
$title = get_string('colorgray500', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorgray600';
$title = get_string('colorgray600', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorgray700';
$title = get_string('colorgray700', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorgray800';
$title = get_string('colorgray800', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/colorgray900';
$title = get_string('colorgray900', 'theme_monocolor');
$description = get_string('color_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/hdmgeneral';
$heading = get_string('hdmgeneral', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text(get_string('hgeneral_desc', 'theme_monocolor'), FORMAT_MARKDOWN));
$page->add($setting);
$name = 'theme_monocolor/dmcolorbodybg';
$title = get_string('dmcolorbodybg', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorborder';
$title = get_string('dmcolorborder', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/hdmcolorstxt';
$heading = get_string('hdmcolorstxt', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text(get_string('hdmcolorstxt_desc', 'theme_monocolor'), FORMAT_MARKDOWN));
$page->add($setting);
$name = 'theme_monocolor/dmcolorbody';
$title = get_string('dmcolorbody', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorbodysecondary';
$title = get_string('dmcolorbodysecondary', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorbodylight';
$title = get_string('dmcolorbodylight', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorheadings';
$title = get_string('dmcolorheadings', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorgradientheading1';
$title = get_string('dmcolorgradientheading1', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorgradientheading2';
$title = get_string('dmcolorgradientheading2', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorlink';
$title = get_string('dmcolorlink', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorlinkhover';
$title = get_string('dmcolorlinkhover', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/hdmcolorsgrays';
$heading = get_string('hdmcolorsgrays', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text(get_string('hdmcolorsgrays_desc', 'theme_monocolor'), FORMAT_MARKDOWN));
$page->add($setting);
$name = 'theme_monocolor/dmcolorgray100';
$title = get_string('dmcolorgray100', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorgray200';
$title = get_string('dmcolorgray200', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorgray300';
$title = get_string('dmcolorgray300', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorgray400';
$title = get_string('dmcolorgray400', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorgray500';
$title = get_string('dmcolorgray500', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorgray600';
$title = get_string('dmcolorgray600', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorgray700';
$title = get_string('dmcolorgray700', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorgray800';
$title = get_string('dmcolorgray800', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/dmcolorgray900';
$title = get_string('dmcolorgray900', 'theme_monocolor');
$description = get_string('dmcolor_desc', 'theme_monocolor');
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$settings->add($page);