| 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_universe
 | 
        
           |  |  | 20 |  * @copyright 2023 Marcin Czaja (https://rosea.io)
 | 
        
           |  |  | 21 |  * @license   Commercial https://themeforest.net/licenses
 | 
        
           |  |  | 22 |  *
 | 
        
           |  |  | 23 |  */
 | 
        
           |  |  | 24 |   | 
        
           |  |  | 25 |   | 
        
           |  |  | 26 | defined('MOODLE_INTERNAL') || die();
 | 
        
           |  |  | 27 |   | 
        
           |  |  | 28 | $page = new admin_settingpage('theme_universe_customization', get_string('settingscustomization', 'theme_universe'));
 | 
        
           |  |  | 29 |   | 
        
           |  |  | 30 | $name = 'theme_universe/hgeneral';
 | 
        
           |  |  | 31 | $heading = get_string('hgeneral', 'theme_universe');
 | 
        
           |  |  | 32 | $title = get_string('hgeneral_desc', 'theme_universe');
 | 
        
           |  |  | 33 | $setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
 | 
        
           |  |  | 34 | $page->add($setting);
 | 
        
           |  |  | 35 |   | 
        
           |  |  | 36 | $name = 'theme_universe/colorbodybg';
 | 
        
           |  |  | 37 | $title = get_string('colorbodybg', 'theme_universe');
 | 
        
           |  |  | 38 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 39 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 40 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 41 | $page->add($setting);
 | 
        
           |  |  | 42 |   | 
        
           |  |  | 43 | $name = 'theme_universe/colorborder';
 | 
        
           |  |  | 44 | $title = get_string('colorborder', 'theme_universe');
 | 
        
           |  |  | 45 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 46 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 47 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 48 | $page->add($setting);
 | 
        
           |  |  | 49 |   | 
        
           |  |  | 50 | $name = 'theme_universe/btnborderradius';
 | 
        
           |  |  | 51 | $title = get_string('btnborderradius', 'theme_universe');
 | 
        
           |  |  | 52 | $description = get_string('empty_desc', 'theme_universe');
 | 
        
           |  |  | 53 | $setting = new admin_setting_configtext($name, $title, $description, '');
 | 
        
           |  |  | 54 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 55 | $page->add($setting);
 | 
        
           |  |  | 56 |   | 
        
           |  |  | 57 | $name = 'theme_universe/hcolorstxt';
 | 
        
           |  |  | 58 | $heading = get_string('hcolorstxt', 'theme_universe');
 | 
        
           |  |  | 59 | $title = get_string('hcolorstxt_desc', 'theme_universe');
 | 
        
           |  |  | 60 | $setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
 | 
        
           |  |  | 61 | $page->add($setting);
 | 
        
           |  |  | 62 |   | 
        
           |  |  | 63 | $name = 'theme_universe/colorbody';
 | 
        
           |  |  | 64 | $title = get_string('colorbody', 'theme_universe');
 | 
        
           |  |  | 65 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 66 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 67 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 68 | $page->add($setting);
 | 
        
           |  |  | 69 |   | 
        
           |  |  | 70 | $name = 'theme_universe/colorbodysecondary';
 | 
        
           |  |  | 71 | $title = get_string('colorbodysecondary', 'theme_universe');
 | 
        
           |  |  | 72 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 73 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 74 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 75 | $page->add($setting);
 | 
        
           |  |  | 76 |   | 
        
           |  |  | 77 | $name = 'theme_universe/colorbodylight';
 | 
        
           |  |  | 78 | $title = get_string('colorbodylight', 'theme_universe');
 | 
        
           |  |  | 79 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 80 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 81 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 82 | $page->add($setting);
 | 
        
           |  |  | 83 |   | 
        
           |  |  | 84 | $name = 'theme_universe/colorheadings';
 | 
        
           |  |  | 85 | $title = get_string('colorheadings', 'theme_universe');
 | 
        
           |  |  | 86 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 87 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 88 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 89 | $page->add($setting);
 | 
        
           |  |  | 90 |   | 
        
           |  |  | 91 | $name = 'theme_universe/colorlink';
 | 
        
           |  |  | 92 | $title = get_string('colorlink', 'theme_universe');
 | 
        
           |  |  | 93 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 94 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 95 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 96 | $page->add($setting);
 | 
        
           |  |  | 97 |   | 
        
           |  |  | 98 | $name = 'theme_universe/colorlinkhover';
 | 
        
           |  |  | 99 | $title = get_string('colorlinkhover', 'theme_universe');
 | 
        
           |  |  | 100 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 101 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 102 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 103 | $page->add($setting);
 | 
        
           |  |  | 104 |   | 
        
           |  |  | 105 | $name = 'theme_universe/colorlink';
 | 
        
           |  |  | 106 | $title = get_string('colorlink', 'theme_universe');
 | 
        
           |  |  | 107 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 108 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 109 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 110 | $page->add($setting);
 | 
        
           |  |  | 111 |   | 
        
           |  |  | 112 | $name = 'theme_universe/colorlinkhover';
 | 
        
           |  |  | 113 | $title = get_string('colorlinkhover', 'theme_universe');
 | 
        
           |  |  | 114 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 115 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 116 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 117 | $page->add($setting);
 | 
        
           |  |  | 118 |   | 
        
           |  |  | 119 | $name = 'theme_universe/hcolorsprimary';
 | 
        
           |  |  | 120 | $heading = get_string('hcolorsprimary', 'theme_universe');
 | 
        
           |  |  | 121 | $title = get_string('hcolorsprimary_desc', 'theme_universe');
 | 
        
           |  |  | 122 | $setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
 | 
        
           |  |  | 123 | $page->add($setting);
 | 
        
           |  |  | 124 |   | 
        
           |  |  | 125 | $name = 'theme_universe/colorprimary600';
 | 
        
           |  |  | 126 | $title = get_string('colorprimary600', 'theme_universe');
 | 
        
           |  |  | 127 | $description = get_string('colorprimary_desc', 'theme_universe');
 | 
        
           |  |  | 128 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 129 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 130 | $page->add($setting);
 | 
        
           |  |  | 131 |   | 
        
           |  |  | 132 | $name = 'theme_universe/colorprimary100';
 | 
        
           |  |  | 133 | $title = get_string('colorprimary100', 'theme_universe');
 | 
        
           |  |  | 134 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 135 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 136 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 137 | $page->add($setting);
 | 
        
           |  |  | 138 |   | 
        
           |  |  | 139 | $name = 'theme_universe/colorprimary200';
 | 
        
           |  |  | 140 | $title = get_string('colorprimary200', 'theme_universe');
 | 
        
           |  |  | 141 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 142 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 143 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 144 | $page->add($setting);
 | 
        
           |  |  | 145 |   | 
        
           |  |  | 146 | $name = 'theme_universe/colorprimary300';
 | 
        
           |  |  | 147 | $title = get_string('colorprimary300', 'theme_universe');
 | 
        
           |  |  | 148 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 149 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 150 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 151 | $page->add($setting);
 | 
        
           |  |  | 152 |   | 
        
           |  |  | 153 | $name = 'theme_universe/colorprimary400';
 | 
        
           |  |  | 154 | $title = get_string('colorprimary400', 'theme_universe');
 | 
        
           |  |  | 155 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 156 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 157 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 158 | $page->add($setting);
 | 
        
           |  |  | 159 |   | 
        
           |  |  | 160 | $name = 'theme_universe/colorprimary500';
 | 
        
           |  |  | 161 | $title = get_string('colorprimary500', 'theme_universe');
 | 
        
           |  |  | 162 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 163 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 164 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 165 | $page->add($setting);
 | 
        
           |  |  | 166 |   | 
        
           |  |  | 167 | $name = 'theme_universe/colorprimary700';
 | 
        
           |  |  | 168 | $title = get_string('colorprimary700', 'theme_universe');
 | 
        
           |  |  | 169 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 170 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 171 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 172 | $page->add($setting);
 | 
        
           |  |  | 173 |   | 
        
           |  |  | 174 | $name = 'theme_universe/colorprimary800';
 | 
        
           |  |  | 175 | $title = get_string('colorprimary800', 'theme_universe');
 | 
        
           |  |  | 176 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 177 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 178 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 179 | $page->add($setting);
 | 
        
           |  |  | 180 |   | 
        
           |  |  | 181 | $name = 'theme_universe/colorprimary900';
 | 
        
           |  |  | 182 | $title = get_string('colorprimary900', 'theme_universe');
 | 
        
           |  |  | 183 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 184 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 185 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 186 | $page->add($setting);
 | 
        
           |  |  | 187 |   | 
        
           |  |  | 188 | $name = 'theme_universe/hcolorsgrays';
 | 
        
           |  |  | 189 | $heading = get_string('hcolorsgrays', 'theme_universe');
 | 
        
           |  |  | 190 | $title = get_string('hcolorsgrays_desc', 'theme_universe');
 | 
        
           |  |  | 191 | $setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
 | 
        
           |  |  | 192 | $page->add($setting);
 | 
        
           |  |  | 193 |   | 
        
           |  |  | 194 | $name = 'theme_universe/colorgray100';
 | 
        
           |  |  | 195 | $title = get_string('colorgray100', 'theme_universe');
 | 
        
           |  |  | 196 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 197 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 198 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 199 | $page->add($setting);
 | 
        
           |  |  | 200 |   | 
        
           |  |  | 201 | $name = 'theme_universe/colorgray200';
 | 
        
           |  |  | 202 | $title = get_string('colorgray200', 'theme_universe');
 | 
        
           |  |  | 203 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 204 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 205 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 206 | $page->add($setting);
 | 
        
           |  |  | 207 |   | 
        
           |  |  | 208 | $name = 'theme_universe/colorgray300';
 | 
        
           |  |  | 209 | $title = get_string('colorgray300', 'theme_universe');
 | 
        
           |  |  | 210 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 211 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 212 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 213 | $page->add($setting);
 | 
        
           |  |  | 214 |   | 
        
           |  |  | 215 | $name = 'theme_universe/colorgray400';
 | 
        
           |  |  | 216 | $title = get_string('colorgray400', 'theme_universe');
 | 
        
           |  |  | 217 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 218 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 219 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 220 | $page->add($setting);
 | 
        
           |  |  | 221 |   | 
        
           |  |  | 222 | $name = 'theme_universe/colorgray500';
 | 
        
           |  |  | 223 | $title = get_string('colorgray500', 'theme_universe');
 | 
        
           |  |  | 224 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 225 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 226 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 227 | $page->add($setting);
 | 
        
           |  |  | 228 |   | 
        
           |  |  | 229 | $name = 'theme_universe/colorgray600';
 | 
        
           |  |  | 230 | $title = get_string('colorgray600', 'theme_universe');
 | 
        
           |  |  | 231 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 232 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 233 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 234 | $page->add($setting);
 | 
        
           |  |  | 235 |   | 
        
           |  |  | 236 | $name = 'theme_universe/colorgray700';
 | 
        
           |  |  | 237 | $title = get_string('colorgray700', 'theme_universe');
 | 
        
           |  |  | 238 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 239 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 240 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 241 | $page->add($setting);
 | 
        
           |  |  | 242 |   | 
        
           |  |  | 243 | $name = 'theme_universe/colorgray800';
 | 
        
           |  |  | 244 | $title = get_string('colorgray800', 'theme_universe');
 | 
        
           |  |  | 245 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 246 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 247 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 248 | $page->add($setting);
 | 
        
           |  |  | 249 |   | 
        
           |  |  | 250 | $name = 'theme_universe/colorgray900';
 | 
        
           |  |  | 251 | $title = get_string('colorgray900', 'theme_universe');
 | 
        
           |  |  | 252 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 253 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 254 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 255 | $page->add($setting);
 | 
        
           |  |  | 256 |   | 
        
           |  |  | 257 | $name = 'theme_universe/hdmgeneral';
 | 
        
           |  |  | 258 | $heading = get_string('hdmgeneral', 'theme_universe');
 | 
        
           |  |  | 259 | $setting = new admin_setting_heading($name, $heading, format_text(get_string('hgeneral_desc', 'theme_universe'), FORMAT_MARKDOWN));
 | 
        
           |  |  | 260 | $page->add($setting);
 | 
        
           |  |  | 261 |   | 
        
           |  |  | 262 | $name = 'theme_universe/dmcolorbodybg';
 | 
        
           |  |  | 263 | $title = get_string('dmcolorbodybg', 'theme_universe');
 | 
        
           |  |  | 264 | $description = get_string('dmcolor_desc', 'theme_universe');
 | 
        
           |  |  | 265 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 266 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 267 | $page->add($setting);
 | 
        
           |  |  | 268 |   | 
        
           |  |  | 269 | $name = 'theme_universe/dmcolorborder';
 | 
        
           |  |  | 270 | $title = get_string('dmcolorborder', 'theme_universe');
 | 
        
           |  |  | 271 | $description = get_string('dmcolor_desc', 'theme_universe');
 | 
        
           |  |  | 272 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 273 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 274 | $page->add($setting);
 | 
        
           |  |  | 275 |   | 
        
           |  |  | 276 | $name = 'theme_universe/hdmcolorstxt';
 | 
        
           |  |  | 277 | $heading = get_string('hdmcolorstxt', 'theme_universe');
 | 
        
           |  |  | 278 | $setting = new admin_setting_heading($name, $heading, format_text(get_string('hdmcolorstxt_desc', 'theme_universe'), FORMAT_MARKDOWN));
 | 
        
           |  |  | 279 | $page->add($setting);
 | 
        
           |  |  | 280 |   | 
        
           |  |  | 281 | $name = 'theme_universe/dmcolorbody';
 | 
        
           |  |  | 282 | $title = get_string('dmcolorbody', 'theme_universe');
 | 
        
           |  |  | 283 | $description = get_string('dmcolor_desc', 'theme_universe');
 | 
        
           |  |  | 284 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 285 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 286 | $page->add($setting);
 | 
        
           |  |  | 287 |   | 
        
           |  |  | 288 | $name = 'theme_universe/dmcolorbodysecondary';
 | 
        
           |  |  | 289 | $title = get_string('dmcolorbodysecondary', 'theme_universe');
 | 
        
           |  |  | 290 | $description = get_string('dmcolor_desc', 'theme_universe');
 | 
        
           |  |  | 291 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 292 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 293 | $page->add($setting);
 | 
        
           |  |  | 294 |   | 
        
           |  |  | 295 | $name = 'theme_universe/dmcolorbodylight';
 | 
        
           |  |  | 296 | $title = get_string('dmcolorbodylight', 'theme_universe');
 | 
        
           |  |  | 297 | $description = get_string('dmcolor_desc', 'theme_universe');
 | 
        
           |  |  | 298 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 299 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 300 | $page->add($setting);
 | 
        
           |  |  | 301 |   | 
        
           |  |  | 302 | $name = 'theme_universe/dmcolorheadings';
 | 
        
           |  |  | 303 | $title = get_string('dmcolorheadings', 'theme_universe');
 | 
        
           |  |  | 304 | $description = get_string('dmcolor_desc', 'theme_universe');
 | 
        
           |  |  | 305 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 306 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 307 | $page->add($setting);
 | 
        
           |  |  | 308 |   | 
        
           |  |  | 309 | $name = 'theme_universe/dmcolorgradientheading1';
 | 
        
           |  |  | 310 | $title = get_string('dmcolorgradientheading1', 'theme_universe');
 | 
        
           |  |  | 311 | $description = get_string('dmcolor_desc', 'theme_universe');
 | 
        
           |  |  | 312 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 313 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 314 | $page->add($setting);
 | 
        
           |  |  | 315 |   | 
        
           |  |  | 316 | $name = 'theme_universe/dmcolorgradientheading2';
 | 
        
           |  |  | 317 | $title = get_string('dmcolorgradientheading2', 'theme_universe');
 | 
        
           |  |  | 318 | $description = get_string('dmcolor_desc', 'theme_universe');
 | 
        
           |  |  | 319 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 320 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 321 | $page->add($setting);
 | 
        
           |  |  | 322 |   | 
        
           |  |  | 323 | $name = 'theme_universe/dmcolorlink';
 | 
        
           |  |  | 324 | $title = get_string('dmcolorlink', 'theme_universe');
 | 
        
           |  |  | 325 | $description = get_string('dmcolor_desc', 'theme_universe');
 | 
        
           |  |  | 326 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 327 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 328 | $page->add($setting);
 | 
        
           |  |  | 329 |   | 
        
           |  |  | 330 | $name = 'theme_universe/dmcolorlinkhover';
 | 
        
           |  |  | 331 | $title = get_string('dmcolorlinkhover', 'theme_universe');
 | 
        
           |  |  | 332 | $description = get_string('dmcolor_desc', 'theme_universe');
 | 
        
           |  |  | 333 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 334 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 335 | $page->add($setting);
 | 
        
           |  |  | 336 |   | 
        
           |  |  | 337 | $name = 'theme_universe/hdmcolorsgrays';
 | 
        
           |  |  | 338 | $heading = get_string('hdmcolorsgrays', 'theme_universe');
 | 
        
           |  |  | 339 | $setting = new admin_setting_heading($name, $heading, format_text(get_string('hdmcolorsgrays_desc', 'theme_universe'), FORMAT_MARKDOWN));
 | 
        
           |  |  | 340 | $page->add($setting);
 | 
        
           |  |  | 341 |   | 
        
           |  |  | 342 | $name = 'theme_universe/colorgray100';
 | 
        
           |  |  | 343 | $title = get_string('colorgray100', 'theme_universe');
 | 
        
           |  |  | 344 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 345 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 346 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 347 | $page->add($setting);
 | 
        
           |  |  | 348 |   | 
        
           |  |  | 349 | $name = 'theme_universe/colorgray200';
 | 
        
           |  |  | 350 | $title = get_string('colorgray200', 'theme_universe');
 | 
        
           |  |  | 351 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 352 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 353 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 354 | $page->add($setting);
 | 
        
           |  |  | 355 |   | 
        
           |  |  | 356 | $name = 'theme_universe/colorgray300';
 | 
        
           |  |  | 357 | $title = get_string('colorgray300', 'theme_universe');
 | 
        
           |  |  | 358 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 359 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 360 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 361 | $page->add($setting);
 | 
        
           |  |  | 362 |   | 
        
           |  |  | 363 | $name = 'theme_universe/colorgray400';
 | 
        
           |  |  | 364 | $title = get_string('colorgray400', 'theme_universe');
 | 
        
           |  |  | 365 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 366 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 367 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 368 | $page->add($setting);
 | 
        
           |  |  | 369 |   | 
        
           |  |  | 370 | $name = 'theme_universe/colorgray500';
 | 
        
           |  |  | 371 | $title = get_string('colorgray500', 'theme_universe');
 | 
        
           |  |  | 372 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 373 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 374 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 375 | $page->add($setting);
 | 
        
           |  |  | 376 |   | 
        
           |  |  | 377 | $name = 'theme_universe/colorgray600';
 | 
        
           |  |  | 378 | $title = get_string('colorgray600', 'theme_universe');
 | 
        
           |  |  | 379 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 380 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 381 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 382 | $page->add($setting);
 | 
        
           |  |  | 383 |   | 
        
           |  |  | 384 | $name = 'theme_universe/colorgray700';
 | 
        
           |  |  | 385 | $title = get_string('colorgray700', 'theme_universe');
 | 
        
           |  |  | 386 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 387 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 388 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 389 | $page->add($setting);
 | 
        
           |  |  | 390 |   | 
        
           |  |  | 391 | $name = 'theme_universe/colorgray800';
 | 
        
           |  |  | 392 | $title = get_string('colorgray800', 'theme_universe');
 | 
        
           |  |  | 393 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 394 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 395 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 396 | $page->add($setting);
 | 
        
           |  |  | 397 |   | 
        
           |  |  | 398 | $name = 'theme_universe/colorgray900';
 | 
        
           |  |  | 399 | $title = get_string('colorgray900', 'theme_universe');
 | 
        
           |  |  | 400 | $description = get_string('color_desc', 'theme_universe');
 | 
        
           |  |  | 401 | $setting = new admin_setting_configcolourpicker($name, $title, $description, '');
 | 
        
           |  |  | 402 | $setting->set_updatedcallback('theme_reset_all_caches');
 | 
        
           |  |  | 403 | $page->add($setting);
 | 
        
           |  |  | 404 |   | 
        
           |  |  | 405 | $settings->add($page);
 |