MDL-41612 scorm: fix heading levels

This commit is contained in:
Rossiani Wijaya 2013-09-16 15:40:01 +08:00
parent 83f26f6407
commit b2970f963a
6 changed files with 6 additions and 4 deletions

View File

@ -46,6 +46,7 @@ $PAGE->set_title($strscorms);
$PAGE->set_heading($course->fullname);
$PAGE->navbar->add($strscorms);
echo $OUTPUT->header();
echo $OUTPUT->heading($strscorms);
$usesections = course_format_uses_sections($course->format);

View File

@ -197,6 +197,7 @@ $PAGE->requires->data_for_js('scormplayerdata', Array('launch' => false,
$PAGE->requires->js('/mod/scorm/request.js', true);
$PAGE->requires->js('/lib/cookies.js', true);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($scorm->name));
// NEW IMS TOC
$PAGE->requires->string_for_js('navigation', 'scorm');

View File

@ -74,9 +74,9 @@ if (empty($noheader)) {
$PAGE->navbar->add($strreport, new moodle_url('/mod/scorm/report.php', array('id'=>$cm->id)));
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($scorm->name));
$currenttab = 'reports';
require($CFG->dirroot . '/mod/scorm/tabs.php');
echo $OUTPUT->heading(format_string($scorm->name));
}
// Open the selected Scorm report and display it

View File

@ -52,7 +52,7 @@ class scorm_graphs_report extends scorm_default_report {
$imageurl = new moodle_url('/mod/scorm/report/graphs/graph.php',
array('scoid' => $sco->id));
$graphname = $sco->title;
echo $OUTPUT->heading($graphname);
echo $OUTPUT->heading($graphname, 3);
echo html_writer::tag('div', html_writer::empty_tag('img',
array('src' => $imageurl, 'alt' => $graphname)),
array('class' => 'graph'));

View File

@ -87,7 +87,7 @@ if (!$table->is_downloading($download, $exportfilename)) {
require($CFG->dirroot . '/mod/scorm/report/userreporttabs.php');
echo $OUTPUT->box_start('generalbox boxaligncenter');
echo $OUTPUT->heading("$strattempt $attempt - ". fullname($user).': '.
format_string($selsco->title). ' - '. get_string('details', 'scorm'));
format_string($selsco->title). ' - '. get_string('details', 'scorm'), 3);
}
$table->define_baseurl($PAGE->url);
$table->define_columns(array('element', 'value'));

View File

@ -116,6 +116,7 @@ if (empty($launch) && (has_capability('mod/scorm:skipview', $contextmodule))) {
$PAGE->set_title($pagetitle);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($scorm->name));
if (!empty($action) && confirm_sesskey() && has_capability('mod/scorm:deleteownresponses', $contextmodule)) {
if ($action == 'delete') {
@ -135,7 +136,6 @@ $currenttab = 'info';
require($CFG->dirroot . '/mod/scorm/tabs.php');
// Print the main part of the page
echo $OUTPUT->heading(format_string($scorm->name));
$attemptstatus = '';
if (empty($launch) && ($scorm->displayattemptstatus == SCORM_DISPLAY_ATTEMPTSTATUS_ALL ||
$scorm->displayattemptstatus == SCORM_DISPLAY_ATTEMPTSTATUS_ENTRY)) {