Skip to content

Commit

Permalink
SCORM MDL-22453 - fix breadcrumbs and fix a couple of typos
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed May 16, 2010
1 parent 5facc08 commit ec678a9
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions mod/scorm/player.php
Expand Up @@ -62,20 +62,9 @@
$strpopup = get_string('popup','scorm');
$strexit = get_string('exitactivity','scorm');

if ($course->id != SITEID) {
if ($scorms = get_all_instances_in_course('scorm', $course)) {
// The module SCORM/AICC activity with the first id is the course
$firstscorm = current($scorms);
if (!(($course->format == 'scorm') && ($firstscorm->id == $scorm->id))) {
$PAGE->navbar->add($strscorms, new moodle_url('/mod/scorm/index.php', array('id'=>$course->id)));
}
}
}

$pagetitle = strip_tags("$course->shortname: ".format_string($scorm->name));
$PAGE->set_title($pagetitle);
$PAGE->set_heading($course->fullname);
$PAGE->navbar->add(format_string($scorm->name,true), new moodle_url('/mod/scorm/view.php', array('id'=>$cm->id)));

if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_COURSE,$course->id))) {
echo $OUTPUT->header();
Expand Down Expand Up @@ -304,12 +293,12 @@
if ($scorm->popup == 0) {
$fullurl="loadSCO.php?id=".$cm->id.$scoidstr.$modestr;
?>
<!--[if IE]>
<!--[if IE]-->
<iframe id="scoframe1" class="scoframe" name="scoframe1" src="<?php echo $fullurl; ?>"></iframe>
<![endif]-->
<!--[if !IE]>-->
<!--[endif]-->
<!--[if !IE]-->
<object id="scoframe1" class="scoframe" type="text/html" data="<?php echo $fullurl; ?>"></object>
<!--<![endif]-->
<!--[endif]-->
<?php
$PAGE->requires->js_function_call('scorm_resize');
} else {
Expand All @@ -325,12 +314,12 @@
echo html_writer::script(js_writer::function_call('scorm_openpopup', Array("loadSCO.php?id=".$cm->id.$scoidpop, $name, $scorm->options, $scorm->width, $scorm->height)));
?>
<noscript>
<!--[if IE]>
<iframe id="main" class="scoframe" name="main" src="loadSCO.php?id=<?php echo $cm->id.$scoidstr.$modestr; ?>"></iframe>
<![endif]-->
<!--[if !IE]>-->
<!object id="main" class="scoframe" type="text/html" data="loadSCO.php?id=<?php echo $cm->id.$scoidstr.$modestr; ?>"></object>
<!--<![endif]-->
<!--[if IE]-->
<iframe id="main" class="scoframe" name="main" src="loadSCO.php?id=<?php echo $cm->id.$scoidstr.$modestr; ?>"></iframe>
<!--[endif]-->
<!--[if !IE]-->
<object id="main" class="scoframe" type="text/html" data="loadSCO.php?id=<?php echo $cm->id.$scoidstr.$modestr; ?>"></object>
<!--[endif]-->
</noscript>
<?php
//Added incase javascript popups are blocked
Expand Down

0 comments on commit ec678a9

Please sign in to comment.