Skip to content

Commit

Permalink
MDL-9378 New visualisation for SCORM - modify CSS class names to make…
Browse files Browse the repository at this point in the history
… them more specific. sorry to commit so close to review day, just fixing a regression - 1.9.
  • Loading branch information
piers committed Jul 29, 2008
1 parent 8334db6 commit 251b51c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions mod/scorm/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ function scorm_view_display ($user, $scorm, $action, $cm, $boxwidth='') {
if ($orgs = get_records_select_menu('scorm_scoes',"scorm='$scorm->id' AND organization='' AND launch=''",'id','id,title')) {
if (count($orgs) > 1) {
?>
<div class='center'>
<div class='scorm-center'>
<?php print_string('organizations','scorm') ?>
<form id='changeorg' method='post' action='<?php echo $action ?>'>
<?php choose_from_menu($orgs, 'organization', "$organization", '','submit()') ?>
Expand Down Expand Up @@ -570,7 +570,7 @@ function scorm_view_display ($user, $scorm, $action, $cm, $boxwidth='') {
print_simple_box_end();

?>
<div class="center">
<div class="scorm-center">
<form id="theform" method="post" action="<?php echo $CFG->wwwroot ?>/mod/scorm/player.php?scoid=<?php echo $sco->id ?>&amp;id=<?php echo $cm->id ?>"<?php echo $scorm->popup == 1?' target="newwin"':'' ?>>
<?php
if ($scorm->hidebrowse == 0) {
Expand Down
8 changes: 4 additions & 4 deletions mod/scorm/player.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,12 @@
) {
?>
<div id="scormtop">
<?php echo $mode == 'browse' ? '<div id="scormmode" class="left">'.get_string('browsemode','scorm')."</div>\n" : ''; ?>
<?php echo $mode == 'review' ? '<div id="scormmode" class="left">'.get_string('reviewmode','scorm')."</div>\n" : ''; ?>
<?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" : ''; ?>
<?php
if (($scorm->hidenav == 0) || ($scorm->hidetoc == 2) || ($scorm->hidetoc == 1)) {
?>
<div id="scormnav" class="right">
<div id="scormnav" class="scorm-right">
<?php
$orgstr = '&amp;currentorg='.$currentorg;
if (($scorm->hidenav == 0) && ($sco->previd != 0) && ($sco->previous == 0) && (($scorm->hidetoc == 2) || ($scorm->hidetoc == 1)) ) {
Expand Down Expand Up @@ -312,7 +312,7 @@
<?php
} // The end of the very big test
?>
<div id="scormobject" class="right">
<div id="scormobject" class="scorm-right">
<noscript>
<div id="noscript">
<?php print_string('noscriptnoscorm','scorm'); // No Martin(i), No Party ;-) ?>
Expand Down
6 changes: 3 additions & 3 deletions mod/scorm/styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@

}

.mod-scorm .left {
.mod-scorm .scorm-left {

text-align: left;

}

.mod-scorm .center {
.mod-scorm .scorm-center {

text-align: center;

}

.mod-scorm .right {
.mod-scorm .scorm-right {

text-align: right;

Expand Down

0 comments on commit 251b51c

Please sign in to comment.