mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-23234 finally standardised use of settings.php across all plugins - the only partial exceptions now are report and local plugins
This commit is contained in:
parent
bf36ee9b2b
commit
dbf9e4bae3
@ -1,3 +1,5 @@
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$ADMIN->add('reports', new admin_externalpage('reportbackups', get_string('backups', 'admin'), "$CFG->wwwroot/$CFG->admin/report/backups/index.php",'moodle/backup:backupcourse'));
|
||||
|
@ -1,3 +1,5 @@
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$ADMIN->add('roles', new admin_externalpage('reportcapability', get_string('capability', 'report_capability'), "$CFG->wwwroot/$CFG->admin/report/capability/index.php",'moodle/role:manage'));
|
||||
|
@ -1,3 +1,5 @@
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$ADMIN->add('reports', new admin_externalpage('reportconfiglog', get_string('configlog', 'report_configlog'), "$CFG->wwwroot/$CFG->admin/report/configlog/index.php"));
|
||||
|
@ -1,3 +1,5 @@
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$ADMIN->add('reports', new admin_externalpage('reportcourseoverview', get_string('courseoverview', 'admin'), "$CFG->wwwroot/$CFG->admin/report/courseoverview/index.php",'report/courseoverview:view'));
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
// just a link to course report
|
||||
$ADMIN->add('reports', new admin_externalpage('reportlog', get_string('log', 'admin'), "$CFG->wwwroot/course/report/log/index.php?id=".SITEID, 'coursereport/log:view'));
|
||||
$ADMIN->add('reports', new admin_externalpage('reportloglive', get_string('loglive', 'coursereport_log'), "$CFG->wwwroot/course/report/log/indexlive.php?id=".SITEID, 'coursereport/log:viewlive'));
|
||||
|
@ -1,3 +1,5 @@
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$ADMIN->add('reports', new admin_externalpage('reportquestioninstances', get_string('questioninstances', 'report_questioninstances'), "$CFG->wwwroot/$CFG->admin/report/questioninstances/index.php", 'report/questioninstances:view'));
|
||||
|
@ -1,3 +1,5 @@
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$ADMIN->add('reports', new admin_externalpage('reportsecurity', get_string('reportsecurity', 'report_security'), "$CFG->wwwroot/$CFG->admin/report/security/index.php",'report/security:view'));
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
// spam cleaner
|
||||
$ADMIN->add('reports', new admin_externalpage('reportspamcleaner', get_string('spamcleaner', 'report_spamcleaner'), "$CFG->wwwroot/$CFG->admin/report/spamcleaner/index.php", 'moodle/site:config'));
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
// just a link to course report
|
||||
$ADMIN->add('reports', new admin_externalpage('reportstats', get_string('stats', 'admin'), "$CFG->wwwroot/course/report/stats/index.php", 'coursereport/stats:view'));
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($hassiteconfig) {
|
||||
$ADMIN->add('development', new admin_externalpage('reportsimpletest', get_string('simpletest', 'admin'), "$CFG->wwwroot/$CFG->admin/report/unittest/index.php",'report/unittest:view'));
|
||||
$ADMIN->add('development', new admin_externalpage('reportdbtest', get_string('dbtest', 'admin'), "$CFG->wwwroot/$CFG->admin/report/unittest/dbtest.php",'report/unittest:view'));
|
||||
|
@ -26,7 +26,11 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
|
||||
foreach (get_plugin_list('theme') as $theme => $themedir) {
|
||||
$settings_path = "$themedir/settings.php";
|
||||
if (file_exists($settings_path)) {
|
||||
$settings = new admin_settingpage('themesetting'.$theme, get_string('pluginname', 'theme_'.$theme));
|
||||
include($settings_path);
|
||||
if ($settings) {
|
||||
$ADMIN->add('themes', $settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -176,10 +176,10 @@ if (has_capability('moodle/grade:manage', $systemcontext)
|
||||
// Include all the settings commands for this plugin if there are any
|
||||
if (file_exists($plugindir.'/settings.php')) {
|
||||
$settings = new admin_settingpage('gradereport'.$plugin, get_string('pluginname', 'gradereport_'.$plugin), 'moodle/grade:manage');
|
||||
if ($ADMIN->fulltree) {
|
||||
include($plugindir.'/settings.php');
|
||||
include($plugindir.'/settings.php');
|
||||
if ($settings) {
|
||||
$ADMIN->add('gradereports', $settings);
|
||||
}
|
||||
$ADMIN->add('gradereports', $settings);
|
||||
}
|
||||
}
|
||||
|
||||
@ -190,10 +190,10 @@ if (has_capability('moodle/grade:manage', $systemcontext)
|
||||
// Include all the settings commands for this plugin if there are any
|
||||
if (file_exists($plugindir.'/settings.php')) {
|
||||
$settings = new admin_settingpage('gradeimport'.$plugin, get_string('pluginname', 'gradeimport_'.$plugin), 'moodle/grade:manage');
|
||||
if ($ADMIN->fulltree) {
|
||||
include($plugindir.'/settings.php');
|
||||
include($plugindir.'/settings.php');
|
||||
if ($settings) {
|
||||
$ADMIN->add('gradeimports', $settings);
|
||||
}
|
||||
$ADMIN->add('gradeimports', $settings);
|
||||
}
|
||||
}
|
||||
|
||||
@ -204,10 +204,10 @@ if (has_capability('moodle/grade:manage', $systemcontext)
|
||||
// Include all the settings commands for this plugin if there are any
|
||||
if (file_exists($plugindir.'/settings.php')) {
|
||||
$settings = new admin_settingpage('gradeexport'.$plugin, get_string('pluginname', 'gradeexport_'.$plugin), 'moodle/grade:manage');
|
||||
if ($ADMIN->fulltree) {
|
||||
include($plugindir.'/settings.php');
|
||||
include($plugindir.'/settings.php');
|
||||
if ($settings) {
|
||||
$ADMIN->add('gradeexports', $settings);
|
||||
}
|
||||
$ADMIN->add('gradeexports', $settings);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,15 +14,13 @@ if ($hassiteconfig) {
|
||||
continue;
|
||||
}
|
||||
$strmodulename = get_string('modulename', 'mod_'.$modulename);
|
||||
if (file_exists($CFG->dirroot.'/mod/'.$modulename.'/settingstree.php')) {
|
||||
include($CFG->dirroot.'/mod/'.$modulename.'/settingstree.php');
|
||||
} else if (file_exists($CFG->dirroot.'/mod/'.$modulename.'/settings.php')) {
|
||||
if (file_exists($CFG->dirroot.'/mod/'.$modulename.'/settings.php')) {
|
||||
// do not show disabled modules in tree, keep only settings link on manage page
|
||||
$settings = new admin_settingpage('modsetting'.$modulename, $strmodulename, 'moodle/site:config', !$module->visible);
|
||||
if ($ADMIN->fulltree) {
|
||||
include($CFG->dirroot.'/mod/'.$modulename.'/settings.php');
|
||||
include($CFG->dirroot.'/mod/'.$modulename.'/settings.php');
|
||||
if ($settings) {
|
||||
$ADMIN->add('modsettings', $settings);
|
||||
}
|
||||
$ADMIN->add('modsettings', $settings);
|
||||
}
|
||||
}
|
||||
|
||||
@ -40,13 +38,10 @@ if ($hassiteconfig) {
|
||||
$strblockname = get_string('pluginname', 'block_'.$blockname);
|
||||
if (file_exists($CFG->dirroot.'/blocks/'.$blockname.'/settings.php')) {
|
||||
$settings = new admin_settingpage('blocksetting'.$blockname, $strblockname, 'moodle/site:config', !$block->visible);
|
||||
if ($ADMIN->fulltree) {
|
||||
include($CFG->dirroot.'/blocks/'.$blockname.'/settings.php');
|
||||
include($CFG->dirroot.'/blocks/'.$blockname.'/settings.php');
|
||||
if ($settings) {
|
||||
$ADMIN->add('blocksettings', $settings);
|
||||
}
|
||||
$ADMIN->add('blocksettings', $settings);
|
||||
|
||||
} else if (file_exists($CFG->dirroot.'/blocks/'.$blockname.'/config_global.html')) {
|
||||
$ADMIN->add('blocksettings', new admin_externalpage('blocksetting'.$blockname, $strblockname, "$CFG->wwwroot/$CFG->admin/block.php?block=$block->id", 'moodle/site:config', !$block->visible));
|
||||
}
|
||||
}
|
||||
|
||||
@ -74,29 +69,22 @@ if ($hassiteconfig) {
|
||||
$ADMIN->add('authsettings', $temp);
|
||||
|
||||
|
||||
if ($auths = get_plugin_list('auth')) {
|
||||
$authsenabled = get_enabled_auth_plugins();
|
||||
$authbyname = array();
|
||||
|
||||
foreach ($auths as $auth => $authdir) {
|
||||
$strauthname = get_string('pluginname', "auth_{$auth}");
|
||||
$authbyname[$strauthname] = $auth;
|
||||
}
|
||||
ksort($authbyname);
|
||||
|
||||
foreach ($authbyname as $strauthname=>$authname) {
|
||||
if (file_exists($authdir.'/settings.php')) {
|
||||
// do not show disabled auths in tree, keep only settings link on manage page
|
||||
$settings = new admin_settingpage('authsetting'.$authname, $strauthname, 'moodle/site:config', !in_array($authname, $authsenabled));
|
||||
if ($ADMIN->fulltree) {
|
||||
include($authdir.'/settings.php');
|
||||
}
|
||||
// TODO: finish implementation of common settings - locking, etc.
|
||||
$auths = get_plugin_list('auth');
|
||||
$authsenabled = get_enabled_auth_plugins();
|
||||
foreach ($auths as $authname => $authdir) {
|
||||
$strauthname = get_string('pluginname', "auth_{$authname}");
|
||||
// do not show disabled auths in tree, keep only settings link on manage page
|
||||
$enabled = in_array($authname, $authsenabled);
|
||||
if (file_exists($authdir.'/settings.php')) {
|
||||
// TODO: finish implementation of common settings - locking, etc.
|
||||
$settings = new admin_settingpage('authsetting'.$authname, $strauthname, 'moodle/site:config', !$enabled);
|
||||
include($authdir.'/settings.php');
|
||||
if ($settings) {
|
||||
$ADMIN->add('authsettings', $settings);
|
||||
|
||||
} else {
|
||||
$ADMIN->add('authsettings', new admin_externalpage('authsetting'.$authname, $strauthname, "$CFG->wwwroot/$CFG->admin/auth_config.php?auth=$authname", 'moodle/site:config', !in_array($authname, $authsenabled)));
|
||||
}
|
||||
|
||||
} else {
|
||||
$ADMIN->add('authsettings', new admin_externalpage('authsetting'.$authname, $strauthname, "$CFG->wwwroot/$CFG->admin/auth_config.php?auth=$authname", 'moodle/site:config', !$enabled));
|
||||
}
|
||||
}
|
||||
|
||||
@ -212,10 +200,10 @@ if ($hassiteconfig) {
|
||||
if (file_exists("$CFG->dirroot/$filterpath/filtersettings.php")) {
|
||||
$settings = new admin_settingpage('filtersetting'.str_replace('/', '', $filterpath),
|
||||
$strfiltername, 'moodle/site:config', !isset($activefilters[$filterpath]));
|
||||
if ($ADMIN->fulltree) {
|
||||
include("$CFG->dirroot/$filterpath/filtersettings.php");
|
||||
include("$CFG->dirroot/$filterpath/filtersettings.php");
|
||||
if ($settings) {
|
||||
$ADMIN->add('filtersettings', $settings);
|
||||
}
|
||||
$ADMIN->add('filtersettings', $settings);
|
||||
}
|
||||
}
|
||||
|
||||
@ -353,10 +341,10 @@ if ($hassiteconfig) {
|
||||
if (file_exists("$location/settings.php")) {
|
||||
$name = get_string('pluginname', 'webservice_'.$webservice);
|
||||
$settings = new admin_settingpage('webservicesetting'.$webservice, $name, 'moodle/site:config', !in_array($webservice, $active_webservices) or empty($CFG->enablewebservices));
|
||||
if ($ADMIN->fulltree) {
|
||||
include("$location/settings.php");
|
||||
include("$location/settings.php");
|
||||
if ($settings) {
|
||||
$ADMIN->add('webservicesettings', $settings);
|
||||
}
|
||||
$ADMIN->add('webservicesettings', $settings);
|
||||
}
|
||||
}
|
||||
/// manage token page link
|
||||
@ -380,10 +368,10 @@ if ($hassiteconfig || has_capability('moodle/question:config', $systemcontext))
|
||||
if (file_exists($settingsfile)) {
|
||||
$settings = new admin_settingpage('qtypesetting' . $qtype->name(),
|
||||
$qtype->local_name(), 'moodle/question:config');
|
||||
if ($ADMIN->fulltree) {
|
||||
include($settingsfile);
|
||||
include($settingsfile);
|
||||
if ($settings) {
|
||||
$ADMIN->add('qtypesettings', $settings);
|
||||
}
|
||||
$ADMIN->add('qtypesettings', $settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,13 +1,15 @@
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$options = array('all'=>get_string('allcourses', 'block_course_list'), 'own'=>get_string('owncourses', 'block_course_list'));
|
||||
if ($ADMIN->fulltree) {
|
||||
$options = array('all'=>get_string('allcourses', 'block_course_list'), 'own'=>get_string('owncourses', 'block_course_list'));
|
||||
|
||||
$settings->add(new admin_setting_configselect('block_course_list_adminview', get_string('adminview', 'block_course_list'),
|
||||
get_string('configadminview', 'block_course_list'), 'all', $options));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('block_course_list_hideallcourseslink', get_string('hideallcourseslink', 'block_course_list'),
|
||||
get_string('confighideallcourseslink', 'block_course_list'), 0));
|
||||
$settings->add(new admin_setting_configselect('block_course_list_adminview', get_string('adminview', 'block_course_list'),
|
||||
get_string('configadminview', 'block_course_list'), 'all', $options));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('block_course_list_hideallcourseslink', get_string('hideallcourseslink', 'block_course_list'),
|
||||
get_string('confighideallcourseslink', 'block_course_list'), 0));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,6 +1,9 @@
|
||||
<?php
|
||||
|
||||
$settings->add(new admin_setting_configtext('block_online_users_timetosee', get_string('timetosee', 'block_online_users'),
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
$settings->add(new admin_setting_configtext('block_online_users_timetosee', get_string('timetosee', 'block_online_users'),
|
||||
get_string('configtimetosee', 'block_online_users'), 5, PARAM_INT));
|
||||
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,14 @@
|
||||
<?php
|
||||
|
||||
$settings->add(new admin_setting_configtext('block_rss_client_num_entries', get_string('numentries', 'block_rss_client'),
|
||||
get_string('clientnumentries', 'block_rss_client'), 5, PARAM_INT));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$settings->add(new admin_setting_configtext('block_rss_client_timeout', get_string('timeout2', 'block_rss_client'),
|
||||
get_string('timeout', 'block_rss_client'), 30, PARAM_INT));
|
||||
if ($ADMIN->fulltree) {
|
||||
$settings->add(new admin_setting_configtext('block_rss_client_num_entries', get_string('numentries', 'block_rss_client'),
|
||||
get_string('clientnumentries', 'block_rss_client'), 5, PARAM_INT));
|
||||
|
||||
$link ='<a href="'.$CFG->wwwroot.'/blocks/rss_client/managefeeds.php">'.get_string('feedsaddedit', 'block_rss_client').'</a>';
|
||||
$settings->add(new admin_setting_heading('block_rss_addheading', '', $link));
|
||||
$settings->add(new admin_setting_configtext('block_rss_client_timeout', get_string('timeout2', 'block_rss_client'),
|
||||
get_string('timeout', 'block_rss_client'), 30, PARAM_INT));
|
||||
|
||||
$link ='<a href="'.$CFG->wwwroot.'/blocks/rss_client/managefeeds.php">'.get_string('feedsaddedit', 'block_rss_client').'</a>';
|
||||
$settings->add(new admin_setting_heading('block_rss_addheading', '', $link));
|
||||
}
|
@ -21,33 +21,38 @@
|
||||
* @package moodlecore
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
$configs = array();
|
||||
|
||||
$numberofsections = array();
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
for ($i = 1; $i < 53; $i++){
|
||||
$numberofsections[$i] = $i;
|
||||
}
|
||||
$increments = array();
|
||||
if ($ADMIN->fulltree) {
|
||||
$configs = array();
|
||||
|
||||
for ($i = 1; $i < 11; $i++){
|
||||
$increments[$i] = $i;
|
||||
}
|
||||
$numberofsections = array();
|
||||
|
||||
$selected = array(1 => array(22,2),
|
||||
2 => array(40,5));
|
||||
for ($i = 1; $i < 53; $i++){
|
||||
$numberofsections[$i] = $i;
|
||||
}
|
||||
$increments = array();
|
||||
|
||||
for($i = 1; $i < 3; $i++){
|
||||
$configs[] = new admin_setting_configselect('numsections'.$i, get_string('numsections'.$i, 'block_section_links'),
|
||||
get_string('numsectionsdesc'.$i, 'block_section_links'),
|
||||
$selected[$i][0], $numberofsections);
|
||||
for ($i = 1; $i < 11; $i++){
|
||||
$increments[$i] = $i;
|
||||
}
|
||||
|
||||
$configs[] = new admin_setting_configselect('incby'.$i, get_string('incby'.$i, 'block_section_links'),
|
||||
get_string('incbydesc'.$i, 'block_section_links'),
|
||||
$selected[$i][1], $increments);
|
||||
}
|
||||
$selected = array(1 => array(22,2),
|
||||
2 => array(40,5));
|
||||
|
||||
foreach ($configs as $config) {
|
||||
$config->plugin = 'blocks/section_links';
|
||||
$settings->add($config);
|
||||
}
|
||||
for($i = 1; $i < 3; $i++){
|
||||
$configs[] = new admin_setting_configselect('numsections'.$i, get_string('numsections'.$i, 'block_section_links'),
|
||||
get_string('numsectionsdesc'.$i, 'block_section_links'),
|
||||
$selected[$i][0], $numberofsections);
|
||||
|
||||
$configs[] = new admin_setting_configselect('incby'.$i, get_string('incby'.$i, 'block_section_links'),
|
||||
get_string('incbydesc'.$i, 'block_section_links'),
|
||||
$selected[$i][1], $increments);
|
||||
}
|
||||
|
||||
foreach ($configs as $config) {
|
||||
$config->plugin = 'blocks/section_links';
|
||||
$settings->add($config);
|
||||
}
|
||||
}
|
@ -1,6 +1,9 @@
|
||||
<?php
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('block_tags_showcoursetags', get_string('showcoursetags', 'block_tags'),
|
||||
get_string('showcoursetagsdef', 'block_tags'), 0));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
$settings->add(new admin_setting_configcheckbox('block_tags_showcoursetags', get_string('showcoursetags', 'block_tags'),
|
||||
get_string('showcoursetagsdef', 'block_tags'), 0));
|
||||
}
|
||||
|
||||
|
@ -17,6 +17,7 @@ required changes in code:
|
||||
* remove '_utf8' from language pack names, use new {$a} syntax in language packs
|
||||
* use 'pluginname' lang pack identifier instead of 'blockname'
|
||||
* move cron and version number into standard version.php
|
||||
* removed support for old config_global.html, use settings.php
|
||||
|
||||
optional - no changes needed in older code:
|
||||
*
|
||||
|
@ -1,6 +1,9 @@
|
||||
<?php
|
||||
|
||||
$settings->add(new admin_setting_configtextarea('filter_censor_badwords', get_string('badwordslist','admin'),
|
||||
get_string('badwordsconfig', 'admin').'<br />'.get_string('badwordsdefault', 'admin'), ''));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
|
||||
$settings->add(new admin_setting_configtextarea('filter_censor_badwords', get_string('badwordslist','admin'),
|
||||
get_string('badwordsconfig', 'admin').'<br />'.get_string('badwordsdefault', 'admin'), ''));
|
||||
}
|
||||
|
@ -1,27 +1,30 @@
|
||||
<?php
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_mp3', get_string('mediapluginmp3','admin'), '', 1));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_swf', get_string('mediapluginswf','admin'), get_string('mediapluginswfnote','admin'), 0));
|
||||
if ($ADMIN->fulltree) {
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_mov', get_string('mediapluginmov','admin'), '', 1));
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_mp3', get_string('mediapluginmp3','admin'), '', 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_wmv', get_string('mediapluginwmv','admin'), '', 1));
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_swf', get_string('mediapluginswf','admin'), get_string('mediapluginswfnote','admin'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_mpg', get_string('mediapluginmpg','admin'), '', 1));
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_mov', get_string('mediapluginmov','admin'), '', 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_avi', get_string('mediapluginavi','admin'), '', 1));
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_wmv', get_string('mediapluginwmv','admin'), '', 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_flv', get_string('mediapluginflv','admin'), '', 1));
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_mpg', get_string('mediapluginmpg','admin'), '', 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_ram', get_string('mediapluginram','admin'), '', 1));
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_avi', get_string('mediapluginavi','admin'), '', 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_rpm', get_string('mediapluginrpm','admin'), '', 1));
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_flv', get_string('mediapluginflv','admin'), '', 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_rm', get_string('mediapluginrm','admin'), '', 1));
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_ram', get_string('mediapluginram','admin'), '', 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_youtube', get_string('mediapluginyoutube','admin'), '', 1));
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_rpm', get_string('mediapluginrpm','admin'), '', 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_img', get_string('mediapluginimg','admin'), '', 1));
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_rm', get_string('mediapluginrm','admin'), '', 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_youtube', get_string('mediapluginyoutube','admin'), '', 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_mediaplugin_enable_img', get_string('mediapluginimg','admin'), '', 1));
|
||||
}
|
||||
|
@ -1,6 +1,9 @@
|
||||
<?php
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_multilang_force_old', 'filter_multilang_force_old',
|
||||
get_string('multilangforceold', 'admin'), 0));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('filter_multilang_force_old', 'filter_multilang_force_old',
|
||||
get_string('multilangforceold', 'admin'), 0));
|
||||
}
|
||||
|
@ -1,50 +1,54 @@
|
||||
<?php
|
||||
|
||||
require_once($CFG->dirroot.'/filter/tex/lib.php');
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$items = array();
|
||||
$items[] = new admin_setting_heading('filter_tex_latexheading', get_string('latexsettings', 'admin'), '');
|
||||
$items[] = new admin_setting_configtextarea('filter_tex_latexpreamble', get_string('latexpreamble','admin'),
|
||||
'', "\\usepackage[latin1]{inputenc}\n\\usepackage{amsmath}\n\\usepackage{amsfonts}\n\\RequirePackage{amsmath,amssymb,latexsym}\n");
|
||||
$items[] = new admin_setting_configtext('filter_tex_latexbackground', get_string('backgroundcolour', 'admin'), '', '#FFFFFF');
|
||||
$items[] = new admin_setting_configtext('filter_tex_density', get_string('density', 'admin'), '', '120', PARAM_INT);
|
||||
if ($ADMIN->fulltree) {
|
||||
|
||||
if (PHP_OS=='Linux') {
|
||||
$default_filter_tex_pathlatex = "/usr/bin/latex";
|
||||
$default_filter_tex_pathdvips = "/usr/bin/dvips";
|
||||
$default_filter_tex_pathconvert = "/usr/bin/convert";
|
||||
require_once($CFG->dirroot.'/filter/tex/lib.php');
|
||||
|
||||
} else if (PHP_OS=='Darwin') {
|
||||
// most likely needs a fink install (fink.sf.net)
|
||||
$default_filter_tex_pathlatex = "/sw/bin/latex";
|
||||
$default_filter_tex_pathdvips = "/sw/bin/dvips";
|
||||
$default_filter_tex_pathconvert = "/sw/bin/convert";
|
||||
$items = array();
|
||||
$items[] = new admin_setting_heading('filter_tex_latexheading', get_string('latexsettings', 'admin'), '');
|
||||
$items[] = new admin_setting_configtextarea('filter_tex_latexpreamble', get_string('latexpreamble','admin'),
|
||||
'', "\\usepackage[latin1]{inputenc}\n\\usepackage{amsmath}\n\\usepackage{amsfonts}\n\\RequirePackage{amsmath,amssymb,latexsym}\n");
|
||||
$items[] = new admin_setting_configtext('filter_tex_latexbackground', get_string('backgroundcolour', 'admin'), '', '#FFFFFF');
|
||||
$items[] = new admin_setting_configtext('filter_tex_density', get_string('density', 'admin'), '', '120', PARAM_INT);
|
||||
|
||||
} else if (PHP_OS=='WINNT' or PHP_OS=='WIN32' or PHP_OS=='Windows') {
|
||||
// note: you need Ghostscript installed (standard), miktex (standard)
|
||||
// and ImageMagick (install at c:\ImageMagick)
|
||||
$default_filter_tex_pathlatex = "\"c:\\texmf\\miktex\\bin\\latex.exe\" ";
|
||||
$default_filter_tex_pathdvips = "\"c:\\texmf\\miktex\\bin\\dvips.exe\" ";
|
||||
$default_filter_tex_pathconvert = "\"c:\\imagemagick\\convert.exe\" ";
|
||||
if (PHP_OS=='Linux') {
|
||||
$default_filter_tex_pathlatex = "/usr/bin/latex";
|
||||
$default_filter_tex_pathdvips = "/usr/bin/dvips";
|
||||
$default_filter_tex_pathconvert = "/usr/bin/convert";
|
||||
|
||||
} else {
|
||||
$default_filter_tex_pathlatex = '';
|
||||
$default_filter_tex_pathdvips = '';
|
||||
$default_filter_tex_pathconvert = '';
|
||||
}
|
||||
} else if (PHP_OS=='Darwin') {
|
||||
// most likely needs a fink install (fink.sf.net)
|
||||
$default_filter_tex_pathlatex = "/sw/bin/latex";
|
||||
$default_filter_tex_pathdvips = "/sw/bin/dvips";
|
||||
$default_filter_tex_pathconvert = "/sw/bin/convert";
|
||||
|
||||
$items[] = new admin_setting_configexecutable('filter_tex_pathlatex', get_string('pathlatex', 'admin'), '', $default_filter_tex_pathlatex);
|
||||
$items[] = new admin_setting_configexecutable('filter_tex_pathdvips', get_string('pathdvips', 'admin'), '', $default_filter_tex_pathdvips);
|
||||
$items[] = new admin_setting_configexecutable('filter_tex_pathconvert', get_string('pathconvert', 'admin'), '', $default_filter_tex_pathconvert);
|
||||
} else if (PHP_OS=='WINNT' or PHP_OS=='WIN32' or PHP_OS=='Windows') {
|
||||
// note: you need Ghostscript installed (standard), miktex (standard)
|
||||
// and ImageMagick (install at c:\ImageMagick)
|
||||
$default_filter_tex_pathlatex = "\"c:\\texmf\\miktex\\bin\\latex.exe\" ";
|
||||
$default_filter_tex_pathdvips = "\"c:\\texmf\\miktex\\bin\\dvips.exe\" ";
|
||||
$default_filter_tex_pathconvert = "\"c:\\imagemagick\\convert.exe\" ";
|
||||
|
||||
// Even if we offer GIF and PNG formats here, in the update callback we check whether
|
||||
// all the paths actually point to executables. If they don't, we force the setting
|
||||
// to GIF, as that's the only format mimeTeX can produce.
|
||||
$formats = array('gif' => 'GIF', 'png' => 'PNG');
|
||||
$items[] = new admin_setting_configselect('filter_tex_convertformat', get_string('convertformat', 'admin'), get_string('configconvertformat', 'admin'), 'gif', $formats);
|
||||
} else {
|
||||
$default_filter_tex_pathlatex = '';
|
||||
$default_filter_tex_pathdvips = '';
|
||||
$default_filter_tex_pathconvert = '';
|
||||
}
|
||||
|
||||
foreach ($items as $item) {
|
||||
$item->set_updatedcallback('filter_tex_updatedcallback');
|
||||
$settings->add($item);
|
||||
}
|
||||
$items[] = new admin_setting_configexecutable('filter_tex_pathlatex', get_string('pathlatex', 'admin'), '', $default_filter_tex_pathlatex);
|
||||
$items[] = new admin_setting_configexecutable('filter_tex_pathdvips', get_string('pathdvips', 'admin'), '', $default_filter_tex_pathdvips);
|
||||
$items[] = new admin_setting_configexecutable('filter_tex_pathconvert', get_string('pathconvert', 'admin'), '', $default_filter_tex_pathconvert);
|
||||
|
||||
// Even if we offer GIF and PNG formats here, in the update callback we check whether
|
||||
// all the paths actually point to executables. If they don't, we force the setting
|
||||
// to GIF, as that's the only format mimeTeX can produce.
|
||||
$formats = array('gif' => 'GIF', 'png' => 'PNG');
|
||||
$items[] = new admin_setting_configselect('filter_tex_convertformat', get_string('convertformat', 'admin'), get_string('configconvertformat', 'admin'), 'gif', $formats);
|
||||
|
||||
foreach ($items as $item) {
|
||||
$item->set_updatedcallback('filter_tex_updatedcallback');
|
||||
$settings->add($item);
|
||||
}
|
||||
}
|
@ -15,91 +15,94 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
$strinherit = get_string('inherit', 'grades');
|
||||
$strpercentage = get_string('percentage', 'grades');
|
||||
$strreal = get_string('real', 'grades');
|
||||
$strletter = get_string('letter', 'grades');
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
/// Add settings for this module to the $settings object (it's already defined)
|
||||
$settings->add(new admin_setting_configtext('grade_report_studentsperpage', get_string('studentsperpage', 'grades'),
|
||||
get_string('studentsperpage_help', 'grades'), 100));
|
||||
if ($ADMIN->fulltree) {
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_quickgrading', get_string('quickgrading', 'grades'),
|
||||
get_string('quickgrading_help', 'grades'), 1));
|
||||
$strinherit = get_string('inherit', 'grades');
|
||||
$strpercentage = get_string('percentage', 'grades');
|
||||
$strreal = get_string('real', 'grades');
|
||||
$strletter = get_string('letter', 'grades');
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showquickfeedback', get_string('quickfeedback', 'grades'),
|
||||
get_string('showquickfeedback_help', 'grades'), 0));
|
||||
/// Add settings for this module to the $settings object (it's already defined)
|
||||
$settings->add(new admin_setting_configtext('grade_report_studentsperpage', get_string('studentsperpage', 'grades'),
|
||||
get_string('studentsperpage_help', 'grades'), 100));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_fixedstudents', get_string('fixedstudents', 'grades'),
|
||||
get_string('fixedstudents_help', 'grades'), 0));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_quickgrading', get_string('quickgrading', 'grades'),
|
||||
get_string('quickgrading_help', 'grades'), 1));
|
||||
|
||||
$settings->add(new admin_setting_configselect('grade_report_meanselection', get_string('meanselection', 'grades'),
|
||||
get_string('meanselection_help', 'grades'), GRADE_REPORT_MEAN_GRADED,
|
||||
array(GRADE_REPORT_MEAN_ALL => get_string('meanall', 'grades'),
|
||||
GRADE_REPORT_MEAN_GRADED => get_string('meangraded', 'grades'))));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showquickfeedback', get_string('quickfeedback', 'grades'),
|
||||
get_string('showquickfeedback_help', 'grades'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_enableajax', get_string('enableajax', 'grades'),
|
||||
get_string('enableajax_help', 'grades'), 0));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_fixedstudents', get_string('fixedstudents', 'grades'),
|
||||
get_string('fixedstudents_help', 'grades'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showcalculations', get_string('showcalculations', 'grades'),
|
||||
get_string('showcalculations_help', 'grades'), 0));
|
||||
$settings->add(new admin_setting_configselect('grade_report_meanselection', get_string('meanselection', 'grades'),
|
||||
get_string('meanselection_help', 'grades'), GRADE_REPORT_MEAN_GRADED,
|
||||
array(GRADE_REPORT_MEAN_ALL => get_string('meanall', 'grades'),
|
||||
GRADE_REPORT_MEAN_GRADED => get_string('meangraded', 'grades'))));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showeyecons', get_string('showeyecons', 'grades'),
|
||||
get_string('showeyecons_help', 'grades'), 0));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_enableajax', get_string('enableajax', 'grades'),
|
||||
get_string('enableajax_help', 'grades'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showaverages', get_string('showaverages', 'grades'),
|
||||
get_string('showaverages_help', 'grades'), 1));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showcalculations', get_string('showcalculations', 'grades'),
|
||||
get_string('showcalculations_help', 'grades'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showlocks', get_string('showlocks', 'grades'),
|
||||
get_string('showlocks_help', 'grades'), 0));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showeyecons', get_string('showeyecons', 'grades'),
|
||||
get_string('showeyecons_help', 'grades'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showranges', get_string('showranges', 'grades'),
|
||||
get_string('showranges_help', 'grades'), 0));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showaverages', get_string('showaverages', 'grades'),
|
||||
get_string('showaverages_help', 'grades'), 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showuserimage', get_string('showuserimage', 'grades'),
|
||||
get_string('showuserimage_help', 'grades'), 1));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showlocks', get_string('showlocks', 'grades'),
|
||||
get_string('showlocks_help', 'grades'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showuseridnumber', get_string('showuseridnumber', 'grades'),
|
||||
get_string('showuseridnumber_help', 'grades'), 0));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showranges', get_string('showranges', 'grades'),
|
||||
get_string('showranges_help', 'grades'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showactivityicons', get_string('showactivityicons', 'grades'),
|
||||
get_string('showactivityicons_help', 'grades'), 1));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showuserimage', get_string('showuserimage', 'grades'),
|
||||
get_string('showuserimage_help', 'grades'), 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_shownumberofgrades', get_string('shownumberofgrades', 'grades'),
|
||||
get_string('shownumberofgrades_help', 'grades'), 0));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showuseridnumber', get_string('showuseridnumber', 'grades'),
|
||||
get_string('showuseridnumber_help', 'grades'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configselect('grade_report_averagesdisplaytype', get_string('averagesdisplaytype', 'grades'),
|
||||
get_string('averagesdisplaytype_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
|
||||
array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
|
||||
GRADE_DISPLAY_TYPE_REAL => $strreal,
|
||||
GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage,
|
||||
GRADE_DISPLAY_TYPE_LETTER => $strletter)));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_showactivityicons', get_string('showactivityicons', 'grades'),
|
||||
get_string('showactivityicons_help', 'grades'), 1));
|
||||
|
||||
$settings->add(new admin_setting_configselect('grade_report_rangesdisplaytype', get_string('rangesdisplaytype', 'grades'),
|
||||
get_string('rangesdisplaytype_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
|
||||
array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
|
||||
GRADE_DISPLAY_TYPE_REAL => $strreal,
|
||||
GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage,
|
||||
GRADE_DISPLAY_TYPE_LETTER => $strletter)));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_shownumberofgrades', get_string('shownumberofgrades', 'grades'),
|
||||
get_string('shownumberofgrades_help', 'grades'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configselect('grade_report_averagesdecimalpoints', get_string('averagesdecimalpoints', 'grades'),
|
||||
get_string('averagesdecimalpoints_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
|
||||
array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
|
||||
'0' => '0',
|
||||
'1' => '1',
|
||||
'2' => '2',
|
||||
'3' => '3',
|
||||
'4' => '4',
|
||||
'5' => '5')));
|
||||
$settings->add(new admin_setting_configselect('grade_report_rangesdecimalpoints', get_string('rangesdecimalpoints', 'grades'),
|
||||
get_string('rangesdecimalpoints_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
|
||||
array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
|
||||
'0' => '0',
|
||||
'1' => '1',
|
||||
'2' => '2',
|
||||
'3' => '3',
|
||||
'4' => '4',
|
||||
'5' => '5')));
|
||||
$settings->add(new admin_setting_configselect('grade_report_averagesdisplaytype', get_string('averagesdisplaytype', 'grades'),
|
||||
get_string('averagesdisplaytype_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
|
||||
array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
|
||||
GRADE_DISPLAY_TYPE_REAL => $strreal,
|
||||
GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage,
|
||||
GRADE_DISPLAY_TYPE_LETTER => $strletter)));
|
||||
|
||||
$settings->add(new admin_setting_configselect('grade_report_rangesdisplaytype', get_string('rangesdisplaytype', 'grades'),
|
||||
get_string('rangesdisplaytype_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
|
||||
array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
|
||||
GRADE_DISPLAY_TYPE_REAL => $strreal,
|
||||
GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage,
|
||||
GRADE_DISPLAY_TYPE_LETTER => $strletter)));
|
||||
|
||||
$settings->add(new admin_setting_configselect('grade_report_averagesdecimalpoints', get_string('averagesdecimalpoints', 'grades'),
|
||||
get_string('averagesdecimalpoints_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
|
||||
array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
|
||||
'0' => '0',
|
||||
'1' => '1',
|
||||
'2' => '2',
|
||||
'3' => '3',
|
||||
'4' => '4',
|
||||
'5' => '5')));
|
||||
$settings->add(new admin_setting_configselect('grade_report_rangesdecimalpoints', get_string('rangesdecimalpoints', 'grades'),
|
||||
get_string('rangesdecimalpoints_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
|
||||
array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
|
||||
'0' => '0',
|
||||
'1' => '1',
|
||||
'2' => '2',
|
||||
'3' => '3',
|
||||
'4' => '4',
|
||||
'5' => '5')));
|
||||
|
||||
}
|
||||
|
@ -17,12 +17,15 @@
|
||||
|
||||
/// Add settings for this module to the $settings object (it's already defined)
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_overview_showrank', get_string('showrank', 'grades'), get_string('showrank_help', 'grades'), 0, PARAM_INT));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$settings->add(new admin_setting_configselect('grade_report_overview_showtotalsifcontainhidden', get_string('hidetotalifhiddenitems', 'grades'),
|
||||
get_string('hidetotalifhiddenitems_help', 'grades'), GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN,
|
||||
array(GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN => get_string('hide'),
|
||||
GRADE_REPORT_SHOW_TOTAL_IF_CONTAINS_HIDDEN => get_string('hidetotalshowexhiddenitems', 'grades'),
|
||||
GRADE_REPORT_SHOW_REAL_TOTAL_IF_CONTAINS_HIDDEN => get_string('hidetotalshowinchiddenitems', 'grades') )));
|
||||
if ($ADMIN->fulltree) {
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_overview_showrank', get_string('showrank', 'grades'), get_string('showrank_help', 'grades'), 0, PARAM_INT));
|
||||
|
||||
$settings->add(new admin_setting_configselect('grade_report_overview_showtotalsifcontainhidden', get_string('hidetotalifhiddenitems', 'grades'),
|
||||
get_string('hidetotalifhiddenitems_help', 'grades'), GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN,
|
||||
array(GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN => get_string('hide'),
|
||||
GRADE_REPORT_SHOW_TOTAL_IF_CONTAINS_HIDDEN => get_string('hidetotalshowexhiddenitems', 'grades'),
|
||||
GRADE_REPORT_SHOW_REAL_TOTAL_IF_CONTAINS_HIDDEN => get_string('hidetotalshowinchiddenitems', 'grades') )));
|
||||
}
|
||||
|
@ -17,16 +17,21 @@
|
||||
|
||||
/// Add settings for this module to the $settings object (it's already defined)
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_user_showrank', get_string('showrank', 'grades'), get_string('showrank_help', 'grades'), 0, PARAM_INT));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_user_showpercentage', get_string('showpercentage', 'grades'), get_string('showpercentage_help', 'grades'), 2, PARAM_INT));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$options = array(0 => get_string('shownohidden', 'grades'),
|
||||
1 => get_string('showhiddenuntilonly', 'grades'),
|
||||
2 => get_string('showallhidden', 'grades'));
|
||||
$settings->add(new admin_setting_configselect('grade_report_user_showhiddenitems', get_string('showhiddenitems', 'grades'), get_string('showhiddenitems_help', 'grades'), 1, $options));
|
||||
if ($ADMIN->fulltree) {
|
||||
|
||||
$settings->add(new admin_setting_configselect('grade_report_user_showtotalsifcontainhidden', get_string('hidetotalifhiddenitems', 'grades'),
|
||||
get_string('hidetotalifhiddenitems_help', 'grades'), GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN,
|
||||
array(GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN => get_string('hide'),
|
||||
GRADE_REPORT_SHOW_TOTAL_IF_CONTAINS_HIDDEN => get_string('hidetotalshowexhiddenitems', 'grades'),
|
||||
GRADE_REPORT_SHOW_REAL_TOTAL_IF_CONTAINS_HIDDEN => get_string('hidetotalshowinchiddenitems', 'grades'))));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_user_showrank', get_string('showrank', 'grades'), get_string('showrank_help', 'grades'), 0, PARAM_INT));
|
||||
$settings->add(new admin_setting_configcheckbox('grade_report_user_showpercentage', get_string('showpercentage', 'grades'), get_string('showpercentage_help', 'grades'), 2, PARAM_INT));
|
||||
|
||||
$options = array(0 => get_string('shownohidden', 'grades'),
|
||||
1 => get_string('showhiddenuntilonly', 'grades'),
|
||||
2 => get_string('showallhidden', 'grades'));
|
||||
$settings->add(new admin_setting_configselect('grade_report_user_showhiddenitems', get_string('showhiddenitems', 'grades'), get_string('showhiddenitems_help', 'grades'), 1, $options));
|
||||
|
||||
$settings->add(new admin_setting_configselect('grade_report_user_showtotalsifcontainhidden', get_string('hidetotalifhiddenitems', 'grades'),
|
||||
get_string('hidetotalifhiddenitems_help', 'grades'), GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN,
|
||||
array(GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN => get_string('hide'),
|
||||
GRADE_REPORT_SHOW_TOTAL_IF_CONTAINS_HIDDEN => get_string('hidetotalshowexhiddenitems', 'grades'),
|
||||
GRADE_REPORT_SHOW_REAL_TOTAL_IF_CONTAINS_HIDDEN => get_string('hidetotalshowinchiddenitems', 'grades'))));
|
||||
}
|
||||
|
@ -7090,6 +7090,7 @@ function get_plugin_list($plugintype) {
|
||||
unset($items);
|
||||
}
|
||||
|
||||
//TODO: implement better sorting once we migrated all plugin names to 'pluginname', ksort does not work for unicode, that is why we have to sort by the dir name, not the strings!
|
||||
ksort($result);
|
||||
return $result;
|
||||
}
|
||||
|
@ -1,18 +1,20 @@
|
||||
<?php
|
||||
|
||||
require_once($CFG->dirroot.'/mod/assignment/lib.php');
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if (isset($CFG->maxbytes)) {
|
||||
$settings->add(new admin_setting_configselect('assignment_maxbytes', get_string('maximumsize', 'assignment'),
|
||||
get_string('configmaxbytes', 'assignment'), 1048576, get_max_upload_sizes($CFG->maxbytes)));
|
||||
if ($ADMIN->fulltree) {
|
||||
require_once($CFG->dirroot.'/mod/assignment/lib.php');
|
||||
|
||||
if (isset($CFG->maxbytes)) {
|
||||
$settings->add(new admin_setting_configselect('assignment_maxbytes', get_string('maximumsize', 'assignment'),
|
||||
get_string('configmaxbytes', 'assignment'), 1048576, get_max_upload_sizes($CFG->maxbytes)));
|
||||
}
|
||||
|
||||
$options = array(ASSIGNMENT_COUNT_WORDS => trim(get_string('numwords', '', '?')),
|
||||
ASSIGNMENT_COUNT_LETTERS => trim(get_string('numletters', '', '?')));
|
||||
$settings->add(new admin_setting_configselect('assignment_itemstocount', get_string('itemstocount', 'assignment'),
|
||||
get_string('configitemstocount', 'assignment'), ASSIGNMENT_COUNT_WORDS, $options));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('assignment_showrecentsubmissions', get_string('showrecentsubmissions', 'assignment'),
|
||||
get_string('configshowrecentsubmissions', 'assignment'), 1));
|
||||
}
|
||||
|
||||
$options = array(ASSIGNMENT_COUNT_WORDS => trim(get_string('numwords', '')),
|
||||
ASSIGNMENT_COUNT_LETTERS => trim(get_string('numletters', '')));
|
||||
$settings->add(new admin_setting_configselect('assignment_itemstocount', get_string('itemstocount', 'assignment'),
|
||||
get_string('configitemstocount', 'assignment'), ASSIGNMENT_COUNT_WORDS, $options));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('assignment_showrecentsubmissions', get_string('showrecentsubmissions', 'assignment'),
|
||||
get_string('configshowrecentsubmissions', 'assignment'), 1));
|
||||
|
||||
|
||||
|
@ -1,48 +1,50 @@
|
||||
<?php
|
||||
|
||||
$settings->add(new admin_setting_heading('chat_method_heading', get_string('generalconfig', 'chat'),
|
||||
get_string('explaingeneralconfig', 'chat')));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$options = array();
|
||||
$options['ajax'] = get_string('methodajax', 'chat');
|
||||
$options['header_js'] = get_string('methodnormal', 'chat');
|
||||
$options['sockets'] = get_string('methoddaemon', 'chat');
|
||||
$settings->add(new admin_setting_configselect('chat_method', get_string('method', 'chat'),
|
||||
get_string('configmethod', 'chat'), 'ajax', $options));
|
||||
if ($ADMIN->fulltree) {
|
||||
$settings->add(new admin_setting_heading('chat_method_heading', get_string('generalconfig', 'chat'),
|
||||
get_string('explaingeneralconfig', 'chat')));
|
||||
|
||||
$settings->add(new admin_setting_configtext('chat_refresh_userlist', get_string('refreshuserlist', 'chat'),
|
||||
get_string('configrefreshuserlist', 'chat'), 10, PARAM_INT));
|
||||
$options = array();
|
||||
$options['ajax'] = get_string('methodajax', 'chat');
|
||||
$options['header_js'] = get_string('methodnormal', 'chat');
|
||||
$options['sockets'] = get_string('methoddaemon', 'chat');
|
||||
$settings->add(new admin_setting_configselect('chat_method', get_string('method', 'chat'),
|
||||
get_string('configmethod', 'chat'), 'ajax', $options));
|
||||
|
||||
$settings->add(new admin_setting_configtext('chat_old_ping', get_string('oldping', 'chat'),
|
||||
get_string('configoldping', 'chat'), 35, PARAM_INT));
|
||||
$settings->add(new admin_setting_configtext('chat_refresh_userlist', get_string('refreshuserlist', 'chat'),
|
||||
get_string('configrefreshuserlist', 'chat'), 10, PARAM_INT));
|
||||
|
||||
$settings->add(new admin_setting_configtext('chat_old_ping', get_string('oldping', 'chat'),
|
||||
get_string('configoldping', 'chat'), 35, PARAM_INT));
|
||||
|
||||
|
||||
$settings->add(new admin_setting_heading('chat_normal_heading', get_string('methodnormal', 'chat'),
|
||||
get_string('explainmethodnormal', 'chat')));
|
||||
$settings->add(new admin_setting_heading('chat_normal_heading', get_string('methodnormal', 'chat'),
|
||||
get_string('explainmethodnormal', 'chat')));
|
||||
|
||||
$settings->add(new admin_setting_configtext('chat_refresh_room', get_string('refreshroom', 'chat'),
|
||||
get_string('configrefreshroom', 'chat'), 5, PARAM_INT));
|
||||
$settings->add(new admin_setting_configtext('chat_refresh_room', get_string('refreshroom', 'chat'),
|
||||
get_string('configrefreshroom', 'chat'), 5, PARAM_INT));
|
||||
|
||||
$options = array();
|
||||
$options['jsupdate'] = get_string('normalkeepalive', 'chat');
|
||||
$options['jsupdated'] = get_string('normalstream', 'chat');
|
||||
$settings->add(new admin_setting_configselect('chat_normal_updatemode', get_string('updatemethod', 'chat'),
|
||||
get_string('confignormalupdatemode', 'chat'), 'jsupdate', $options));
|
||||
$options = array();
|
||||
$options['jsupdate'] = get_string('normalkeepalive', 'chat');
|
||||
$options['jsupdated'] = get_string('normalstream', 'chat');
|
||||
$settings->add(new admin_setting_configselect('chat_normal_updatemode', get_string('updatemethod', 'chat'),
|
||||
get_string('confignormalupdatemode', 'chat'), 'jsupdate', $options));
|
||||
|
||||
|
||||
$settings->add(new admin_setting_heading('chat_daemon_heading', get_string('methoddaemon', 'chat'),
|
||||
get_string('explainmethoddaemon', 'chat')));
|
||||
$settings->add(new admin_setting_heading('chat_daemon_heading', get_string('methoddaemon', 'chat'),
|
||||
get_string('explainmethoddaemon', 'chat')));
|
||||
|
||||
$settings->add(new admin_setting_configtext('chat_serverhost', get_string('serverhost', 'chat'),
|
||||
get_string('configserverhost', 'chat'), get_host_from_url($CFG->wwwroot)));
|
||||
$settings->add(new admin_setting_configtext('chat_serverhost', get_string('serverhost', 'chat'),
|
||||
get_string('configserverhost', 'chat'), get_host_from_url($CFG->wwwroot)));
|
||||
|
||||
$settings->add(new admin_setting_configtext('chat_serverip', get_string('serverip', 'chat'),
|
||||
get_string('configserverip', 'chat'), '127.0.0.1'));
|
||||
|
||||
$settings->add(new admin_setting_configtext('chat_serverport', get_string('serverport', 'chat'),
|
||||
get_string('configserverport', 'chat'), 9111, PARAM_INT));
|
||||
|
||||
$settings->add(new admin_setting_configtext('chat_servermax', get_string('servermax', 'chat'),
|
||||
get_string('configservermax', 'chat'), 100, PARAM_INT));
|
||||
$settings->add(new admin_setting_configtext('chat_serverip', get_string('serverip', 'chat'),
|
||||
get_string('configserverip', 'chat'), '127.0.0.1'));
|
||||
|
||||
$settings->add(new admin_setting_configtext('chat_serverport', get_string('serverport', 'chat'),
|
||||
get_string('configserverport', 'chat'), 9111, PARAM_INT));
|
||||
|
||||
$settings->add(new admin_setting_configtext('chat_servermax', get_string('servermax', 'chat'),
|
||||
get_string('configservermax', 'chat'), 100, PARAM_INT));
|
||||
}
|
||||
|
@ -1,14 +1,16 @@
|
||||
<?php
|
||||
|
||||
if (empty($CFG->enablerssfeeds)) {
|
||||
$options = array(0 => get_string('rssglobaldisabled', 'admin'));
|
||||
$str = get_string('configenablerssfeeds', 'data').'<br />'.get_string('configenablerssfeedsdisabled2', 'admin');
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
} else {
|
||||
$options = array(0=>get_string('no'), 1=>get_string('yes'));
|
||||
$str = get_string('configenablerssfeeds', 'data');
|
||||
if ($ADMIN->fulltree) {
|
||||
if (empty($CFG->enablerssfeeds)) {
|
||||
$options = array(0 => get_string('rssglobaldisabled', 'admin'));
|
||||
$str = get_string('configenablerssfeeds', 'data').'<br />'.get_string('configenablerssfeedsdisabled2', 'admin');
|
||||
|
||||
} else {
|
||||
$options = array(0=>get_string('no'), 1=>get_string('yes'));
|
||||
$str = get_string('configenablerssfeeds', 'data');
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('data_enablerssfeeds', get_string('enablerssfeeds', 'admin'),
|
||||
$str, 0, $options));
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('data_enablerssfeeds', get_string('enablerssfeeds', 'admin'),
|
||||
$str, 0, $options));
|
||||
|
||||
|
||||
|
@ -1,8 +1,10 @@
|
||||
<?php //$Id$
|
||||
<?php
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
$options = array(0=>get_string('no'), 1=>get_string('yes'));
|
||||
$str = get_string('configallowfullanonymous', 'feedback');
|
||||
$settings->add(new admin_setting_configselect('feedback_allowfullanonymous', get_string('allowfullanonymous', 'feedback'),
|
||||
$str, 0, $options));
|
||||
|
||||
?>
|
||||
}
|
@ -23,6 +23,8 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
//--- general settings -----------------------------------------------------------------------------------
|
||||
$settings->add(new admin_setting_configcheckbox('folder/requiremodintro',
|
||||
|
@ -21,75 +21,78 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
require_once($CFG->dirroot.'/mod/forum/lib.php');
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$settings->add(new admin_setting_configselect('forum_displaymode', get_string('displaymode', 'forum'),
|
||||
get_string('configdisplaymode', 'forum'), FORUM_MODE_NESTED, forum_get_layout_modes()));
|
||||
if ($ADMIN->fulltree) {
|
||||
require_once($CFG->dirroot.'/mod/forum/lib.php');
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('forum_replytouser', get_string('replytouser', 'forum'),
|
||||
get_string('configreplytouser', 'forum'), 1));
|
||||
$settings->add(new admin_setting_configselect('forum_displaymode', get_string('displaymode', 'forum'),
|
||||
get_string('configdisplaymode', 'forum'), FORUM_MODE_NESTED, forum_get_layout_modes()));
|
||||
|
||||
// Less non-HTML characters than this is short
|
||||
$settings->add(new admin_setting_configtext('forum_shortpost', get_string('shortpost', 'forum'),
|
||||
get_string('configshortpost', 'forum'), 300, PARAM_INT));
|
||||
$settings->add(new admin_setting_configcheckbox('forum_replytouser', get_string('replytouser', 'forum'),
|
||||
get_string('configreplytouser', 'forum'), 1));
|
||||
|
||||
// More non-HTML characters than this is long
|
||||
$settings->add(new admin_setting_configtext('forum_longpost', get_string('longpost', 'forum'),
|
||||
get_string('configlongpost', 'forum'), 600, PARAM_INT));
|
||||
// Less non-HTML characters than this is short
|
||||
$settings->add(new admin_setting_configtext('forum_shortpost', get_string('shortpost', 'forum'),
|
||||
get_string('configshortpost', 'forum'), 300, PARAM_INT));
|
||||
|
||||
// Number of discussions on a page
|
||||
$settings->add(new admin_setting_configtext('forum_manydiscussions', get_string('manydiscussions', 'forum'),
|
||||
get_string('configmanydiscussions', 'forum'), 100, PARAM_INT));
|
||||
// More non-HTML characters than this is long
|
||||
$settings->add(new admin_setting_configtext('forum_longpost', get_string('longpost', 'forum'),
|
||||
get_string('configlongpost', 'forum'), 600, PARAM_INT));
|
||||
|
||||
if (isset($CFG->maxbytes)) {
|
||||
$settings->add(new admin_setting_configselect('forum_maxbytes', get_string('maxattachmentsize', 'forum'),
|
||||
get_string('configmaxbytes', 'forum'), 512000, get_max_upload_sizes($CFG->maxbytes)));
|
||||
// Number of discussions on a page
|
||||
$settings->add(new admin_setting_configtext('forum_manydiscussions', get_string('manydiscussions', 'forum'),
|
||||
get_string('configmanydiscussions', 'forum'), 100, PARAM_INT));
|
||||
|
||||
if (isset($CFG->maxbytes)) {
|
||||
$settings->add(new admin_setting_configselect('forum_maxbytes', get_string('maxattachmentsize', 'forum'),
|
||||
get_string('configmaxbytes', 'forum'), 512000, get_max_upload_sizes($CFG->maxbytes)));
|
||||
}
|
||||
|
||||
// Default number of attachments allowed per post in all forums
|
||||
$settings->add(new admin_setting_configtext('forum_maxattachments', get_string('maxattachments', 'forum'),
|
||||
get_string('configmaxattachments', 'forum'), 100, PARAM_INT));
|
||||
|
||||
// Default whether user needs to mark a post as read
|
||||
$settings->add(new admin_setting_configcheckbox('forum_trackreadposts', get_string('trackforum', 'forum'),
|
||||
get_string('configtrackreadposts', 'forum'), 1));
|
||||
|
||||
// Default number of days that a post is considered old
|
||||
$settings->add(new admin_setting_configtext('forum_oldpostdays', get_string('oldpostdays', 'forum'),
|
||||
get_string('configoldpostdays', 'forum'), 14, PARAM_INT));
|
||||
|
||||
// Default whether user needs to mark a post as read
|
||||
$settings->add(new admin_setting_configcheckbox('forum_usermarksread', get_string('usermarksread', 'forum'),
|
||||
get_string('configusermarksread', 'forum'), 0));
|
||||
|
||||
// Default time (hour) to execute 'clean_read_records' cron
|
||||
$options = array();
|
||||
for ($i=0; $i<24; $i++) {
|
||||
$options[$i] = $i;
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('forum_cleanreadtime', get_string('cleanreadtime', 'forum'),
|
||||
get_string('configcleanreadtime', 'forum'), 2, $options));
|
||||
|
||||
|
||||
if (empty($CFG->enablerssfeeds)) {
|
||||
$options = array(0 => get_string('rssglobaldisabled', 'admin'));
|
||||
$str = get_string('configenablerssfeeds', 'forum').'<br />'.get_string('configenablerssfeedsdisabled2', 'admin');
|
||||
|
||||
} else {
|
||||
$options = array(0=>get_string('no'), 1=>get_string('yes'));
|
||||
$str = get_string('configenablerssfeeds', 'forum');
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('forum_enablerssfeeds', get_string('enablerssfeeds', 'admin'),
|
||||
$str, 0, $options));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('forum_enabletimedposts', get_string('timedposts', 'forum'),
|
||||
get_string('configenabletimedposts', 'forum'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('forum_logblocked', get_string('logblocked', 'forum'),
|
||||
get_string('configlogblocked', 'forum'), 1));
|
||||
|
||||
//no using the central ajax setting for ratings. MDL-21657
|
||||
//$settings->add(new admin_setting_configcheckbox('forum_ajaxrating', get_string('ajaxrating', 'forum'),
|
||||
// get_string('configajaxrating', 'forum'), 0));
|
||||
}
|
||||
|
||||
// Default number of attachments allowed per post in all forums
|
||||
$settings->add(new admin_setting_configtext('forum_maxattachments', get_string('maxattachments', 'forum'),
|
||||
get_string('configmaxattachments', 'forum'), 100, PARAM_INT));
|
||||
|
||||
// Default whether user needs to mark a post as read
|
||||
$settings->add(new admin_setting_configcheckbox('forum_trackreadposts', get_string('trackforum', 'forum'),
|
||||
get_string('configtrackreadposts', 'forum'), 1));
|
||||
|
||||
// Default number of days that a post is considered old
|
||||
$settings->add(new admin_setting_configtext('forum_oldpostdays', get_string('oldpostdays', 'forum'),
|
||||
get_string('configoldpostdays', 'forum'), 14, PARAM_INT));
|
||||
|
||||
// Default whether user needs to mark a post as read
|
||||
$settings->add(new admin_setting_configcheckbox('forum_usermarksread', get_string('usermarksread', 'forum'),
|
||||
get_string('configusermarksread', 'forum'), 0));
|
||||
|
||||
// Default time (hour) to execute 'clean_read_records' cron
|
||||
$options = array();
|
||||
for ($i=0; $i<24; $i++) {
|
||||
$options[$i] = $i;
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('forum_cleanreadtime', get_string('cleanreadtime', 'forum'),
|
||||
get_string('configcleanreadtime', 'forum'), 2, $options));
|
||||
|
||||
|
||||
if (empty($CFG->enablerssfeeds)) {
|
||||
$options = array(0 => get_string('rssglobaldisabled', 'admin'));
|
||||
$str = get_string('configenablerssfeeds', 'forum').'<br />'.get_string('configenablerssfeedsdisabled2', 'admin');
|
||||
|
||||
} else {
|
||||
$options = array(0=>get_string('no'), 1=>get_string('yes'));
|
||||
$str = get_string('configenablerssfeeds', 'forum');
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('forum_enablerssfeeds', get_string('enablerssfeeds', 'admin'),
|
||||
$str, 0, $options));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('forum_enabletimedposts', get_string('timedposts', 'forum'),
|
||||
get_string('configenabletimedposts', 'forum'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('forum_logblocked', get_string('logblocked', 'forum'),
|
||||
get_string('configlogblocked', 'forum'), 1));
|
||||
|
||||
//no using the central ajax setting for ratings. MDL-21657
|
||||
//$settings->add(new admin_setting_configcheckbox('forum_ajaxrating', get_string('ajaxrating', 'forum'),
|
||||
// get_string('configajaxrating', 'forum'), 0));
|
||||
|
||||
|
||||
|
@ -1,82 +1,85 @@
|
||||
<?php
|
||||
|
||||
require_once($CFG->dirroot.'/mod/glossary/lib.php');
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$settings->add(new admin_setting_heading('glossary_normal_header', get_string('glossaryleveldefaultsettings', 'glossary'), ''));
|
||||
if ($ADMIN->fulltree) {
|
||||
require_once($CFG->dirroot.'/mod/glossary/lib.php');
|
||||
|
||||
$settings->add(new admin_setting_configtext('glossary_entbypage', get_string('entbypage', 'glossary'),
|
||||
get_string('entbypage', 'glossary'), 10, PARAM_INT));
|
||||
$settings->add(new admin_setting_heading('glossary_normal_header', get_string('glossaryleveldefaultsettings', 'glossary'), ''));
|
||||
|
||||
$settings->add(new admin_setting_configtext('glossary_entbypage', get_string('entbypage', 'glossary'),
|
||||
get_string('entbypage', 'glossary'), 10, PARAM_INT));
|
||||
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_dupentries', get_string('allowduplicatedentries', 'glossary'),
|
||||
get_string('cnfallowdupentries', 'glossary'), 0));
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_dupentries', get_string('allowduplicatedentries', 'glossary'),
|
||||
get_string('cnfallowdupentries', 'glossary'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_allowcomments', get_string('allowcomments', 'glossary'),
|
||||
get_string('cnfallowcomments', 'glossary'), 0));
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_allowcomments', get_string('allowcomments', 'glossary'),
|
||||
get_string('cnfallowcomments', 'glossary'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_linkbydefault', get_string('usedynalink', 'glossary'),
|
||||
get_string('cnflinkglossaries', 'glossary'), 1));
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_linkbydefault', get_string('usedynalink', 'glossary'),
|
||||
get_string('cnflinkglossaries', 'glossary'), 1));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_defaultapproval', get_string('defaultapproval', 'glossary'),
|
||||
get_string('cnfapprovalstatus', 'glossary'), 1));
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_defaultapproval', get_string('defaultapproval', 'glossary'),
|
||||
get_string('cnfapprovalstatus', 'glossary'), 1));
|
||||
|
||||
|
||||
if (empty($CFG->enablerssfeeds)) {
|
||||
$options = array(0 => get_string('rssglobaldisabled', 'admin'));
|
||||
$str = get_string('configenablerssfeeds', 'glossary').'<br />'.get_string('configenablerssfeedsdisabled2', 'admin');
|
||||
if (empty($CFG->enablerssfeeds)) {
|
||||
$options = array(0 => get_string('rssglobaldisabled', 'admin'));
|
||||
$str = get_string('configenablerssfeeds', 'glossary').'<br />'.get_string('configenablerssfeedsdisabled2', 'admin');
|
||||
|
||||
} else {
|
||||
$options = array(0=>get_string('no'), 1=>get_string('yes'));
|
||||
$str = get_string('configenablerssfeeds', 'glossary');
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('glossary_enablerssfeeds', get_string('enablerssfeeds', 'admin'),
|
||||
$str, 0, $options));
|
||||
|
||||
|
||||
$settings->add(new admin_setting_heading('glossary_levdev_header', get_string('entryleveldefaultsettings', 'glossary'), ''));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_linkentries', get_string('usedynalink', 'glossary'),
|
||||
get_string('cnflinkentry', 'glossary'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_casesensitive', get_string('casesensitive', 'glossary'),
|
||||
get_string('cnfcasesensitive', 'glossary'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_fullmatch', get_string('fullmatch', 'glossary'),
|
||||
get_string('cnffullmatch', 'glossary'), 0));
|
||||
|
||||
|
||||
//Update and get available formats
|
||||
$recformats = glossary_get_available_formats();
|
||||
$formats = array();
|
||||
//Take names
|
||||
foreach ($recformats as $format) {
|
||||
$formats[$format->id] = get_string("displayformat$format->name", "glossary");
|
||||
}
|
||||
asort($formats);
|
||||
|
||||
$str = '<table>';
|
||||
$pixpath = "$CFG->wwwroot/pix"; // ugly temporary hack until we get this rewritten to new setting
|
||||
// TODO MDL-19674 We cannot refer to $CFG->pixpath here. This code is executed
|
||||
// when the structure of the admin tree is being build. $CFG->pixpath is only
|
||||
// set up once output has started.
|
||||
foreach ($formats as $formatid=>$formatname) {
|
||||
$recformat = $DB->get_record('glossary_formats', array('id'=>$formatid));
|
||||
$str .= '<tr>';
|
||||
$str .= '<td>' . $formatname . '</td>';
|
||||
$eicon = "<a title=\"".get_string("edit")."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img class=\"iconsmall\" src=\"$pixpath/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
|
||||
if ( $recformat->visible ) {
|
||||
$vtitle = get_string("hide");
|
||||
$vicon = "hide.gif";
|
||||
} else {
|
||||
$vtitle = get_string("show");
|
||||
$vicon = "show.gif";
|
||||
$options = array(0=>get_string('no'), 1=>get_string('yes'));
|
||||
$str = get_string('configenablerssfeeds', 'glossary');
|
||||
}
|
||||
$vicon = "<a title=\"".$vtitle."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible&sesskey=".sesskey()."\"><img class=\"iconsmall\" src=\"$pixpath/t/".$vicon."\" alt=\"$vtitle\" /></a>";
|
||||
$settings->add(new admin_setting_configselect('glossary_enablerssfeeds', get_string('enablerssfeeds', 'admin'),
|
||||
$str, 0, $options));
|
||||
|
||||
$str .= '<td align="center">'.$eicon.' '.$vicon.'</td>';
|
||||
$str .= '</tr>';
|
||||
|
||||
$settings->add(new admin_setting_heading('glossary_levdev_header', get_string('entryleveldefaultsettings', 'glossary'), ''));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_linkentries', get_string('usedynalink', 'glossary'),
|
||||
get_string('cnflinkentry', 'glossary'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_casesensitive', get_string('casesensitive', 'glossary'),
|
||||
get_string('cnfcasesensitive', 'glossary'), 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('glossary_fullmatch', get_string('fullmatch', 'glossary'),
|
||||
get_string('cnffullmatch', 'glossary'), 0));
|
||||
|
||||
|
||||
//Update and get available formats
|
||||
$recformats = glossary_get_available_formats();
|
||||
$formats = array();
|
||||
//Take names
|
||||
foreach ($recformats as $format) {
|
||||
$formats[$format->id] = get_string("displayformat$format->name", "glossary");
|
||||
}
|
||||
asort($formats);
|
||||
|
||||
$str = '<table>';
|
||||
$pixpath = "$CFG->wwwroot/pix"; // ugly temporary hack until we get this rewritten to new setting
|
||||
// TODO MDL-19674 We cannot refer to $CFG->pixpath here. This code is executed
|
||||
// when the structure of the admin tree is being build. $CFG->pixpath is only
|
||||
// set up once output has started.
|
||||
foreach ($formats as $formatid=>$formatname) {
|
||||
$recformat = $DB->get_record('glossary_formats', array('id'=>$formatid));
|
||||
$str .= '<tr>';
|
||||
$str .= '<td>' . $formatname . '</td>';
|
||||
$eicon = "<a title=\"".get_string("edit")."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img class=\"iconsmall\" src=\"$pixpath/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
|
||||
if ( $recformat->visible ) {
|
||||
$vtitle = get_string("hide");
|
||||
$vicon = "hide.gif";
|
||||
} else {
|
||||
$vtitle = get_string("show");
|
||||
$vicon = "show.gif";
|
||||
}
|
||||
$vicon = "<a title=\"".$vtitle."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible&sesskey=".sesskey()."\"><img class=\"iconsmall\" src=\"$pixpath/t/".$vicon."\" alt=\"$vtitle\" /></a>";
|
||||
|
||||
$str .= '<td align="center">'.$eicon.' '.$vicon.'</td>';
|
||||
$str .= '</tr>';
|
||||
}
|
||||
$str .= '</table>';
|
||||
|
||||
$settings->add(new admin_setting_heading('glossary_formats_header', get_string('displayformatssetup', 'glossary'), $str));
|
||||
}
|
||||
$str .= '</table>';
|
||||
|
||||
$settings->add(new admin_setting_heading('glossary_formats_header', get_string('displayformatssetup', 'glossary'), $str));
|
||||
|
||||
|
@ -1,9 +1,11 @@
|
||||
<?php
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('hotpot_showtimes', get_string('showtimes', 'hotpot'),
|
||||
get_string('configshowtimes', 'hotpot'), 0) );
|
||||
|
||||
$settings->add(new admin_setting_configtext('hotpot_excelencodings', get_string('excelencodings', 'hotpot'),
|
||||
get_string('configexcelencodings', 'hotpot'), '') );
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
$settings->add(new admin_setting_configcheckbox('hotpot_showtimes', get_string('showtimes', 'hotpot'),
|
||||
get_string('configshowtimes', 'hotpot'), 0) );
|
||||
|
||||
$settings->add(new admin_setting_configtext('hotpot_excelencodings', get_string('excelencodings', 'hotpot'),
|
||||
get_string('configexcelencodings', 'hotpot'), '') );
|
||||
}
|
||||
|
@ -23,6 +23,8 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
|
||||
//--- general settings -----------------------------------------------------------------------------------
|
||||
|
@ -23,43 +23,47 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or late
|
||||
**/
|
||||
|
||||
require_once($CFG->dirroot.'/mod/lesson/locallib.php');
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
/** Slideshow settings */
|
||||
$settings->add(new admin_setting_configtext('lesson_slideshowwidth', get_string('slideshowwidth', 'lesson'),
|
||||
get_string('configslideshowwidth', 'lesson'), 640, PARAM_INT));
|
||||
if ($ADMIN->fulltree) {
|
||||
require_once($CFG->dirroot.'/mod/lesson/locallib.php');
|
||||
|
||||
$settings->add(new admin_setting_configtext('lesson_slideshowheight', get_string('slideshowheight', 'lesson'),
|
||||
get_string('configslideshowheight', 'lesson'), 480, PARAM_INT));
|
||||
/** Slideshow settings */
|
||||
$settings->add(new admin_setting_configtext('lesson_slideshowwidth', get_string('slideshowwidth', 'lesson'),
|
||||
get_string('configslideshowwidth', 'lesson'), 640, PARAM_INT));
|
||||
|
||||
$settings->add(new admin_setting_configtext('lesson_slideshowbgcolor', get_string('slideshowbgcolor', 'lesson'),
|
||||
get_string('configslideshowbgcolor', 'lesson'), '#FFFFFF', PARAM_TEXT));
|
||||
$settings->add(new admin_setting_configtext('lesson_slideshowheight', get_string('slideshowheight', 'lesson'),
|
||||
get_string('configslideshowheight', 'lesson'), 480, PARAM_INT));
|
||||
|
||||
/** Media file popup settings */
|
||||
$settings->add(new admin_setting_configtext('lesson_mediawidth', get_string('mediawidth', 'lesson'),
|
||||
get_string('configmediawidth', 'lesson'), 640, PARAM_INT));
|
||||
$settings->add(new admin_setting_configtext('lesson_slideshowbgcolor', get_string('slideshowbgcolor', 'lesson'),
|
||||
get_string('configslideshowbgcolor', 'lesson'), '#FFFFFF', PARAM_TEXT));
|
||||
|
||||
$settings->add(new admin_setting_configtext('lesson_mediaheight', get_string('mediaheight', 'lesson'),
|
||||
get_string('configmediaheight', 'lesson'), 480, PARAM_INT));
|
||||
/** Media file popup settings */
|
||||
$settings->add(new admin_setting_configtext('lesson_mediawidth', get_string('mediawidth', 'lesson'),
|
||||
get_string('configmediawidth', 'lesson'), 640, PARAM_INT));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('lesson_mediaclose', get_string('mediaclose', 'lesson'),
|
||||
get_string('configmediaclose', 'lesson'), false, PARAM_TEXT));
|
||||
$settings->add(new admin_setting_configtext('lesson_mediaheight', get_string('mediaheight', 'lesson'),
|
||||
get_string('configmediaheight', 'lesson'), 480, PARAM_INT));
|
||||
|
||||
/** Misc lesson settings */
|
||||
$settings->add(new admin_setting_configtext('lesson_maxhighscores', get_string('maxhighscores', 'lesson'),
|
||||
get_string('configmaxhighscores','lesson'), 10, PARAM_INT));
|
||||
$settings->add(new admin_setting_configcheckbox('lesson_mediaclose', get_string('mediaclose', 'lesson'),
|
||||
get_string('configmediaclose', 'lesson'), false, PARAM_TEXT));
|
||||
|
||||
/** Default lesson settings */
|
||||
$numbers = array();
|
||||
for ($i=20; $i>1; $i--) {
|
||||
$numbers[$i] = $i;
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('lesson_maxanswers', get_string('maximumnumberofanswersbranches','lesson'),
|
||||
get_string('configmaxanswers', 'lesson'), 4, $numbers));
|
||||
/** Misc lesson settings */
|
||||
$settings->add(new admin_setting_configtext('lesson_maxhighscores', get_string('maxhighscores', 'lesson'),
|
||||
get_string('configmaxhighscores','lesson'), 10, PARAM_INT));
|
||||
|
||||
$defaultnextpages = array();
|
||||
$defaultnextpages[0] = get_string("normal", "lesson");
|
||||
$defaultnextpages[LESSON_UNSEENPAGE] = get_string("showanunseenpage", "lesson");
|
||||
$defaultnextpages[LESSON_UNANSWEREDPAGE] = get_string("showanunansweredpage", "lesson");
|
||||
$settings->add(new admin_setting_configselect('lesson_defaultnextpage', get_string('actionaftercorrectanswer','lesson'),
|
||||
get_string('configactionaftercorrectanswer', 'lesson'), 0, $defaultnextpages));
|
||||
/** Default lesson settings */
|
||||
$numbers = array();
|
||||
for ($i=20; $i>1; $i--) {
|
||||
$numbers[$i] = $i;
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('lesson_maxanswers', get_string('maximumnumberofanswersbranches','lesson'),
|
||||
get_string('configmaxanswers', 'lesson'), 4, $numbers));
|
||||
|
||||
$defaultnextpages = array();
|
||||
$defaultnextpages[0] = get_string("normal", "lesson");
|
||||
$defaultnextpages[LESSON_UNSEENPAGE] = get_string("showanunseenpage", "lesson");
|
||||
$defaultnextpages[LESSON_UNANSWEREDPAGE] = get_string("showanunansweredpage", "lesson");
|
||||
$settings->add(new admin_setting_configselect('lesson_defaultnextpage', get_string('actionaftercorrectanswer','lesson'),
|
||||
get_string('configactionaftercorrectanswer', 'lesson'), 0, $defaultnextpages));
|
||||
}
|
@ -23,6 +23,8 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
require_once("$CFG->libdir/resourcelib.php");
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
* @package quiz
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
require_once($CFG->dirroot . '/mod/quiz/lib.php');
|
||||
require_once($CFG->dirroot . '/mod/quiz/settingslib.php');
|
||||
|
||||
@ -165,6 +167,7 @@ if (empty($reportsbyname)) {
|
||||
/// Add the report pages for the settings.php files in sub directories of mod/quiz/report
|
||||
foreach ($reportsbyname as $strreportname => $report) {
|
||||
$reportname = $report;
|
||||
|
||||
$settings = new admin_settingpage('modsettingsquizcat'.$reportname, $strreportname, 'moodle/site:config', !$module->visible);
|
||||
if ($ADMIN->fulltree) {
|
||||
include($CFG->dirroot."/mod/quiz/report/$reportname/settings.php");
|
||||
@ -172,3 +175,5 @@ if (empty($reportsbyname)) {
|
||||
$ADMIN->add('modsettingsquizcat', $settings);
|
||||
}
|
||||
}
|
||||
|
||||
$settings = NULL; // we do not want standard settings link
|
@ -23,6 +23,8 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
require_once("$CFG->libdir/resourcelib.php");
|
||||
|
||||
|
@ -1,61 +1,65 @@
|
||||
<?php
|
||||
require_once($CFG->dirroot . '/mod/scorm/locallib.php');
|
||||
$yesno = array(0 => get_string('no'),
|
||||
1 => get_string('yes'));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/grademethod', get_string('grademethod', 'scorm'),get_string('grademethoddesc', 'scorm'), GRADEHIGHEST, scorm_get_grade_method_array()));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
require_once($CFG->dirroot . '/mod/scorm/locallib.php');
|
||||
$yesno = array(0 => get_string('no'),
|
||||
1 => get_string('yes'));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/grademethod', get_string('grademethod', 'scorm'),get_string('grademethoddesc', 'scorm'), GRADEHIGHEST, scorm_get_grade_method_array()));
|
||||
|
||||
for ($i=0; $i<=100; $i++) {
|
||||
$grades[$i] = "$i";
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('scorm/maxgrade', get_string('maximumgrade'),get_string('maximumgradedesc','scorm'), 100, $grades));
|
||||
|
||||
$settings->add(new admin_setting_configtext('scorm/maxattempts', get_string('maximumattempts', 'scorm'), '', 0, PARAM_INT));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/displayattemptstatus', get_string('displayattemptstatus', 'scorm'),get_string('displayattemptstatusdesc', 'scorm'),0,$yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/displaycoursestructure', get_string('displaycoursestructure', 'scorm'),get_string('displaycoursestructuredesc', 'scorm'),0,$yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/forcecompleted', get_string('forcecompleted', 'scorm'),get_string('forcecompleteddesc', 'scorm'),0,$yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/forcenewattempt', get_string('forcenewattempt', 'scorm'),get_string('forcenewattemptdesc', 'scorm'),0,$yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/lastattemptlock', get_string('lastattemptlock', 'scorm'),get_string('lastattemptlockdesc', 'scorm'),0,$yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/whatgrade', get_string('whatgrade', 'scorm'), get_string('whatgradedesc', 'scorm'), HIGHESTATTEMPT, scorm_get_what_grade_array()));
|
||||
|
||||
$settings->add(new admin_setting_configtext('scorm/framewidth', get_string('width', 'scorm'), get_string('framewidth', 'scorm'), 100));
|
||||
|
||||
$settings->add(new admin_setting_configtext('scorm/frameheight', get_string('height', 'scorm'), get_string('frameheight', 'scorm'), 500));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/popup', get_string('display','scorm'), get_string('displaydesc','scorm'), 0, scorm_get_popup_display_array()));
|
||||
|
||||
foreach(scorm_get_popup_options_array() as $key => $value){
|
||||
$settings->add(new admin_setting_configcheckbox('scorm/'.$key, get_string($key, 'scorm'),'',$value));
|
||||
}
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/skipview', get_string('skipview', 'scorm'), get_string('skipviewdesc', 'scorm'), 0, scorm_get_skip_view_array()));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/hidebrowse', get_string('hidebrowse', 'scorm'), get_string('hidebrowsedesc', 'scorm'), 0, $yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/hidetoc', get_string('hidetoc', 'scorm'), get_string('hidetocdesc', 'scorm'), 0, scorm_get_hidetoc_array()));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/hidenav', get_string('hidenav', 'scorm'), get_string('hidenavdesc', 'scorm'), 0, $yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/auto', get_string('autocontinue', 'scorm'), get_string('autocontinuedesc', 'scorm'), 0, $yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/updatefreq', get_string('updatefreq', 'scorm'), get_string('updatefreqdesc', 'scorm'), 0, scorm_get_updatefreq_array()));
|
||||
|
||||
$settings->add(new admin_setting_configtext('scorm/updatetime', get_string('updatetime', 'scorm'), '', 2, PARAM_INT));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('scorm/allowtypeexternal', get_string('allowtypeexternal', 'scorm'), '', 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('scorm/allowtypelocalsync', get_string('allowtypelocalsync', 'scorm'), '', 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('scorm/allowtypeimsrepository', get_string('allowtypeimsrepository', 'scorm'), '', 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('scorm/allowapidebug', get_string('allowapidebug', 'scorm'), '', 0));
|
||||
|
||||
$settings->add(new admin_setting_configtext('scorm/apidebugmask', get_string('apidebugmask', 'scorm'), '', '/.*/'));
|
||||
|
||||
for ($i=0; $i<=100; $i++) {
|
||||
$grades[$i] = "$i";
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('scorm/maxgrade', get_string('maximumgrade'),get_string('maximumgradedesc','scorm'), 100, $grades));
|
||||
|
||||
$settings->add(new admin_setting_configtext('scorm/maxattempts', get_string('maximumattempts', 'scorm'), '', 0, PARAM_INT));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/displayattemptstatus', get_string('displayattemptstatus', 'scorm'),get_string('displayattemptstatusdesc', 'scorm'),0,$yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/displaycoursestructure', get_string('displaycoursestructure', 'scorm'),get_string('displaycoursestructuredesc', 'scorm'),0,$yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/forcecompleted', get_string('forcecompleted', 'scorm'),get_string('forcecompleteddesc', 'scorm'),0,$yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/forcenewattempt', get_string('forcenewattempt', 'scorm'),get_string('forcenewattemptdesc', 'scorm'),0,$yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/lastattemptlock', get_string('lastattemptlock', 'scorm'),get_string('lastattemptlockdesc', 'scorm'),0,$yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/whatgrade', get_string('whatgrade', 'scorm'), get_string('whatgradedesc', 'scorm'), HIGHESTATTEMPT, scorm_get_what_grade_array()));
|
||||
|
||||
$settings->add(new admin_setting_configtext('scorm/framewidth', get_string('width', 'scorm'), get_string('framewidth', 'scorm'), 100));
|
||||
|
||||
$settings->add(new admin_setting_configtext('scorm/frameheight', get_string('height', 'scorm'), get_string('frameheight', 'scorm'), 500));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/popup', get_string('display','scorm'), get_string('displaydesc','scorm'), 0, scorm_get_popup_display_array()));
|
||||
|
||||
foreach(scorm_get_popup_options_array() as $key => $value){
|
||||
$settings->add(new admin_setting_configcheckbox('scorm/'.$key, get_string($key, 'scorm'),'',$value));
|
||||
}
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/skipview', get_string('skipview', 'scorm'), get_string('skipviewdesc', 'scorm'), 0, scorm_get_skip_view_array()));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/hidebrowse', get_string('hidebrowse', 'scorm'), get_string('hidebrowsedesc', 'scorm'), 0, $yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/hidetoc', get_string('hidetoc', 'scorm'), get_string('hidetocdesc', 'scorm'), 0, scorm_get_hidetoc_array()));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/hidenav', get_string('hidenav', 'scorm'), get_string('hidenavdesc', 'scorm'), 0, $yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/auto', get_string('autocontinue', 'scorm'), get_string('autocontinuedesc', 'scorm'), 0, $yesno));
|
||||
|
||||
$settings->add(new admin_setting_configselect('scorm/updatefreq', get_string('updatefreq', 'scorm'), get_string('updatefreqdesc', 'scorm'), 0, scorm_get_updatefreq_array()));
|
||||
|
||||
$settings->add(new admin_setting_configtext('scorm/updatetime', get_string('updatetime', 'scorm'), '', 2, PARAM_INT));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('scorm/allowtypeexternal', get_string('allowtypeexternal', 'scorm'), '', 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('scorm/allowtypelocalsync', get_string('allowtypelocalsync', 'scorm'), '', 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('scorm/allowtypeimsrepository', get_string('allowtypeimsrepository', 'scorm'), '', 0));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox('scorm/allowapidebug', get_string('allowapidebug', 'scorm'), '', 0));
|
||||
|
||||
$settings->add(new admin_setting_configtext('scorm/apidebugmask', get_string('apidebugmask', 'scorm'), '', '/.*/'));
|
||||
|
||||
|
||||
|
@ -38,6 +38,7 @@ required changes in code:
|
||||
* replace helps with new 'xxx_hlp' strings
|
||||
|
||||
optional - no changes needed in older code:
|
||||
* settingstree.php replaced by settings.php - just unset the $settings if you want to make custom part of settings admin tree
|
||||
* support for new mforms editor element and embedded files
|
||||
(not finished yet)
|
||||
* portfolio support
|
||||
|
@ -23,6 +23,8 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
if ($ADMIN->fulltree) {
|
||||
require_once("$CFG->libdir/resourcelib.php");
|
||||
|
||||
|
@ -27,63 +27,66 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
require_once($CFG->dirroot.'/mod/workshop/locallib.php');
|
||||
if ($ADMIN->fulltree) {
|
||||
require_once($CFG->dirroot.'/mod/workshop/locallib.php'); //TODO: do not include this here, we do not want ws code in each page!!
|
||||
|
||||
$grades = workshop::available_maxgrades_list();
|
||||
$grades = workshop::available_maxgrades_list();
|
||||
|
||||
$settings->add(new admin_setting_configselect('workshop/grade', get_string('submissiongrade', 'workshop'),
|
||||
get_string('configgrade', 'workshop'), 80, $grades));
|
||||
$settings->add(new admin_setting_configselect('workshop/grade', get_string('submissiongrade', 'workshop'),
|
||||
get_string('configgrade', 'workshop'), 80, $grades));
|
||||
|
||||
$settings->add(new admin_setting_configselect('workshop/gradinggrade', get_string('gradinggrade', 'workshop'),
|
||||
get_string('configgradinggrade', 'workshop'), 20, $grades));
|
||||
$settings->add(new admin_setting_configselect('workshop/gradinggrade', get_string('gradinggrade', 'workshop'),
|
||||
get_string('configgradinggrade', 'workshop'), 20, $grades));
|
||||
|
||||
$options = array();
|
||||
for ($i = 5; $i >= 0; $i--) {
|
||||
$options[$i] = $i;
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('workshop/gradedecimals', get_string('gradedecimals', 'workshop'),
|
||||
get_string('configgradedecimals', 'workshop'), 0, $options));
|
||||
|
||||
if (isset($CFG->maxbytes)) {
|
||||
$options = get_max_upload_sizes($CFG->maxbytes);
|
||||
$options[0] = get_string('courseuploadlimit');
|
||||
$settings->add(new admin_setting_configselect('workshop/maxbytes', get_string('maxbytes', 'workshop'),
|
||||
get_string('configmaxbytes', 'workshop'), 0, $options));
|
||||
}
|
||||
|
||||
$settings->add(new admin_setting_configselect('workshop/strategy', get_string('strategy', 'workshop'),
|
||||
get_string('configstrategy', 'workshop'), 'accumulative', workshop::available_strategies_list()));
|
||||
|
||||
$options = workshop::available_example_modes_list();
|
||||
$settings->add(new admin_setting_configselect('workshop/examplesmode', get_string('examplesmode', 'workshop'),
|
||||
get_string('configexamplesmode', 'workshop'), workshop::EXAMPLES_VOLUNTARY, $options));
|
||||
|
||||
// include the settings of allocation subplugins
|
||||
$allocators = get_plugin_list('workshopallocation');
|
||||
foreach ($allocators as $allocator => $path) {
|
||||
if (file_exists($settingsfile = $path . '/settings.php')) {
|
||||
$settings->add(new admin_setting_heading('workshopallocationsetting'.$allocator,
|
||||
get_string('allocation', 'workshop') . ' - ' . get_string('pluginname', 'workshopallocation_' . $allocator), ''));
|
||||
include($settingsfile);
|
||||
$options = array();
|
||||
for ($i = 5; $i >= 0; $i--) {
|
||||
$options[$i] = $i;
|
||||
}
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('workshop/gradedecimals', get_string('gradedecimals', 'workshop'),
|
||||
get_string('configgradedecimals', 'workshop'), 0, $options));
|
||||
|
||||
// include the settings of grading strategy subplugins
|
||||
$strategies = get_plugin_list('workshopform');
|
||||
foreach ($strategies as $strategy => $path) {
|
||||
if (file_exists($settingsfile = $path . '/settings.php')) {
|
||||
$settings->add(new admin_setting_heading('workshopformsetting'.$strategy,
|
||||
get_string('strategy', 'workshop') . ' - ' . get_string('pluginname', 'workshopform_' . $strategy), ''));
|
||||
include($settingsfile);
|
||||
if (isset($CFG->maxbytes)) {
|
||||
$options = get_max_upload_sizes($CFG->maxbytes);
|
||||
$options[0] = get_string('courseuploadlimit');
|
||||
$settings->add(new admin_setting_configselect('workshop/maxbytes', get_string('maxbytes', 'workshop'),
|
||||
get_string('configmaxbytes', 'workshop'), 0, $options));
|
||||
}
|
||||
}
|
||||
|
||||
// include the settings of grading evaluation subplugins
|
||||
$evaluations = get_plugin_list('workshopeval');
|
||||
foreach ($evaluations as $evaluation => $path) {
|
||||
if (file_exists($settingsfile = $path . '/settings.php')) {
|
||||
$settings->add(new admin_setting_heading('workshopevalsetting'.$evaluation,
|
||||
get_string('evaluation', 'workshop') . ' - ' . get_string('pluginname', 'workshopeval_' . $evaluation), ''));
|
||||
include($settingsfile);
|
||||
$settings->add(new admin_setting_configselect('workshop/strategy', get_string('strategy', 'workshop'),
|
||||
get_string('configstrategy', 'workshop'), 'accumulative', workshop::available_strategies_list()));
|
||||
|
||||
$options = workshop::available_example_modes_list();
|
||||
$settings->add(new admin_setting_configselect('workshop/examplesmode', get_string('examplesmode', 'workshop'),
|
||||
get_string('configexamplesmode', 'workshop'), workshop::EXAMPLES_VOLUNTARY, $options));
|
||||
|
||||
// include the settings of allocation subplugins
|
||||
$allocators = get_plugin_list('workshopallocation');
|
||||
foreach ($allocators as $allocator => $path) {
|
||||
if (file_exists($settingsfile = $path . '/settings.php')) {
|
||||
$settings->add(new admin_setting_heading('workshopallocationsetting'.$allocator,
|
||||
get_string('allocation', 'workshop') . ' - ' . get_string('pluginname', 'workshopallocation_' . $allocator), ''));
|
||||
include($settingsfile);
|
||||
}
|
||||
}
|
||||
|
||||
// include the settings of grading strategy subplugins
|
||||
$strategies = get_plugin_list('workshopform');
|
||||
foreach ($strategies as $strategy => $path) {
|
||||
if (file_exists($settingsfile = $path . '/settings.php')) {
|
||||
$settings->add(new admin_setting_heading('workshopformsetting'.$strategy,
|
||||
get_string('strategy', 'workshop') . ' - ' . get_string('pluginname', 'workshopform_' . $strategy), ''));
|
||||
include($settingsfile);
|
||||
}
|
||||
}
|
||||
|
||||
// include the settings of grading evaluation subplugins
|
||||
$evaluations = get_plugin_list('workshopeval');
|
||||
foreach ($evaluations as $evaluation => $path) {
|
||||
if (file_exists($settingsfile = $path . '/settings.php')) {
|
||||
$settings->add(new admin_setting_heading('workshopevalsetting'.$evaluation,
|
||||
get_string('evaluation', 'workshop') . ' - ' . get_string('pluginname', 'workshopeval_' . $evaluation), ''));
|
||||
include($settingsfile);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4,47 +4,45 @@
|
||||
* Settings for the arialist theme
|
||||
*/
|
||||
|
||||
// Create our admin page
|
||||
$temp = new admin_settingpage('theme_arialist', get_string('configtitle','theme_arialist'));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
// Logo file setting
|
||||
$name = 'theme_arialist/logo';
|
||||
$title = get_string('logo','theme_arialist');
|
||||
$description = get_string('logodesc', 'theme_arialist');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
|
||||
$temp->add($setting);
|
||||
if ($ADMIN->fulltree) {
|
||||
// Logo file setting
|
||||
$name = 'theme_arialist/logo';
|
||||
$title = get_string('logo','theme_arialist');
|
||||
$description = get_string('logodesc', 'theme_arialist');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
|
||||
$settings->add($setting);
|
||||
|
||||
// Tagline setting
|
||||
$name = 'theme_arialist/tagline';
|
||||
$title = get_string('tagline','theme_arialist');
|
||||
$description = get_string('taglinedesc', 'theme_arialist');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '');
|
||||
$temp->add($setting);
|
||||
// Tagline setting
|
||||
$name = 'theme_arialist/tagline';
|
||||
$title = get_string('tagline','theme_arialist');
|
||||
$description = get_string('taglinedesc', 'theme_arialist');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '');
|
||||
$settings->add($setting);
|
||||
|
||||
// Link colour setting
|
||||
$name = 'theme_arialist/linkcolor';
|
||||
$title = get_string('linkcolor','theme_arialist');
|
||||
$description = get_string('linkcolordesc', 'theme_arialist');
|
||||
$default = '#f25f0f';
|
||||
$previewconfig = array('selector'=>'.block .content', 'style'=>'linkcolor');
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$temp->add($setting);
|
||||
// Link colour setting
|
||||
$name = 'theme_arialist/linkcolor';
|
||||
$title = get_string('linkcolor','theme_arialist');
|
||||
$description = get_string('linkcolordesc', 'theme_arialist');
|
||||
$default = '#f25f0f';
|
||||
$previewconfig = array('selector'=>'.block .content', 'style'=>'linkcolor');
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$settings->add($setting);
|
||||
|
||||
// Block region width
|
||||
$name = 'theme_arialist/regionwidth';
|
||||
$title = get_string('regionwidth','theme_arialist');
|
||||
$description = get_string('regionwidthdesc', 'theme_arialist');
|
||||
$default = 250;
|
||||
$choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 240=>'240px', 250=>'250px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$temp->add($setting);
|
||||
// Block region width
|
||||
$name = 'theme_arialist/regionwidth';
|
||||
$title = get_string('regionwidth','theme_arialist');
|
||||
$description = get_string('regionwidthdesc', 'theme_arialist');
|
||||
$default = 250;
|
||||
$choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 240=>'240px', 250=>'250px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
$name = 'theme_arialist/customcss';
|
||||
$title = get_string('customcss','theme_arialist');
|
||||
$description = get_string('customcssdesc', 'theme_arialist');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$temp->add($setting);
|
||||
|
||||
// Add our page to the structure of the admin tree
|
||||
$ADMIN->add('themes', $temp);
|
||||
// Custom CSS file
|
||||
$name = 'theme_arialist/customcss';
|
||||
$title = get_string('customcss','theme_arialist');
|
||||
$description = get_string('customcssdesc', 'theme_arialist');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$settings->add($setting);
|
||||
}
|
@ -1,50 +1,49 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Settings for the formalwhite theme
|
||||
* Settings for the formal_white theme
|
||||
*/
|
||||
|
||||
// Create our admin page
|
||||
$temp = new admin_settingpage('theme_formal_white', get_string('configtitle','theme_formal_white'));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
// Background colour setting
|
||||
$name = 'theme_formal_white/backgroundcolor';
|
||||
$title = get_string('backgroundcolor','theme_formal_white');
|
||||
$description = get_string('backgroundcolordesc', 'theme_formal_white');
|
||||
$default = '#F7F6F1';
|
||||
$previewconfig = array('selector'=>'.block .content', 'style'=>'backgroundColor');
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$temp->add($setting);
|
||||
if ($ADMIN->fulltree) {
|
||||
|
||||
// Logo file setting
|
||||
$name = 'theme_formal_white/logo';
|
||||
$title = get_string('logo','theme_formal_white');
|
||||
$description = get_string('logodesc', 'theme_formal_white');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
|
||||
$temp->add($setting);
|
||||
// Background colour setting
|
||||
$name = 'theme_formal_white/backgroundcolor';
|
||||
$title = get_string('backgroundcolor','theme_formal_white');
|
||||
$description = get_string('backgroundcolordesc', 'theme_formal_white');
|
||||
$default = '#F7F6F1';
|
||||
$previewconfig = array('selector'=>'.block .content', 'style'=>'backgroundColor');
|
||||
$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
|
||||
$settings->add($setting);
|
||||
|
||||
// Block region width
|
||||
$name = 'theme_formal_white/regionwidth';
|
||||
$title = get_string('regionwidth','theme_formal_white');
|
||||
$description = get_string('regionwidthdesc', 'theme_formal_white');
|
||||
$default = 200;
|
||||
$choices = array(150=>'150px', 170=>'170px', 200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$temp->add($setting);
|
||||
// Logo file setting
|
||||
$name = 'theme_formal_white/logo';
|
||||
$title = get_string('logo','theme_formal_white');
|
||||
$description = get_string('logodesc', 'theme_formal_white');
|
||||
$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
|
||||
$settings->add($setting);
|
||||
|
||||
// Foot note setting
|
||||
$name = 'theme_formal_white/footnote';
|
||||
$title = get_string('footnote','theme_formal_white');
|
||||
$description = get_string('footnotedesc', 'theme_formal_white');
|
||||
$setting = new admin_setting_confightmleditor($name, $title, $description, '');
|
||||
$temp->add($setting);
|
||||
// Block region width
|
||||
$name = 'theme_formal_white/regionwidth';
|
||||
$title = get_string('regionwidth','theme_formal_white');
|
||||
$description = get_string('regionwidthdesc', 'theme_formal_white');
|
||||
$default = 200;
|
||||
$choices = array(150=>'150px', 170=>'170px', 200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
$name = 'theme_formal_white/customcss';
|
||||
$title = get_string('customcss','theme_formal_white');
|
||||
$description = get_string('customcssdesc', 'theme_formal_white');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$temp->add($setting);
|
||||
// Foot note setting
|
||||
$name = 'theme_formal_white/footnote';
|
||||
$title = get_string('footnote','theme_formal_white');
|
||||
$description = get_string('footnotedesc', 'theme_formal_white');
|
||||
$setting = new admin_setting_confightmleditor($name, $title, $description, '');
|
||||
$settings->add($setting);
|
||||
|
||||
// Add our page to the structure of the admin tree
|
||||
$ADMIN->add('themes', $temp);
|
||||
// Custom CSS file
|
||||
$name = 'theme_formal_white/customcss';
|
||||
$title = get_string('customcss','theme_formal_white');
|
||||
$description = get_string('customcssdesc', 'theme_formal_white');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$settings->add($setting);
|
||||
}
|
@ -28,33 +28,31 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
// Create our admin page
|
||||
$temp = new admin_settingpage('theme_nonzero', get_string('configtitle','theme_nonzero'));
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
// Block region-pre width
|
||||
$name = 'theme_nonzero/regionprewidth';
|
||||
$title = get_string('regionprewidth','theme_nonzero');
|
||||
$description = get_string('regionprewidthdesc', 'theme_nonzero');
|
||||
$default = 200;
|
||||
$choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 230=>'230px', 240=>'240px', 250=>'250px', 260=>'260px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$temp->add($setting);
|
||||
if ($ADMIN->fulltree) {
|
||||
// Block region-pre width
|
||||
$name = 'theme_nonzero/regionprewidth';
|
||||
$title = get_string('regionprewidth','theme_nonzero');
|
||||
$description = get_string('regionprewidthdesc', 'theme_nonzero');
|
||||
$default = 200;
|
||||
$choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 230=>'230px', 240=>'240px', 250=>'250px', 260=>'260px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$settings->add($setting);
|
||||
|
||||
// Block region-post width
|
||||
$name = 'theme_nonzero/regionpostwidth';
|
||||
$title = get_string('regionpostwidth','theme_nonzero');
|
||||
$description = get_string('regionpostwidthdesc', 'theme_nonzero');
|
||||
$default = 200;
|
||||
$choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 230=>'230px', 240=>'240px', 250=>'250px', 260=>'260px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$temp->add($setting);
|
||||
// Block region-post width
|
||||
$name = 'theme_nonzero/regionpostwidth';
|
||||
$title = get_string('regionpostwidth','theme_nonzero');
|
||||
$description = get_string('regionpostwidthdesc', 'theme_nonzero');
|
||||
$default = 200;
|
||||
$choices = array(180=>'180px', 190=>'190px', 200=>'200px', 210=>'210px', 220=>'220px', 230=>'230px', 240=>'240px', 250=>'250px', 260=>'260px');
|
||||
$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
|
||||
$settings->add($setting);
|
||||
|
||||
// Custom CSS file
|
||||
$name = 'theme_nonzero/customcss';
|
||||
$title = get_string('customcss','theme_nonzero');
|
||||
$description = get_string('customcssdesc', 'theme_nonzero');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$temp->add($setting);
|
||||
|
||||
// Add our page to the structure of the admin tree
|
||||
$ADMIN->add('themes', $temp);
|
||||
// Custom CSS file
|
||||
$name = 'theme_nonzero/customcss';
|
||||
$title = get_string('customcss','theme_nonzero');
|
||||
$description = get_string('customcssdesc', 'theme_nonzero');
|
||||
$setting = new admin_setting_configtextarea($name, $title, $description, '');
|
||||
$settings->add($setting);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user