Merge pull request #669 from aragonc/BT#9729

Bt#9729, update fix slider impress.js
1.9.x
Yannick Warnier 11 years ago
commit b0e51f5401
  1. 18
      main/css/base.css
  2. 10
      main/newscorm/lp_impress.php

@ -183,6 +183,24 @@ header #logo img{
}
/* END COURSE PROGRESS*/
/* IMPRESS JS */
.impress-content{
position: relative;
width: 100%;
height:600px;
}
.impress-title{
position: absolute;
top:40%;
left: 0%;
text-align: center;
width: 100%;
}
.impress-title h1{
font-size: 35px;
}
/* END IMPRESS JS*/
/* SESSION CATALOG*/
.session-group .padding-clear{

@ -67,10 +67,18 @@ foreach ($list as $toc) {
$html .= '<div id="step-'.$step.'" class="step slide" data-x="'.$x.'" data-y="-1500" >';
$html .= '<h2>'.$toc['title'].'</h2>';
$html .= '<div class="impress-content">';
$src = $_SESSION['oLP']->get_link('http', $toc['id']);
if ($toc['type'] !== 'dokeos_chapter') {
//just showing the src in a iframe ...
$html .= '<h2>'.$toc['title'].'</h2>';
$html .= '<iframe border="0" frameborder="0" style="width:100%;height:600px" src="' . $src . '"></iframe>';
}else{
$html .= "<div class='impress-title'>";
$html .= '<h1>'.$toc['title'].'</h1>';
$html .= "</div>";
}
$html .= "</div>";
$html .= "</div>";
$step ++;
}

Loading…
Cancel
Save