| 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 | 
              | 
        
        
            | 
            | 
           29 | 
           $page = new admin_settingpage('theme_universe_settingscourses', get_string( 'settingscourses', 'theme_universe'));
  | 
        
        
            | 
            | 
           30 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           31 | 
           // Progress Bar.
  | 
        
        
            | 
            | 
           32 | 
           $name = 'theme_universe/courseprogressbar';
  | 
        
        
            | 
            | 
           33 | 
           $title = get_string('courseprogressbar', 'theme_universe');
  | 
        
        
            | 
            | 
           34 | 
           $description = get_string('courseprogressbar_desc', 'theme_universe', $a);
  | 
        
        
            | 
            | 
           35 | 
           $default = 0;
  | 
        
        
            | 
            | 
           36 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           37 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           38 | 
              | 
        
        
            | 
            | 
           39 | 
           $name = 'theme_universe/showcustomfields';
  | 
        
        
            | 
            | 
           40 | 
           $title = get_string('showcustomfields', 'theme_universe');
  | 
        
        
            | 
            | 
           41 | 
           $description = get_string('showcustomfields_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           42 | 
           $default = 1;
  | 
        
        
            | 
            | 
           43 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           44 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           45 | 
              | 
        
        
            | 
            | 
           46 | 
              | 
        
        
            | 
            | 
           47 | 
           $name = 'theme_universe/hcoursemainpage';
  | 
        
        
            | 
            | 
           48 | 
           $heading = get_string('hcoursemainpage', 'theme_universe');
  | 
        
        
            | 
            | 
           49 | 
           $title = get_string('hcoursemainpage_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           50 | 
           $setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
  | 
        
        
            | 
            | 
           51 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           52 | 
              | 
        
        
           | 1 | 
           efrain | 
           53 | 
           // Show/hide course index navigation.
  | 
        
        
            | 
            | 
           54 | 
           $name = 'theme_universe/hidecourseindexnav';
  | 
        
        
            | 
            | 
           55 | 
           $title = get_string('hidecourseindexnav', 'theme_universe');
  | 
        
        
            | 
            | 
           56 | 
           $description = get_string('hidecourseindexnav_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           57 | 
           $default = 0;
  | 
        
        
            | 
            | 
           58 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           59 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           60 | 
              | 
        
        
            | 
            | 
           61 | 
           $name = 'theme_universe/cccteachers';
  | 
        
        
            | 
            | 
           62 | 
           $title = get_string('cccteachers', 'theme_universe');
  | 
        
        
            | 
            | 
           63 | 
           $description = get_string('cccteachers_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           64 | 
           $default = 1;
  | 
        
        
            | 
            | 
           65 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           66 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           67 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           68 | 
           $name = 'theme_universe/ipcoursesummary';
  | 
        
        
            | 
            | 
           69 | 
           $title = get_string('ipcoursesummary', 'theme_universe');
  | 
        
        
            | 
            | 
           70 | 
           $description = get_string('ipcoursesummary_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           71 | 
           $default = 1;
  | 
        
        
           | 1 | 
           efrain | 
           72 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           73 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           74 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           75 | 
           $name = 'theme_universe/ipcoursedetails';
  | 
        
        
            | 
            | 
           76 | 
           $title = get_string('ipcoursedetails', 'theme_universe');
  | 
        
        
            | 
            | 
           77 | 
           $description = get_string('ipcoursedetails_desc', 'theme_universe');
  | 
        
        
           | 1 | 
           efrain | 
           78 | 
           $default = 1;
  | 
        
        
            | 
            | 
           79 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           80 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           81 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           82 | 
           $name = 'theme_universe/ipcoursedates';
  | 
        
        
            | 
            | 
           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);
  | 
        
        
           | 1 | 
           efrain | 
           87 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           88 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           89 | 
           $name = 'theme_universe/ipcourseimage';
  | 
        
        
            | 
            | 
           90 | 
           $title = get_string('ipcourseimage', 'theme_universe');
  | 
        
        
            | 
            | 
           91 | 
           $description = get_string('ipcourseimage_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           92 | 
           $default = 1;
  | 
        
        
            | 
            | 
           93 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
           | 1 | 
           efrain | 
           94 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           95 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           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);
  | 
        
        
           | 1 | 
           efrain | 
           101 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           102 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           103 | 
           $name = 'theme_universe/coursecoverstyle';
  | 
        
        
            | 
            | 
           104 | 
           $title = get_string('coursecoverstyle', 'theme_universe');
  | 
        
        
            | 
            | 
           105 | 
           $description = get_string('coursecoverstyle_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           106 | 
           $options = [];
  | 
        
        
            | 
            | 
           107 | 
           $options['rui-course-cover--style-1'] = 'Style #1';
  | 
        
        
            | 
            | 
           108 | 
           $options['rui-course-cover--style-2'] = 'Style #2';
  | 
        
        
            | 
            | 
           109 | 
           $options['rui-course-cover--style-3'] = 'Style #3';
  | 
        
        
            | 
            | 
           110 | 
           $setting = new admin_setting_configselect($name, $title, $description, 'rui-course-cover--style-1', $options);
  | 
        
        
           | 1 | 
           efrain | 
           111 | 
           $setting->set_updatedcallback('theme_reset_all_caches');
  | 
        
        
            | 
            | 
           112 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           113 | 
              | 
        
        
            | 
            | 
           114 | 
           $name = 'theme_universe/hcoursepagetabs';
  | 
        
        
            | 
            | 
           115 | 
           $heading = get_string('hcoursepagetabs', 'theme_universe');
  | 
        
        
            | 
            | 
           116 | 
           $title = get_string('hcoursepagetabs_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           117 | 
           $setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
  | 
        
        
            | 
            | 
           118 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           119 | 
              | 
        
        
            | 
            | 
           120 | 
           $name = 'theme_universe/coursetablayout';
  | 
        
        
            | 
            | 
           121 | 
           $title = get_string('coursetablayout', 'theme_universe');
  | 
        
        
            | 
            | 
           122 | 
           $description = get_string('coursetablayout_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           123 | 
           $default = 1;
  | 
        
        
            | 
            | 
           124 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           125 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           126 | 
              | 
        
        
            | 
            | 
           127 | 
           $name = 'theme_universe/istab2active';
  | 
        
        
            | 
            | 
           128 | 
           $title = get_string('istab2active', 'theme_universe');
  | 
        
        
            | 
            | 
           129 | 
           $description = get_string('istab2active_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           130 | 
           $default = 0;
  | 
        
        
            | 
            | 
           131 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           132 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           133 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           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);
  | 
        
        
            | 
            | 
           140 | 
              | 
        
        
           | 1 | 
           efrain | 
           141 | 
           // Course Tabs.
  | 
        
        
            | 
            | 
           142 | 
           $name = 'theme_universe/titlecoursetab1';
  | 
        
        
            | 
            | 
           143 | 
           $title = get_string('titlecoursetab1', 'theme_universe');
  | 
        
        
            | 
            | 
           144 | 
           $description = get_string('titlecoursetab1_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           145 | 
           $setting = new admin_setting_configtextarea($name, $title, $description, 'Overview');
  | 
        
        
            | 
            | 
           146 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           147 | 
              | 
        
        
            | 
            | 
           148 | 
           $name = 'theme_universe/coursetab1content';
  | 
        
        
            | 
            | 
           149 | 
           $title = get_string('blockhtmlcontent', 'theme_universe');
  | 
        
        
            | 
            | 
           150 | 
           $description = get_string('blockhtmlcontent_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           151 | 
           $default = '';
  | 
        
        
            | 
            | 
           152 | 
           $setting = new universe_setting_confightmleditor($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           153 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           154 | 
              | 
        
        
            | 
            | 
           155 | 
           $name = 'theme_universe/titlecoursetab2';
  | 
        
        
            | 
            | 
           156 | 
           $title = get_string('titlecoursetab2', 'theme_universe');
  | 
        
        
            | 
            | 
           157 | 
           $description = get_string('titlecoursetab2_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           158 | 
           $setting = new admin_setting_configtextarea($name, $title, $description, 'Course Content');
  | 
        
        
            | 
            | 
           159 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           160 | 
              | 
        
        
            | 
            | 
           161 | 
           $name = 'theme_universe/coursetab2content';
  | 
        
        
            | 
            | 
           162 | 
           $title = get_string('blockhtmlcontent', 'theme_universe');
  | 
        
        
            | 
            | 
           163 | 
           $description = get_string('blockhtmlcontent_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           164 | 
           $default = '';
  | 
        
        
            | 
            | 
           165 | 
           $setting = new universe_setting_confightmleditor($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           166 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           167 | 
              | 
        
        
            | 
            | 
           168 | 
           $name = 'theme_universe/titlecoursetab3';
  | 
        
        
            | 
            | 
           169 | 
           $title = get_string('titlecoursetab3', 'theme_universe');
  | 
        
        
            | 
            | 
           170 | 
           $description = get_string('titlecoursetab3_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           171 | 
           $setting = new admin_setting_configtextarea($name, $title, $description, 'FAQ');
  | 
        
        
            | 
            | 
           172 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           173 | 
              | 
        
        
            | 
            | 
           174 | 
           $name = 'theme_universe/coursetab3content';
  | 
        
        
            | 
            | 
           175 | 
           $title = get_string('blockhtmlcontent', 'theme_universe');
  | 
        
        
            | 
            | 
           176 | 
           $description = get_string('blockhtmlcontent_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           177 | 
           $default = '';
  | 
        
        
            | 
            | 
           178 | 
           $setting = new universe_setting_confightmleditor($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           179 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           180 | 
              | 
        
        
            | 
            | 
           181 | 
           $name = 'theme_universe/titlecoursetab4';
  | 
        
        
            | 
            | 
           182 | 
           $title = get_string('titlecoursetab4', 'theme_universe');
  | 
        
        
            | 
            | 
           183 | 
           $description = get_string('titlecoursetab4_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           184 | 
           $setting = new admin_setting_configtextarea($name, $title, $description, 'Resources');
  | 
        
        
            | 
            | 
           185 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           186 | 
              | 
        
        
            | 
            | 
           187 | 
           $name = 'theme_universe/coursetab4content';
  | 
        
        
            | 
            | 
           188 | 
           $title = get_string('blockhtmlcontent', 'theme_universe');
  | 
        
        
            | 
            | 
           189 | 
           $description = get_string('blockhtmlcontent_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           190 | 
           $default = '';
  | 
        
        
            | 
            | 
           191 | 
           $setting = new universe_setting_confightmleditor($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           192 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           193 | 
              | 
        
        
            | 
            | 
           194 | 
           $name = 'theme_universe/titlecoursetab5';
  | 
        
        
            | 
            | 
           195 | 
           $title = get_string('titlecoursetab5', 'theme_universe');
  | 
        
        
            | 
            | 
           196 | 
           $description = get_string('titlecoursetab5_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           197 | 
           $setting = new admin_setting_configtextarea($name, $title, $description, 'Teacher');
  | 
        
        
            | 
            | 
           198 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           199 | 
              | 
        
        
            | 
            | 
           200 | 
           $name = 'theme_universe/coursetab5content';
  | 
        
        
            | 
            | 
           201 | 
           $title = get_string('blockhtmlcontent', 'theme_universe');
  | 
        
        
            | 
            | 
           202 | 
           $description = get_string('blockhtmlcontent_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           203 | 
           $default = '';
  | 
        
        
            | 
            | 
           204 | 
           $setting = new universe_setting_confightmleditor($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           205 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           206 | 
              | 
        
        
            | 
            | 
           207 | 
           $name = 'theme_universe/cccteacherslist';
  | 
        
        
            | 
            | 
           208 | 
           $title = get_string('cccteacherslist', 'theme_universe');
  | 
        
        
            | 
            | 
           209 | 
           $description = get_string('cccteacherslist_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           210 | 
           $default = 1;
  | 
        
        
            | 
            | 
           211 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           212 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           213 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           214 | 
           $name = 'theme_universe/hcoursecard';
  | 
        
        
            | 
            | 
           215 | 
           $heading = get_string('hcoursecard', 'theme_universe');
  | 
        
        
            | 
            | 
           216 | 
           $title = get_string('hcoursecard_desc', 'theme_universe');
  | 
        
        
           | 1 | 
           efrain | 
           217 | 
           $setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
  | 
        
        
            | 
            | 
           218 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           219 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           220 | 
           $name = 'theme_universe/courselangbadge';
  | 
        
        
            | 
            | 
           221 | 
           $title = get_string('courselangbadge', 'theme_universe');
  | 
        
        
            | 
            | 
           222 | 
           $description = get_string('courselangbadge_desc', 'theme_universe', $a);
  | 
        
        
           | 1 | 
           efrain | 
           223 | 
           $default = 1;
  | 
        
        
            | 
            | 
           224 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           225 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           226 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           227 | 
           $name = 'theme_universe/cccteacheravatar';
  | 
        
        
            | 
            | 
           228 | 
           $title = get_string('cccteacheravatar', 'theme_universe');
  | 
        
        
            | 
            | 
           229 | 
           $description = get_string('cccteacheravatar_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           230 | 
           $default = 0;
  | 
        
        
           | 1 | 
           efrain | 
           231 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           232 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           233 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           234 | 
           $name = 'theme_universe/cccsummary';
  | 
        
        
            | 
            | 
           235 | 
           $title = get_string('cccsummary', 'theme_universe');
  | 
        
        
            | 
            | 
           236 | 
           $description = get_string('cccsummary_desc', 'theme_universe');
  | 
        
        
           | 1 | 
           efrain | 
           237 | 
           $default = 1;
  | 
        
        
            | 
            | 
           238 | 
           $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
  | 
        
        
            | 
            | 
           239 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           240 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           241 | 
           $name = 'theme_universe/coursecarddesclimit';
  | 
        
        
            | 
            | 
           242 | 
           $title = get_string('coursecarddesclimit', 'theme_universe');
  | 
        
        
            | 
            | 
           243 | 
           $description = get_string('coursecarddesclimit_desc', 'theme_universe');
  | 
        
        
            | 
            | 
           244 | 
           $setting = new admin_setting_configtext($name, $title, $description, '100');
  | 
        
        
           | 1 | 
           efrain | 
           245 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           246 | 
              | 
        
        
            | 
            | 
           247 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           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);
  | 
        
        
           | 1 | 
           efrain | 
           253 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           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, '');
  | 
        
        
           | 1 | 
           efrain | 
           258 | 
           $setting->set_updatedcallback('theme_reset_all_caches');
  | 
        
        
            | 
            | 
           259 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           260 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           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');
  | 
        
        
           | 1 | 
           efrain | 
           266 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           267 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           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');
  | 
        
        
           | 1 | 
           efrain | 
           273 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           274 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           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');
  | 
        
        
           | 1 | 
           efrain | 
           280 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           281 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           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');
  | 
        
        
           | 1 | 
           efrain | 
           287 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           288 | 
              | 
        
        
           | 1441 | 
           ariadna | 
           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');
  | 
        
        
           | 1 | 
           efrain | 
           294 | 
           $page->add($setting);
  | 
        
        
            | 
            | 
           295 | 
              | 
        
        
            | 
            | 
           296 | 
           $settings->add($page);
  |