]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9378 New visualisation for SCORM - modify CSS class names to make them more specific.
authorpiers <piers>
Tue, 29 Jul 2008 00:42:28 +0000 (00:42 +0000)
committerpiers <piers>
Tue, 29 Jul 2008 00:42:28 +0000 (00:42 +0000)
mod/scorm/locallib.php
mod/scorm/player.php
mod/scorm/styles.php

index 91e3f80c8b6d12efce080d7646048dcba8b9e448..86451f2a99a8dc1d6936c6920b908aa618b1288c 100755 (executable)
@@ -520,7 +520,7 @@ function scorm_view_display ($user, $scorm, $action, $cm, $boxwidth='') {
     if ($orgs = $DB->get_records_menu('scorm_scoes', array('scorm'=>$scorm->id, 'organization'=>'', '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()') ?>
@@ -560,7 +560,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) {
index 53607a2dd1db99aa3f71ee76a771957738c4a1e8..f6d9d543d6ff52f854747fc5c592d75041fc1adf 100755 (executable)
        ) {
 ?>
             <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)) ) {
 <?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 ;-) ?>
index d637b3bcb31c8410774d79f1aa7875dc8cda12c2..091b2d432a59892ab89a67795b3c4096fdf9ac72 100644 (file)
 
 }
 
-.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;