Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SCORM MDL-29965 improve display of SCORM package - decrease unecessar…

…y padding
  • Loading branch information...
commit 75658ad2ca1f0a31a569d3f4955ccf5b58fa5d8c 1 parent 9de8774
@danmarsden danmarsden authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 mod/scorm/player.php
View
18 mod/scorm/player.php
@@ -188,18 +188,18 @@
<div id='scormapi-parent'>
<script id="external-scormapi" type="text/JavaScript"></script>
</div>
- <div id="scormtop">
- <?php echo $mode == 'browse' ? '<div id="scormmode" class="scorm-left">'.get_string('browsemode','scorm')."</div>\n" : ''; ?>
- <?php echo $mode == 'review' ? '<div id="scormmode" class="scorm-left">'.get_string('reviewmode','scorm')."</div>\n" : ''; ?>
- <div id="scormnav" class="scorm-right">
<?php
-if ($scorm->hidetoc == SCORM_TOC_POPUP) {
- echo $result->tocmenu;
+if ($scorm->hidetoc == SCORM_TOC_POPUP or $mode=='browse' or $mode=='review') {
+ echo '<div id="scormtop">';
+ echo $mode == 'browse' ? '<div id="scormmode" class="scorm-left">'.get_string('browsemode', 'scorm')."</div>\n" : '';
+ echo $mode == 'review' ? '<div id="scormmode" class="scorm-left">'.get_string('reviewmode', 'scorm')."</div>\n" : '';
+ if ($scorm->hidetoc == SCORM_TOC_POPUP) {
+ echo '<div id="scormnav" class="scorm-right">'.$result->tocmenu.'</div>';
+ }
+ echo '</div>';
}
?>
- </div> <!-- Scormnav -->
- </div> <!-- Scormtop -->
- <div id="toctree" class="generalbox">
+ <div id="toctree">
<?php
if (empty($scorm->popup) || $displaymode == 'popup') {
echo $result->toc;
Please sign in to comment.
Something went wrong with that request. Please try again.