MDL-85858 mod_scorm: Use semantic heading for the Preview mode
This commit is contained in:
@@ -73,6 +73,7 @@ $string['badarchive'] = 'You must provide a valid zip file';
|
||||
$string['browse'] = 'Preview';
|
||||
$string['browsed'] = 'Browsed';
|
||||
$string['browsemode'] = 'Preview mode';
|
||||
$string['browsemodewithname'] = 'Preview mode: {$a}';
|
||||
$string['browserepository'] = 'Browse repository';
|
||||
$string['cachedef_elements'] = 'Element cache';
|
||||
$string['calculatedweight'] = 'Calculated weight';
|
||||
|
||||
@@ -228,7 +228,8 @@ echo html_writer::div(html_writer::tag('script', '', array('id' => 'external-sco
|
||||
if ($scorm->hidetoc == SCORM_TOC_POPUP or $mode == 'browse' or $mode == 'review') {
|
||||
echo html_writer::start_div('mb-3', array('id' => 'scormtop'));
|
||||
if ($mode == 'browse' || $mode == 'review') {
|
||||
echo html_writer::div(get_string("{$mode}mode", 'scorm'), 'scorm-left h3', ['id' => 'scormmode']);
|
||||
$headinglevel = $PAGE->activityheader->get_heading_level();
|
||||
echo $OUTPUT->heading(get_string("{$mode}mode", 'scorm'), $headinglevel, 'scorm-left', 'scormmode');
|
||||
}
|
||||
if ($scorm->hidetoc == SCORM_TOC_POPUP) {
|
||||
echo html_writer::div($result->tocmenu, 'scorm-right', array('id' => 'scormnav'));
|
||||
|
||||
@@ -164,11 +164,6 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#page-mod-scorm-player #scormmode {
|
||||
float: left;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#page-mod-scorm-player.pagelayout-popup #page-content .region-content {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user