diff --git a/main/css/public_admin/scorm.css b/main/css/public_admin/scorm.css index f18aec396a..8097419d02 100644 --- a/main/css/public_admin/scorm.css +++ b/main/css/public_admin/scorm.css @@ -21,7 +21,7 @@ .inner_lp_toc{ overflow: auto; background-color: white; - height: 600px; + height: 530px; width: 90%; border-right: 1px #999999 solid; border-left: 15px #FFF solid; diff --git a/main/newscorm/display_audiorecorder.php b/main/newscorm/display_audiorecorder.php index 08d58d586a..fdad706257 100644 --- a/main/newscorm/display_audiorecorder.php +++ b/main/newscorm/display_audiorecorder.php @@ -38,13 +38,12 @@ $html=''; if ($_GET['show_audio']) { - $html='
'."\n"; + echo '
'."\n"; if ($_SESSION['oLP']->get_preview_image()!='') - $html .=''.$_SESSION['oLP']->get_author().'get_preview_image().'>'; - else - $html .=Display::display_icon('unknown.jpg',$_SESSION['oLP']->get_author()); - $html .='
'; - echo $html; + echo ''.$_SESSION['oLP']->get_author().'get_preview_image().'>'; + else + echo Display::display_icon('unknown.jpg',$_SESSION['oLP']->get_author()); + echo '
'; echo '
'; $audio_recorder_studentview = 'true'; @@ -57,13 +56,12 @@ if ($_GET['show_audio']) } else { - $html='
'."\n"; + echo '
'."\n"; if ($_SESSION['oLP']->get_preview_image()!='') - $html .=''.$_SESSION['oLP']->get_author().'get_preview_image().'>'; + echo ''.$_SESSION['oLP']->get_author().'get_preview_image().'>'; else - $html .=Display::display_icon('unknown.jpg',$_SESSION['oLP']->get_author()); - $html .='
'; - echo $html; + echo Display::display_icon('unknown.jpg',$_SESSION['oLP']->get_author()); + echo '
'; } echo ''; diff --git a/main/newscorm/lp_header.php b/main/newscorm/lp_header.php index dd66360f52..894319b201 100644 --- a/main/newscorm/lp_header.php +++ b/main/newscorm/lp_header.php @@ -57,7 +57,7 @@ if($show_link) // else we don't display get_lang(ucfirst(TOOL_LEARNPATH)) in the breadcrumb since the learner accessed it directly from the course homepage $interbreadcrumb[] = array("url"=>"./lp_controller.php?action=view&lp_id=".$path_id,'name'=>$path_name); $noPHP_SELF = true; -echo $lp_theme_css=$_SESSION['oLP']->get_theme(); +$lp_theme_css=$_SESSION['oLP']->get_theme(); include('../inc/reduced_header.inc.php'); echo '
'; echo ''.get_lang('CourseHomepageLink').''; diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index 9d5d7f2931..be27f818d6 100644 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.php @@ -174,10 +174,10 @@ else //set flag to ensure lp_header.php is loaded by this script (flag is unset in lp_header.php) $_SESSION['loaded_lp_view'] = true; $audio_record_width=''; - if ($displayAudioRecorder || $_SESSION['oLP']->get_preview_image()!='') + if (1 || $_SESSION['oLP']->get_preview_image()!='') { - if ($displayAudioRecorder) - $audio_record_width='220,'; + if (1) + $audio_record_width='170,'; else $audio_record_width='120,'; } @@ -187,12 +187,12 @@ else } ?> - + get_preview_image()!='') + if (1 || $_SESSION['oLP']->get_preview_image()!='') { - if($displayAudioRecorder) //if audio recorder is required (set a few lines above) + if(1) //if audio recorder is required (set a few lines above) echo ''; else echo '';