Merge branch 'master_MDL-39910' of git://github.com/danmarsden/moodle

This commit is contained in:
Sam Hemelryk
2013-09-24 09:04:27 +12:00
14 changed files with 705 additions and 324 deletions
@@ -42,7 +42,7 @@ class backup_scorm_activity_structure_step extends backup_activity_structure_ste
'whatgrade', 'maxattempt', 'forcecompleted', 'forcenewattempt',
'lastattemptlock', 'displayattemptstatus', 'displaycoursestructure', 'updatefreq',
'sha1hash', 'md5hash', 'revision', 'launch',
'skipview', 'hidebrowse', 'hidetoc', 'hidenav',
'skipview', 'hidebrowse', 'hidetoc', 'nav', 'navpositionleft', 'navpositiontop',
'auto', 'popup', 'options', 'width',
'height', 'timeopen', 'timeclose', 'timemodified',
'completionstatusrequired', 'completionscorerequired'));
+5 -1
View File
@@ -986,7 +986,11 @@ function scorm_seq_rollup_rule_check ($sco, $userid, $action) {
function scorm_seq_flow_tree_traversal($activity, $direction, $childrenflag, $prevdirection, $seq, $userid, $skip = false) {
$revdirection = false;
$parent = scorm_get_parent($activity);
$children = scorm_get_available_children($parent);
if (!empty($parent)) {
$children = scorm_get_available_children($parent);
} else {
$children = array();
}
$childrensize = count($children);
if (($prevdirection != null && $prevdirection == 'backward') && ($children[$childrensize-1]->id == $activity->id)) {
+4 -2
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="mod/scorm/db" VERSION="20130826" COMMENT="XMLDB file for Moodle mod/scorm"
<XMLDB PATH="mod/scorm/db" VERSION="20130901" COMMENT="XMLDB file for Moodle mod/scorm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
>
@@ -31,7 +31,9 @@
<FIELD NAME="skipview" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
<FIELD NAME="hidebrowse" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="hidetoc" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="hidenav" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="nav" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
<FIELD NAME="navpositionleft" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="-100" SEQUENCE="false"/>
<FIELD NAME="navpositiontop" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="-100" SEQUENCE="false"/>
<FIELD NAME="auto" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="popup" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="options" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"/>
+41
View File
@@ -129,6 +129,47 @@ function xmldb_scorm_upgrade($oldversion) {
upgrade_mod_savepoint(true, 2013081303, 'scorm');
}
if ($oldversion < 2013090100) {
$table = new xmldb_table('scorm');
$field = new xmldb_field('nav', XMLDB_TYPE_INTEGER, '1', XMLDB_UNSIGNED, true, null, 1, 'hidetoc');
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}
$field = new xmldb_field('navpositionleft', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, null, null, -100, 'nav');
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}
$field = new xmldb_field('navpositiontop', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, null, null, -100, 'navpositionleft');
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}
$field = new xmldb_field('hidenav');
if ($dbman->field_exists($table, $field)) {
// Update nav setting to disable navigation buttons.
$DB->set_field('scorm', 'nav', 0, array('hidenav' => 1));
// Update nav setting to show floating navigation buttons under TOC.
$DB->set_field('scorm', 'nav', 2, array('hidenav' => 0));
$DB->set_field('scorm', 'navpositionleft', 215, array('hidenav' => 0));
$DB->set_field('scorm', 'navpositiontop', 300, array('hidenav' => 0));
// Drop hidenav field.
$dbman->drop_field($table, $field);
}
$params = array('plugin' => 'scorm', 'name' => 'hidenav');
if ($DB->record_exists('config_plugins', $params)) {
$DB->delete_records('config_plugins', $params);
}
$params = array('plugin' => 'scorm', 'name' => 'hidenav_adv');
if ($DB->record_exists('config_plugins', $params)) {
$DB->delete_records('config_plugins', $params);
}
upgrade_mod_savepoint(true, 2013090100, 'scorm');
}
return true;
}
+17 -2
View File
@@ -67,6 +67,8 @@ $string['browsemode'] = 'Preview mode';
$string['browserepository'] = 'Browse repository';
$string['calculatedweight'] = 'Calculated weight';
$string['cannotfindsco'] = 'Could not find SCO';
$string['collapsetocwinsize'] = 'Collapse TOC when window size below';
$string['collapsetocwinsizedesc'] = 'This setting lets you specify the window size below which the TOC should automatically collapse.';
$string['compatibilitysettings'] = 'Compatibility settings';
$string['completed'] = 'Completed';
$string['completionscorerequired'] = 'Require minimum score';
@@ -118,6 +120,7 @@ $string['finishscorm'] = 'If you have finished viewing this resource, {$a}';
$string['finishscormlinkname'] = 'click here to return to the course page';
$string['firstaccess'] = 'First access';
$string['firstattempt'] = 'First attempt';
$string['floating'] = 'Floating';
$string['forcecompleted'] = 'Force completed';
$string['forcecompleted_help'] = 'If enabled, the status of the current attempt is forced to "completed". (Only applicable to SCORM 1.2 packages.)';
$string['forcecompleteddesc'] = 'This preference sets the default value for the force completed setting';
@@ -130,6 +133,8 @@ $string['forcejavascriptmessage'] = 'JavaScript is required to view this object,
$string['found'] = 'Manifest found';
$string['frameheight'] = 'The height of the stage frame or window.';
$string['framewidth'] = 'The width of the stage frame or window.';
$string['fromleft'] = 'From left';
$string['fromtop'] = 'From top';
$string['fullscreen'] = 'Fill the whole screen';
$string['general'] = 'General data';
$string['gradeaverage'] = 'Average grade';
@@ -155,8 +160,6 @@ $string['hidebrowse'] = 'Disable preview mode';
$string['hidebrowse_help'] = 'Preview mode allows a student to browse an activity before attempting it. If preview mode is disabled, the preview button is hidden.';
$string['hidebrowsedesc'] = 'Preview mode allows a student to browse an activity before attempting it.';
$string['hideexit'] = 'Hide exit link';
$string['hidenav'] = 'Hide navigation buttons';
$string['hidenavdesc'] = 'Whether to show or hide the navigation buttons.';
$string['hidereview'] = 'Hide review button';
$string['hidetoc'] = 'Display course structure in player';
$string['hidetoc_help'] = 'How the table of contents is displayed in the SCORM player';
@@ -227,6 +230,17 @@ SCORM activities may be used
* As an assessment tool';
$string['modulename_link'] = 'mod/scorm/view';
$string['modulenameplural'] = 'SCORM packages';
$string['nav'] = 'Show Navigation';
$string['nav_help'] = 'This setting specifies wether to show or hide the navigation buttons and their position.
There are 3 options:
* No - Do not show the navigation buttons
* Under content - Show the navigation buttons under SCORM package content
* Float - Allows to manually specify the navigation buttons position from left and from top with respect to the window.';
$string['navdesc'] = 'This setting specifies wether to show/hide navigation buttons and their position.';
$string['navpositionleft'] = 'Position of navigation buttons from left in pixels.';
$string['navpositiontop'] = 'Position of navigation buttons from top in pixels.';
$string['newattempt'] = 'Start a new attempt';
$string['next'] = 'Continue';
$string['noactivity'] = 'Nothing to report';
@@ -340,6 +354,7 @@ $string['typeaiccurl'] = 'External AICC URL';
$string['typeexternal'] = 'External SCORM manifest';
$string['typelocal'] = 'Uploaded package';
$string['typelocalsync'] = 'Downloaded package';
$string['undercontent'] = 'Under content';
$string['unziperror'] = 'An error occurs during package unzip';
$string['updatefreq'] = 'Auto-update frequency';
$string['updatefreq_error'] = 'Auto-update frequency can only be set when the package file is hosted externally';
+5
View File
@@ -34,6 +34,11 @@ define('SCORM_TOC_HIDDEN', 1);
define('SCORM_TOC_POPUP', 2);
define('SCORM_TOC_DISABLED', 3);
// Used to show/hide navigation buttons and set their position.
define('SCORM_NAV_DISABLED', 0);
define('SCORM_NAV_UNDER_CONTENT', 1);
define('SCORM_NAV_FLOATING', 2);
//used to check what SCORM version is being used.
define('SCORM_12', 1);
define('SCORM_13', 2);
+1
View File
@@ -29,6 +29,7 @@ $id = optional_param('id', 0, PARAM_INT); // Course Module ID, or
$a = optional_param('a', 0, PARAM_INT); // scorm ID.
$scoid = required_param('scoid', PARAM_INT); // sco ID.
$mode = optional_param('mode', '', PARAM_ALPHA); // navigation mode.
$currentorg = optional_param('currentorg', '', PARAM_RAW); // Selected organization.
$attempt = required_param('attempt', PARAM_INT); // new attempt.
if (!empty($id)) {
+30 -9
View File
@@ -149,6 +149,17 @@ function scorm_get_popup_display_array() {
1 => get_string('popup', 'scorm'));
}
/**
* Returns an array of the array of navigation buttons display options
*
* @return array an array of navigation buttons display options
*/
function scorm_get_navigation_display_array() {
return array(SCORM_NAV_DISABLED => get_string('no'),
SCORM_NAV_UNDER_CONTENT => get_string('undercontent', 'scorm'),
SCORM_NAV_FLOATING => get_string('floating', 'scorm'));
}
/**
* Returns an array of the array of attempt options
*
@@ -1445,7 +1456,7 @@ function scorm_get_toc_object($user, $scorm, $currentorg='', $scoid='', $mode='n
}
// Get the parent scoes!
$result = scorm_get_toc_get_parent_child($result);
$result = scorm_get_toc_get_parent_child($result, $currentorg);
// Be safe, prevent warnings from showing up while returning array
if (!isset($scoid)) {
@@ -1455,10 +1466,15 @@ function scorm_get_toc_object($user, $scorm, $currentorg='', $scoid='', $mode='n
return array('scoes' => $result, 'usertracks' => $usertracks, 'scoid' => $scoid);
}
function scorm_get_toc_get_parent_child(&$result) {
function scorm_get_toc_get_parent_child(&$result, $currentorg) {
$final = array();
$level = 0;
$prevparent = '/';
// Organization is always the root, prevparent.
if (!empty($currentorg)) {
$prevparent = $currentorg;
} else {
$prevparent = '/';
}
foreach ($result as $sco) {
if ($sco->parent == '/') {
@@ -1587,7 +1603,7 @@ function scorm_format_toc_for_treeview($user, $scorm, $scoes, $usertracks, $cmid
if ($sco->scormtype == 'sco') {
$result->toc .= $sco->statusicon.'&nbsp;<a href="'.$url.'">'.format_string($sco->title).'</a>'.$score."\n";
} else {
$result->toc .= '&nbsp;<a href="'.$url.'">'.format_string($sco->title).'</a>'.$score."\n";
$result->toc .= '&nbsp;<a data-scoid="'.$sco->id.'" href="'.$url.'">'.format_string($sco->title).'</a>'.$score."\n";
}
} else {
if ($sco->scormtype == 'sco') {
@@ -1599,9 +1615,9 @@ function scorm_format_toc_for_treeview($user, $scorm, $scoes, $usertracks, $cmid
} else {
if (!empty($sco->launch)) {
if ($sco->scormtype == 'sco') {
$result->toc .= '<a title="'.$sco->url.'">'.$sco->statusicon.'&nbsp;'.format_string($sco->title).'&nbsp;'.$score.'</a>';
$result->toc .= '<a data-scoid="'.$sco->id.'" title="'.$sco->url.'">'.$sco->statusicon.'&nbsp;'.format_string($sco->title).'&nbsp;'.$score.'</a>';
} else {
$result->toc .= '<a title="'.$sco->url.'">&nbsp;'.format_string($sco->title).'&nbsp;'.$score.'</a>';
$result->toc .= '<a data-scoid="'.$sco->id.'" title="'.$sco->url.'">&nbsp;'.format_string($sco->title).'&nbsp;'.$score.'</a>';
}
} else {
if ($sco->scormtype == 'sco') {
@@ -1710,8 +1726,9 @@ function scorm_get_toc($user, $scorm, $cmid, $toclink=TOCJSLINK, $currentorg='',
$organizationsco = null;
if ($tocheader) {
$result->toc = "<div id=\"scorm_layout\">\n";
$result->toc .= "<div id=\"scorm_toc\">\n";
$result->toc = "<div id=\"scorm_layout\" class=\"yui3-g-r\">\n";
$result->toc .= "<div id=\"scorm_toc\" class=\"yui3-u-1-5\">\n";
$result->toc .= "<div id=\"scorm_toc_title\"></div>\n";
$result->toc .= "<div id=\"scorm_tree\">\n";
}
@@ -1761,8 +1778,12 @@ function scorm_get_toc($user, $scorm, $cmid, $toclink=TOCJSLINK, $currentorg='',
$result->attemptleft = $treeview->attemptleft;
if ($tocheader) {
$result->toc .= "</div></div></div>\n";
$result->toc .= "</div></div>\n";
$result->toc .= "<div id=\"scorm_toc_toggle\">\n";
$result->toc .= "<button id=\"scorm_toc_toggle_btn\"></button></div>\n";
$result->toc .= "<div id=\"scorm_content\">";
$result->toc .= "<div id=\"scorm_navpanel\"></div>\n";
$result->toc .= "</div></div>\n";
}
return $result;
+22 -5
View File
@@ -162,11 +162,28 @@ class mod_scorm_mod_form extends moodleform_mod {
$mform->setAdvanced('hidetoc', $cfgscorm->hidetoc_adv);
$mform->disabledIf('hidetoc', 'scormtype', 'eq', SCORM_TYPE_AICCURL);
// Hide Navigation panel.
$mform->addElement('selectyesno', 'hidenav', get_string('hidenav', 'scorm'));
$mform->setDefault('hidenav', $cfgscorm->hidenav);
$mform->setAdvanced('hidenav', $cfgscorm->hidenav_adv);
$mform->disabledIf('hidenav', 'hidetoc', 'noteq', 0);
// Navigation panel display.
$mform->addElement('select', 'nav', get_string('nav', 'scorm'), scorm_get_navigation_display_array());
$mform->addHelpButton('nav', 'nav', 'scorm');
$mform->setDefault('nav', $cfgscorm->nav);
$mform->setAdvanced('nav', $cfgscorm->nav_adv);
$mform->disabledIf('nav', 'hidetoc', 'noteq', SCORM_TOC_SIDE);
// Navigation panel position from left.
$mform->addElement('text', 'navpositionleft', get_string('fromleft', 'scorm'), 'maxlength="5" size="5"');
$mform->setDefault('navpositionleft', $cfgscorm->navpositionleft);
$mform->setType('navpositionleft', PARAM_INT);
$mform->setAdvanced('navpositionleft', $cfgscorm->navpositionleft_adv);
$mform->disabledIf('navpositionleft', 'hidetoc', 'noteq', SCORM_TOC_SIDE);
$mform->disabledIf('navpositionleft', 'nav', 'noteq', SCORM_NAV_FLOATING);
// Navigation panel position from top.
$mform->addElement('text', 'navpositiontop', get_string('fromtop', 'scorm'), 'maxlength="5" size="5"');
$mform->setDefault('navpositiontop', $cfgscorm->navpositiontop);
$mform->setType('navpositiontop', PARAM_INT);
$mform->setAdvanced('navpositiontop', $cfgscorm->navpositiontop_adv);
$mform->disabledIf('navpositiontop', 'hidetoc', 'noteq', SCORM_TOC_SIDE);
$mform->disabledIf('navpositiontop', 'nav', 'noteq', SCORM_NAV_FLOATING);
// Display attempt status.
$mform->addElement('select', 'displayattemptstatus', get_string('displayattemptstatus', 'scorm'),
+508 -296
View File
File diff suppressed because it is too large Load Diff
+11 -2
View File
@@ -84,6 +84,13 @@ $forcejs = get_config('scorm', 'forcejavascript');
if (!empty($forcejs)) {
$PAGE->add_body_class('forcejavascript');
}
$collapsetocwinsize = get_config('scorm', 'collapsetocwinsize');
if (empty($collapsetocwinsize)) {
// Set as default window size to collapse TOC.
$collapsetocwinsize = 767;
} else {
$collapsetocwinsize = intval($collapsetocwinsize);
}
require_login($course, false, $cm);
@@ -246,7 +253,7 @@ if ($result->prerequisites) {
?>
</div> <!-- SCORM page -->
<?php
$scoes = scorm_get_toc_object($USER, $scorm, "", $sco->id, $mode, $attempt);
$scoes = scorm_get_toc_object($USER, $scorm, $currentorg, $sco->id, $mode, $attempt);
$adlnav = scorm_get_adlnav_json($scoes['scoes']);
if (empty($scorm->popup) || $displaymode == 'popup') {
@@ -258,7 +265,9 @@ if (empty($scorm->popup) || $displaymode == 'popup') {
'fullpath' => '/mod/scorm/module.js',
'requires' => array('json'),
);
$PAGE->requires->js_init_call('M.mod_scorm.init', array($scorm->hidenav, $scorm->hidetoc, $result->toctitle, $name, $sco->id, $adlnav), false, $jsmodule);
$scorm->nav = intval($scorm->nav);
$PAGE->requires->js_init_call('M.mod_scorm.init', array($scorm->nav, $scorm->navpositionleft, $scorm->navpositiontop, $scorm->hidetoc,
$collapsetocwinsize, $result->toctitle, $name, $sco->id, $adlnav), false, $jsmodule);
}
if (!empty($forcejs)) {
echo $OUTPUT->box(get_string("forcejavascriptmessage", "scorm"), "generalbox boxaligncenter forcejavascriptmessage");
+15 -3
View File
@@ -60,9 +60,21 @@ if ($ADMIN->fulltree) {
get_string('hidetoc', 'scorm'), get_string('hidetocdesc', 'scorm'),
array('value' => 0, 'adv' => true), scorm_get_hidetoc_array()));
$settings->add(new admin_setting_configselect_with_advanced('scorm/hidenav',
get_string('hidenav', 'scorm'), get_string('hidenavdesc', 'scorm'),
array('value' => 0, 'adv' => false), $yesno));
$settings->add(new admin_setting_configselect_with_advanced('scorm/nav',
get_string('nav', 'scorm'), get_string('navdesc', 'scorm'),
array('value' => SCORM_NAV_UNDER_CONTENT, 'adv' => true), scorm_get_navigation_display_array()));
$settings->add(new admin_setting_configtext_with_advanced('scorm/navpositionleft',
get_string('fromleft', 'scorm'), get_string('navpositionleft', 'scorm'),
array('value' => -100, 'adv' => true)));
$settings->add(new admin_setting_configtext_with_advanced('scorm/navpositiontop',
get_string('fromtop', 'scorm'), get_string('navpositiontop', 'scorm'),
array('value' => -100, 'adv' => true)));
$settings->add(new admin_setting_configtext_with_advanced('scorm/collapsetocwinsize',
get_string('collapsetocwinsize', 'scorm'), get_string('collapsetocwinsizedesc', 'scorm'),
array('value' => 767, 'adv' => true)));
$settings->add(new admin_setting_configselect_with_advanced('scorm/displayattemptstatus',
get_string('displayattemptstatus', 'scorm'), get_string('displayattemptstatusdesc', 'scorm'),
+44 -2
View File
@@ -3,24 +3,32 @@
.path-mod-scorm .scorm-center {text-align: center;}
.path-mod-scorm .scorm-right {text-align: right;}
.path-mod-scorm .scoframe {position: relative;width: 100%;height: 100%;}
.ios #scormpage #scorm_content {-webkit-overflow-scrolling: touch; overflow: scroll;}
#page-mod-scorm-player #scormobject {height: 100%;}
#page-mod-scorm-player #scormtop {position: relative;width: 100%;height: 30px;}
#page-mod-scorm-player #scormbrowse {position: absolute;left: 5px;top: 0px;}
#page-mod-scorm-player #scormnav {position: absolute;right: 5px;top: 0px;text-align: center;top: 3px;width: 100%;}
#page-mod-scorm-player #scormbox {width: 74%;height: 100%;position: absolute;right: 0px;top: 0px;}
#page-mod-scorm-player #scormpage {position: relative;width: 100%;height: 100%;}
#page-mod-scorm-player #scormpage #toctree {position:relative;width:100%;overflow-x: auto;overflow-y: auto;}
#page-mod-scorm-player #scormpage #toctree {position:relative;width:100%;}
#page-mod-scorm-player #tocbox {position: relative;left: 0px;width: 100%;height: 100%;font-size: 0.8em;}
#page-mod-scorm-player #toctree { overflow: visible; }
#page-mod-scorm-player #tochead {position: relative;text-align: center;top: 3px;height: 30px;}
#page-mod-scorm-player #scormpage .scoframe {frameborder: 0;}
#page-mod-scorm-player #scormpage #scorm_object {border: none; width: 98%; height: 98%;}
#page-mod-scorm-player #scormpage #scorm_object.scorm_nav_under_content {height: 95%;}
#page-mod-scorm-player #scormpage #scorm_content {height: 100%;}
#page-mod-scorm-player #scormpage #scorm_toc {position: relative;}
#page-mod-scorm-player #scormpage #scorm_toc_title {font-size: 1.2em; font-weight: bold;}
#page-mod-scorm-player #scormpage #scorm_tree {border-right: 5px solid rgb(239, 245, 255);}
#page-mod-scorm-player #scormpage #scorm_navpanel {text-align: center;}
#page-mod-scorm-player .toc,
#page-mod-scorm-player .no-toc {width: 100%;}
#page-mod-scorm-player .structlist {list-style-type: none;white-space: nowrap;}
#page-mod-scorm-player .structurelist {position: relative;list-style-type: none;width: 96%;margin:0;padding:0;}
#page-mod-scorm-player .structurelist ul {padding-left: 0.5em;margin-left: 0.5em;}
#page-mod-scorm-player #scormpage #scorm_toc.disabled {display:none}
#page-mod-scorm-view .structurelist {list-style-type: none;white-space: nowrap;}
#page-mod-scorm-view .structurelist {list-style-type: none;white-space: nowrap;}
@@ -45,3 +53,37 @@
word-break: break-all;
}
#page-mod-scorm-player #scormpage span.yui3-treeview-icon {display: none;}
#page-mod-scorm-player #scormpage li.yui3-treeview-has-children > div.yui3-treeview-row > span.yui3-treeview-icon {display: block;}
#page-mod-scorm-player #scormpage div.yui3-u-1,
#page-mod-scorm-player #scormpage div.yui3-u-3-4,
#page-mod-scorm-player #scormpage div.yui3-u-1-5,
#page-mod-scorm-player #scormpage div.yui3-u-1-24 {
display: inline-block;
*display: inline;
zoom: 1;
letter-spacing: normal;
word-spacing: normal;
vertical-align: top;
text-rendering: auto;
}
#page-mod-scorm-player #scormpage div.yui3-u-1 {display: block;}
#page-mod-scorm-player #scormpage div.yui3-u-3-4 {width: 75%;}
#page-mod-scorm-player #scormpage div.yui3-u-1-5 {width: 20%;}
#page-mod-scorm-player #scormpage div.yui3-u-1-24 {width: 4.1666%;}
#page-mod-scorm-player #scormpage div.yui3-g-r {*letter-spacing: normal; *word-spacing: -0.43em;}
/**
* Opera as of 12 on Windows needs word-spacing.
* The ".opera-only" selector is used to prevent actual prefocus styling
* and is not required in markup.
*/
#page-mod-scorm-player .opera-only :-o-prefocus,
#page-mod-scorm-player #scormpage div.yui3-g-r img {max-width: 100%;}
+1 -1
View File
@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();
$module->version = 2013081303; // The current module version (Date: YYYYMMDDXX)
$module->version = 2013090100; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2013050100; // Requires this Moodle version
$module->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics)
$module->cron = 300;