From: piers Date: Tue, 12 Aug 2008 01:26:10 +0000 (+0000) Subject: MDL-15993 The method to calculate the SCORM area needs to be changed - based on scree... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d49ad4587254ea4c5f7a5c69d6d9ba2f79524da4;p=moodle.git MDL-15993 The method to calculate the SCORM area needs to be changed - based on screen size alone does not make sense with big screens. Only allow the overide of the height parameter if it is less than the user specified (user specified is no allowed to be less than 400). Also - removed gratuitous use of whitespace. --- diff --git a/mod/scorm/player.php b/mod/scorm/player.php index 5f1f8b1eea..79c4ed6bb9 100755 --- a/mod/scorm/player.php +++ b/mod/scorm/player.php @@ -140,7 +140,7 @@ @@ -163,74 +163,40 @@ hidetoc == 0) { ?> -
- hidenav ==0){ - ?> - -
-
- hidenav == 0) && ($sco->previd != 0) && (!isset($sco->previous) || $sco->previous == 0)) { - - // Print the prev LO button - $scostr = '&scoid='.$sco->previd; - $url = $CFG->wwwroot.'/mod/scorm/player.php?id='.$cm->id.$orgstr.$modestr.$scostr; - ?> - - hidenav == 0) && ($sco->nextid != 0) && (!isset($sco->next) || $sco->next == 0)) { - // Print the next LO button - $scostr = '&scoid='.$sco->nextid; - $url = $CFG->wwwroot.'/mod/scorm/player.php?id='.$cm->id.$orgstr.$modestr.$scostr; - ?> - - -
-
-
toc; ?>
-
hidenav == 0) && ($sco->previd != 0) && (!isset($sco->previous) || $sco->previous == 0) && (($scorm->hidetoc == 2) || ($scorm->hidetoc == 1)) ) { - // Print the prev LO button $scostr = '&scoid='.$sco->previd; $url = $CFG->wwwroot.'/mod/scorm/player.php?id='.$cm->id.$orgstr.$modestr.$scostr; ?> -
- -
- hidetoc == 2) { echo $result->tocmenu; } if (($scorm->hidenav == 0) && ($sco->nextid != 0) && (!isset($sco->next) || $sco->next == 0) && (($scorm->hidetoc == 2) || ($scorm->hidetoc == 1))) { - - // Print the next LO button $scostr = '&scoid='.$sco->nextid; $url = $CFG->wwwroot.'/mod/scorm/player.php?id='.$cm->id.$orgstr.$modestr.$scostr; ?> -
- -
- - prerequisites) { if ($scorm->popup == 0) { - echo " \n"; - + echo " \n"; $fullurl="loadSCO.php?id=".$cm->id.$scoidstr.$modestr; - echo " \n"; } else { // Clean the name for the window as IE is fussy @@ -337,7 +289,7 @@ ?>