From d49ad4587254ea4c5f7a5c69d6d9ba2f79524da4 Mon Sep 17 00:00:00 2001 From: piers Date: Tue, 12 Aug 2008 01:26:10 +0000 Subject: [PATCH] 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. --- mod/scorm/player.php | 54 +++----------------------------------------- mod/scorm/rd.js | 6 ++++- 2 files changed, 8 insertions(+), 52 deletions(-) diff --git a/mod/scorm/player.php b/mod/scorm/player.php index 5f1f8b1eeaf..79c4ed6bb9a 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 @@ ?>