mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-41612 scorm: fix heading levels
This commit is contained in:
parent
83f26f6407
commit
b2970f963a
@ -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);
|
||||
|
||||
|
@ -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');
|
||||
|
@ -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
|
||||
|
@ -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'));
|
||||
|
@ -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'));
|
||||
|
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user