From 5712bf7b91964e6dbbd2afdead94bb3dd8c0030a Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Fri, 4 Jan 2013 14:24:55 +0100 Subject: Ability to use Mathjax for TeX rendering --- settings.php | 41 ++++++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-) (limited to 'settings.php') diff --git a/settings.php b/settings.php index 43b4ffa..7e19e42 100644 --- a/settings.php +++ b/settings.php @@ -1,16 +1,43 @@ . + +/** + * @package qtype_algebra + * @copyright Roger Moore + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + defined('MOODLE_INTERNAL') || die; if ($ADMIN->fulltree) { // Default evaluation method. - $settings->add(new admin_setting_configselect('qtype_algebra_method', new lang_string('defaultmethod', 'qtype_algebra'), new lang_string('compareby', 'qtype_algebra'), 'eval', - array('sage' => new lang_string('comparesage', 'qtype_algebra'), - 'eval' => new lang_string('compareeval', 'qtype_algebra'), - 'equiv' => new lang_string('compareequiv', 'qtype_algebra')))); + $settings->add(new admin_setting_configselect('qtype_algebra_method', + new lang_string('defaultmethod', 'qtype_algebra'), + new lang_string('compareby', 'qtype_algebra'), 'eval', + array('sage' => new lang_string('comparesage', 'qtype_algebra'), + 'eval' => new lang_string('compareeval', 'qtype_algebra'), + 'equiv' => new lang_string('compareequiv', 'qtype_algebra') + ))); // SAGE server connection host. - $settings->add(new admin_setting_configtext('qtype_algebra_host', get_string('host', 'qtype_algebra'), '', 'localhost', PARAM_TEXT)); + $settings->add(new admin_setting_configtext('qtype_algebra_host', + get_string('host', 'qtype_algebra'), '', 'localhost', PARAM_TEXT)); // SAGE server connection port. - $settings->add(new admin_setting_configtext('qtype_algebra_port', get_string('port', 'qtype_algebra'), '', 7777, PARAM_INT)); + $settings->add(new admin_setting_configtext('qtype_algebra_port', + get_string('port', 'qtype_algebra'), '', 7777, PARAM_INT)); // SAGE server connection uri. - $settings->add(new admin_setting_configtext('qtype_algebra_uri', get_string('uri', 'qtype_algebra'), '', '', PARAM_TEXT)); + $settings->add(new admin_setting_configtext('qtype_algebra_uri', + get_string('uri', 'qtype_algebra'), '', '', PARAM_TEXT)); } -- cgit v1.2.3