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_settingscourses', get_string( 'settingscourses', 'theme_monocolor'));
// Show/hide course index navigation.
$name = 'theme_monocolor/hidecourseindexnav';
$title = get_string('hidecourseindexnav', 'theme_monocolor');
$description = get_string('hidecourseindexnav_desc', 'theme_monocolor');
$default = 0;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/courselistview';
$title = get_string('courselistview', 'theme_monocolor');
$description = get_string('courselistview_desc', 'theme_monocolor');
$default = 0;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/courselangbadge';
$title = get_string('courselangbadge', 'theme_monocolor');
$description = get_string('courselangbadge_desc', 'theme_monocolor');
$default = 1;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/hcoursemainpage';
$heading = get_string('hcoursemainpage', 'theme_monocolor');
$title = get_string('hcoursemainpage_desc', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
$page->add($setting);
$name = 'theme_monocolor/cccteachers';
$title = get_string('cccteachers', 'theme_monocolor');
$description = get_string('cccteachers_desc', 'theme_monocolor');
$default = 1;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/ipcoursesummary';
$title = get_string('ipcoursesummary', 'theme_monocolor');
$description = get_string('ipcoursesummary_desc', 'theme_monocolor');
$default = 1;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/ipcoursedetails';
$title = get_string('ipcoursedetails', 'theme_monocolor');
$description = get_string('ipcoursedetails_desc', 'theme_monocolor');
$default = 1;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/ipcourseimage';
$title = get_string('ipcourseimage', 'theme_monocolor');
$description = get_string('ipcourseimage_desc', 'theme_monocolor');
$default = 1;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/coursedescwidth';
$title = get_string('coursedescwidth', 'theme_monocolor');
$description = get_string('coursedescwidth_desc', 'theme_monocolor');
$default = "700px";
$setting = new admin_setting_configtext($name, $title, $description, $default);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
$name = 'theme_monocolor/incoursedescwidth';
$title = get_string('incoursedescwidth', 'theme_monocolor');
$description = get_string('incoursedescwidth_desc', 'theme_monocolor');
$default = "700px";
$setting = new admin_setting_configtext($name, $title, $description, $default);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
// Progress Bar.
$name = 'theme_monocolor/courseprogressbar';
$title = get_string('courseprogressbar', 'theme_monocolor');
$description = get_string('courseprogressbar_desc', 'theme_monocolor');
$default = 0;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/hcoursepagetabs';
$heading = get_string('hcoursepagetabs', 'theme_monocolor');
$title = get_string('hcoursepagetabs_desc', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
$page->add($setting);
$name = 'theme_monocolor/coursetablayout';
$title = get_string('coursetablayout', 'theme_monocolor');
$description = get_string('coursetablayout_desc', 'theme_monocolor');
$default = 1;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/istab2active';
$title = get_string('istab2active', 'theme_monocolor');
$description = get_string('istab2active_desc', 'theme_monocolor');
$default = 0;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
// Course Tabs.
$name = 'theme_monocolor/titlecoursetab1';
$title = get_string('titlecoursetab1', 'theme_monocolor');
$description = get_string('titlecoursetab1_desc', 'theme_monocolor');
$setting = new admin_setting_configtextarea($name, $title, $description, 'Overview');
$page->add($setting);
$name = 'theme_monocolor/coursetab1content';
$title = get_string('blockhtmlcontent', 'theme_monocolor');
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
$default = '';
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/titlecoursetab2';
$title = get_string('titlecoursetab2', 'theme_monocolor');
$description = get_string('titlecoursetab2_desc', 'theme_monocolor');
$setting = new admin_setting_configtextarea($name, $title, $description, 'Course Content');
$page->add($setting);
$name = 'theme_monocolor/coursetab2content';
$title = get_string('blockhtmlcontent', 'theme_monocolor');
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
$default = '';
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/titlecoursetab3';
$title = get_string('titlecoursetab3', 'theme_monocolor');
$description = get_string('titlecoursetab3_desc', 'theme_monocolor');
$setting = new admin_setting_configtextarea($name, $title, $description, 'FAQ');
$page->add($setting);
$name = 'theme_monocolor/coursetab3content';
$title = get_string('blockhtmlcontent', 'theme_monocolor');
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
$default = '';
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/titlecoursetab4';
$title = get_string('titlecoursetab4', 'theme_monocolor');
$description = get_string('titlecoursetab4_desc', 'theme_monocolor');
$setting = new admin_setting_configtextarea($name, $title, $description, 'Resources');
$page->add($setting);
$name = 'theme_monocolor/coursetab4content';
$title = get_string('blockhtmlcontent', 'theme_monocolor');
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
$default = '';
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/titlecoursetab5';
$title = get_string('titlecoursetab5', 'theme_monocolor');
$description = get_string('titlecoursetab5_desc', 'theme_monocolor');
$setting = new admin_setting_configtextarea($name, $title, $description, 'Teacher');
$page->add($setting);
$name = 'theme_monocolor/coursetab5content';
$title = get_string('blockhtmlcontent', 'theme_monocolor');
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
$default = '';
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/cccteacherslist';
$title = get_string('cccteacherslist', 'theme_monocolor');
$description = get_string('cccteacherslist_desc', 'theme_monocolor');
$default = 1;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/hcoursecard';
$heading = get_string('hcoursecard', 'theme_monocolor');
$title = get_string('hcoursecard_desc', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
$page->add($setting);
$name = 'theme_monocolor/cccteacheravatar';
$title = get_string('cccteacheravatar', 'theme_monocolor');
$description = get_string('cccteacheravatar_desc', 'theme_monocolor');
$default = 0;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/cccsummary';
$title = get_string('cccsummary', 'theme_monocolor');
$description = get_string('cccsummary_desc', 'theme_monocolor');
$default = 1;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/coursecarddesclimit';
$title = get_string('coursecarddesclimit', 'theme_monocolor');
$description = get_string('coursecarddesclimit_desc', 'theme_monocolor');
$setting = new admin_setting_configtext($name, $title, $description, '100');
$page->add($setting);
$name = 'theme_monocolor/showcustomfields';
$title = get_string('showcustomfields', 'theme_monocolor');
$description = get_string('showcustomfields_desc', 'theme_monocolor');
$default = 1;
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
$page->add($setting);
$name = 'theme_monocolor/hactivityicons';
$heading = get_string('hactivityicons', 'theme_monocolor');
$title = get_string('hactivityicons_desc', 'theme_monocolor');
$setting = new admin_setting_heading($name, $heading, format_text($title, FORMAT_MARKDOWN));
$page->add($setting);
$name = 'theme_monocolor/iconadministration';
$title = get_string('iconadministration', '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/iconassessment';
$title = get_string('iconassessment', '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/iconcolleboration';
$title = get_string('iconcolleboration', '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/iconcommunication';
$title = get_string('iconcommunication', '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/iconcontent';
$title = get_string('iconcontent', '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/iconinterface';
$title = get_string('iconinterface', '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);
$settings->add($page);