Permalink
Browse files

SCORM MDL-12834 add link for returning to course page if pop-up windo…

…w used merged from HEAD
  • Loading branch information...
danmarsden committed Jun 27, 2010
1 parent b6ec0e7 commit efefda0c5f718fdda7aab2b9201f4c5a52ceaff4
Showing with 4 additions and 0 deletions.
  1. +2 −0 lang/en_utf8/scorm.php
  2. +2 −0 mod/scorm/player.php
View
@@ -44,6 +44,8 @@
$string['expcoll'] = 'Expand/Collide';
$string['external']= 'Update external packages timing';
$string['failed'] = 'Failed';
+$string['finishscorm'] = 'If you have finished viewing this resource, $a';
+$string['finishscormlinkname'] = 'click here to return to the course page';
$string['firstaccess'] = 'First access';
$string['firstattempt'] = 'First attempt';
$string['found'] = 'Manifest found';
View
@@ -327,6 +327,8 @@ function openpopup(url,name,options,width,height) {
//Added incase javascript popups are blocked
$link = '<a href="'.$CFG->wwwroot.'/mod/scorm/loadSCO.php?id='.$cm->id.$scoidstr.$modestr.'" target="_blank">'.get_string('popupblockedlinkname','scorm').'</a>';
print_simple_box(get_string('popupblocked','scorm',$link),'center','','',5,'generalbox','altpopuplink');
+ $linkcourse = '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$scorm->course.'">' . get_string('finishscormlinkname','scorm') . '</a>';
+ print_simple_box(get_string('finishscorm','scorm',$linkcourse),'center','','',5,'generalbox','altfinishlink');
}
} else {
print_simple_box(get_string('noprerequisites','scorm'),'center');

0 comments on commit efefda0

Please sign in to comment.