MDL-41797 external tools module: fix heading levels.

AMOS BEGIN
CPY [submissions, core_grades], [submissions, mod_lti]
AMOS END
This commit is contained in:
rwijaya
2013-11-13 09:52:32 +08:00
parent d214057cad
commit 80fd00729b
6 changed files with 13 additions and 3 deletions
+2 -1
View File
@@ -159,7 +159,8 @@ $PAGE->set_title(format_string($title , true));
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading($title );
echo $OUTPUT->heading(format_string($lti->name, true, array('context' => $context)));
echo $OUTPUT->heading(get_string('submissions', 'lti'), 3);
echo $table;
+1
View File
@@ -396,6 +396,7 @@ The only case in which this option should be selected is if the tool configurati
For example, if all launches to the tool provider just take the user to a landing page instead of to a specific resource.';
$string['size'] = 'Size parameters';
$string['submission'] = 'Submission';
$string['submissions'] = 'Submissions';
$string['submissionsfor'] = 'Submissions for {$a}';
$string['toggle_debug_data'] = 'Toggle Debug Data';
$string['tool_config_not_found'] = 'Tool configuration not found for this URL.';
+1
View File
@@ -83,6 +83,7 @@ class mod_lti_mod_form extends moodleform_mod {
$mform->addElement('checkbox', 'showtitlelaunch', ' ', ' ' . get_string('display_name', 'lti'));
$mform->setAdvanced('showtitlelaunch');
$mform->setDefault('showtitlelaunch', true);
$mform->addHelpButton('showtitlelaunch', 'display_name', 'lti');
$mform->addElement('checkbox', 'showdescriptionlaunch', ' ', ' ' . get_string('display_description', 'lti'));
+3
View File
@@ -32,6 +32,8 @@ $instanceid = required_param('instanceid', PARAM_INT);
$lti = $DB->get_record('lti', array('id' => $instanceid));
$course = $DB->get_record('course', array('id' => $lti->course));
$cm = get_coursemodule_from_instance('lti', $lti->id, $lti->course, false, MUST_EXIST);
$context = context_module::instance($cm->id);
require_login($course);
@@ -49,6 +51,7 @@ $PAGE->set_heading($course->fullname);
$PAGE->set_pagelayout('incourse');
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($lti->name, true, array('context' => $context)));
//Add a tool type if one does not exist already
if (!lti_get_tool_by_url_match($lti->toolurl, $lti->course, LTI_TOOL_STATE_ANY)) {
+5 -1
View File
@@ -36,7 +36,10 @@ $unsigned = optional_param('unsigned', '0', PARAM_INT);
$launchcontainer = optional_param('launch_container', LTI_LAUNCH_CONTAINER_WINDOW, PARAM_INT);
$course = $DB->get_record('course', array('id' => $courseid));
$course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST);
$lti = $DB->get_record('lti', array('id' => $instanceid), '*', MUST_EXIST);
$cm = get_coursemodule_from_instance('lti', $lti->id, $lti->course, false, MUST_EXIST);
$context = context_module::instance($cm->id);
require_login($course);
@@ -56,6 +59,7 @@ if (!empty($errormsg)) {
}
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($lti->name, true, array('context' => $context)));
echo get_string('lti_launch_error', 'lti');
+1 -1
View File
@@ -107,7 +107,7 @@ echo $OUTPUT->header();
if ($lti->showtitlelaunch) {
// Print the main part of the page
echo $OUTPUT->heading(format_string($lti->name));
echo $OUTPUT->heading(format_string($lti->name, true, array('context' => $context)));
}
if ($lti->showdescriptionlaunch && $lti->intro) {