Browse Source

fix title impress slider section Bt#9729

aragonc 10 years ago
parent
commit
1ce9b11e4b
2 changed files with 25 additions and 1 deletions
  1. 18 0
      main/css/base.css
  2. 7 1
      main/newscorm/lp_impress.php

+ 18 - 0
main/css/base.css

@@ -253,6 +253,24 @@ ul#navigation .report a {
 }
 
 /* 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{

+ 7 - 1
main/newscorm/lp_impress.php

@@ -63,13 +63,19 @@ 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 ++;
 }