Browse Source

Merge branch 'aragonc-1.9.x' into 1.9.x

Yannick Warnier 10 years ago
parent
commit
103b077836

+ 10 - 17
.gitignore

@@ -215,21 +215,19 @@ if (!empty($course) && !empty($_user['user_id'])) {
 
 				$fp = fopen($chat_path.$basename_chat.'.log.html', 'a');
 					// view user picture
-					$user_image = UserManager::get_user_picture_path_by_id($user_id, 'web', false, true);
-					$user_photo = $user_image['dir'].'medium_'.$user_image['file'];
-					$file_photo = '<img class="chat-image" src="'.$user_photo.'"/>';
+					$userImage = UserManager::get_user_picture_path_by_id($user_id, 'web', false, true);
+                                        if (substr($userImage['file'],0,7) != 'unknown') {
+    					$userPhoto = $userImage['dir'].'medium_'.$userImage['file'];
+                                        } else {
+    					$userPhoto = $userImage['dir'].$userImage['file'];
+                                        }
+					$filePhoto = '<img class="chat-image" src="'.$userPhoto.'"/>';
 
 				if ($isMaster) {
-
-					// $photo = '<img src="'.api_get_path(WEB_IMG_PATH).'teachers.gif" alt="'.get_lang('Teacher').'"  width="11" height="11" align="top"  title="'.get_lang('Teacher').'"  />';
-					fputs($fp, '<div class="message-teacher"><div class="content-message"><div>'.$message.'</div><div class="message-date">'.$timeNow.'</div></div><div class="icon-message"></div>'.$file_photo.'</div>'."\n");
-					//fputs($fp, '<span style="color:#999; font-size: smaller;">['.$timeNow.']</span>'.$file_photo.' <span id="chat_login_name"><b>'.api_get_person_name($firstname, $lastname).'</b></span> : <i>'.$message.'</i><br />'."\n");
+					fputs($fp, '<div class="message-teacher"><div class="content-message"><div>'.$message.'</div><div class="message-date">'.$timeNow.'</div></div><div class="icon-message"></div>'.$filePhoto.'</div>'."\n");
 				} else {
-					// $photo = '<img src="'.api_get_path(WEB_IMG_PATH).'students.gif" alt="'.get_lang('Student').'"  width="11" height="11" align="top"  title="'.get_lang('Student').'"  />';
-					//fputs($fp, '<span style="color:#999; font-size: smaller;">['.$timeNow.']</span>'.$file_photo.' <b>'.api_get_person_name($firstname, $lastname).'</b> : <i>'.$message.'</i><br />'."\n");
-					fputs($fp, '<div class="message-student">'.$file_photo.'<div class="icon-message"></div><div class="content-message"><div>'.$message.'</div><div class="message-date">'.$timeNow.'</div></div></div>'."\n");
+					fputs($fp, '<div class="message-student">'.$filePhoto.'<div class="icon-message"></div><div class="content-message"><div>'.$message.'</div><div class="message-date">'.$timeNow.'</div></div></div>'."\n");
 				}
-
 				fclose($fp);
 
 				$chat_size = filesize($chat_path.$basename_chat.'.log.html');
@@ -250,7 +248,7 @@ if (!empty($course) && !empty($_user['user_id'])) {
         <textarea id="message" class="message-text" name="message" style=" <?php echo $talkboxsize; ?>" onkeydown="send_message(event);" onclick="javascript: insert_smile(this);"></textarea>
         </td>
         <td>
-            <button id="send" type="submit" value="<?php echo get_lang('Send'); ?>" class="btn-enviar"><?php echo get_lang('Send'); ?></button>
+        <button id="send" type="submit" value="<?php echo get_lang('Send'); ?>" class="btn-send"><?php echo get_lang('Send'); ?></button>
         </td>
 	</tr>
 	</table>
@@ -287,11 +285,6 @@ if (!empty($course) && !empty($_user['user_id'])) {
 		?>
     </div>
     </form>
-    <!-- <audio id="audio">
-	    <source type="audio/wav" src="sound/sonido_notificacion.wav"></source>
-	    <source type="audio/ogg" src="sound/sonido_notificacion.ogg"></source>
-	    <source type="audio/mpeg" src="sound/sonido_notificacion.mp3"></source>
-    </audio> -->
 <?php
 }
 require 'footer_frame.inc.php';

+ 19 - 11
main/chat/chat_whoisonline.php

@@ -109,11 +109,10 @@ if (!empty($course)) {
 	?>
 	<div class="user-connected">
 	<div id="user-online-scroll" class="user-online">
-
 		<div class="title"><?php echo get_lang('Users'); ?> <?php echo get_lang('Connected'); ?></div>
 		<div class="scrollbar"><div class="track"><div class="thumb"><div class="end"></div></div></div></div>
 		<div class="viewport"><div id="hidden" class="overview">
-		<ul class="perfil list-group">
+		<ul class="profile list-group">
 			<?php
 				foreach ($users as & $user) {
 					if (empty($session_id)) {
@@ -121,23 +120,32 @@ if (!empty($course)) {
 					} else {
 						$status = CourseManager::is_course_teacher($user['user_id'], $_SESSION['_course']['id']) ? 1 : 5;
 					}
-					$user_image = UserManager::get_user_picture_path_by_id($user['user_id'], 'web', false, true);
-					$file_url = $user_image['dir'].'medium_'.$user_image['file'];
-					$email_url = $user['email'];
-					$url_user_profile=api_get_path(WEB_CODE_PATH).'social/profile.php?u='.$user['user_id'].'&';
+				$userImage = UserManager::get_user_picture_path_by_id($user['user_id'], 'web', false, true);
+                                if (substr($userImage['file'],0,7) != 'unknown') {
+				    $fileUrl = $userImage['dir'].'medium_'.$userImage['file'];
+                                } else {
+				    $fileUrl = $userImage['dir'].$userImage['file'];
+                                }
+				$email = $user['email'];
+				$url_user_profile=api_get_path(WEB_CODE_PATH).'social/profile.php?u='.$user['user_id'].'&';
 			?>
 			<li class="list-group-item">
-				<img src="<?php echo $file_url;?>" border="0" width="50" alt="" class="user-image-chat" />
+				<img src="<?php echo $fileUrl;?>" border="0" width="50" alt="" class="user-image-chat" />
 				<div class="user-name">
 					<a href="<?php echo $url_user_profile; ?>" target="_blank"><?php echo api_get_person_name($user['firstname'], $user['lastname']); ?></a>
-					<?php if ($status == 1) echo Display::return_icon('teachers.gif', get_lang('Teacher'), array('height' => '18')).' '; else echo Display::return_icon('students.gif', get_lang('Student'), array('height' => '18')); ?>
+					<?php
+						if ($status == 1) {
+							echo Display::return_icon('teachers.gif', get_lang('Teacher'), array('height' => '18'));
+						}else{
+							echo Display::return_icon('students.gif', get_lang('Student'), array('height' => '18'));
+						}
+					?>
 				</div>
-				<div class="user-email"><?php echo $email_url; ?></div>
-				
+				<div class="user-email"><?php echo $email; ?></div>
 			</li>
 			<?php  } unset($users); ?>
 		</ul>
 	</div></div></div></div>
 	<?php
 }
-require 'footer_frame.inc.php';
+require 'footer_frame.inc.php';

+ 3 - 3
main/chat/footer_frame.inc.php

@@ -9,9 +9,9 @@
  */
 ?>
 <audio id="audio">
-	<source src="sound/sonido_notificacion.wav" type="audio/wav"></source>
-	<source src="sound/sonido_notificacion.ogg" type="audio/ogg"></source>
-	<source src="sound/sonido_notificacion.mp3" type="audio/mpeg"></source>
+	<source src="<?php echo api_get_path(WEB_PATH);?>main/chat/sound/notification.wav" type="audio/wav"></source>
+	<source src="<?php echo api_get_path(WEB_PATH);?>main/chat/sound/notification.ogg" type="audio/ogg"></source>
+	<source src="<?php echo api_get_path(WEB_PATH);?>main/chat/sound/notification.mp3" type="audio/mpeg"></source>
 </audio>
 </body>
 </html>

+ 41 - 79
main/chat/header_frame.inc.php

@@ -18,7 +18,7 @@ $bodyXtra = ' class="course_chat" dir="'.api_get_text_direction().'" ';
 
 if (FRAME == 'hidden') {
 	$bodyXtra .= 'onload="javascript: updateChat(); updateConnected(); setTimeout(\'submitHiddenForm();\', 5000);"';
-    // Change timeout to change refresh time of the chat window
+	// Change timeout to change refresh time of the chat window
 } elseif (FRAME == 'message') {
 	$bodyXtra .= 'onload="javascript: eventMessage();"';
 }
@@ -45,91 +45,53 @@ header('Content-Type: text/html; charset='.api_get_system_encoding());
 ?><!DOCTYPE html>
 <html>
 <head>
-    <meta charset="<?php echo api_get_system_encoding(); ?>" />
-    <title>Chat</title>
-    <link rel="stylesheet" type="text/css" href="<?php echo api_get_path(WEB_CSS_PATH); ?>chat.css">
-    <?php echo api_get_js('jquery.min.js'); ?>
-    <?php echo api_get_js('jquery.tinyscrollbar.js'); ?>
-    <script type="text/javascript">
-        /*$(document).ready(function() {
-        var posicion = $("#clear-chat").offset();
-        var margenSuperior = 15;
-         $(window).scroll(function() {
-             if ($(window).scrollTop() > posicion.top) {
-                 $("#clear-chat").stop().animate({
-                     marginTop: $(window).scrollTop() - posicion.top + margenSuperior
-                 });
-             } else {
-                 $("#clear-chat").stop().animate({
-                     marginTop: 0
-                 });
-             };
-         });
-        });*/
-        $(document).ready(function(){
-                $('#user-online-scroll').tinyscrollbar();
-            });
-        //Sound send message
-        /*$(document).ready(function(){
-            $("#message").keypress(function(event){
-            if (event.which == 13) {
-                $("#audio")[0].play();
-                }
-            });
-        });
-        $(document).ready(function(){
-            $("#send").on("click",function(){
-                $("#audio")[0].play();
-            });
-        });*/
-        
-    </script>
-
+<meta charset="<?php echo api_get_system_encoding(); ?>" />
+<title>Chat</title>
+<link rel="stylesheet" type="text/css" href="<?php echo api_get_path(WEB_CSS_PATH); ?>chat.css">
+<?php echo api_get_js('jquery.min.js'); ?>
+<?php echo api_get_js('jquery.tinyscrollbar.js'); ?>
 <script type="text/javascript">
-function play_notification() {
-    document.getElementById('audio').play();
-}
-function updateChat()
-{
-	if ('<?php echo $chat_size_old; ?>' != '<?php echo $chat_size_new; ?>') {
-		parent.chat_chat.location.href='chat_chat.php?size=<?php echo $chat_size_new.'&'.api_get_cidreq(); ?>#bottom';
-        play_notification();
-	}
-}
+	$(document).ready(function(){
+		$('#user-online-scroll').tinyscrollbar();
+	});
 
-function updateConnected()
-{
-
-	if ('<?php echo $connected_old; ?>' != '<?php echo $connected_new; ?>')
-	{
-		parent.chat_whoisonline.location.href='chat_whoisonline.php?size=<?php echo $connected_new; ?>';
+	function play_notification() {
+		document.getElementById('audio').play();
 	}
-}
 
-function submitHiddenForm()
-{
-	document.formHidden.submit();
-}
+	function updateChat(){
+		if ('<?php echo $chat_size_old; ?>' != '<?php echo $chat_size_new; ?>') {
+			parent.chat_chat.location.href='chat_chat.php?size=<?php echo $chat_size_new.'&'.api_get_cidreq(); ?>#bottom';
+			play_notification();
+		}
+	}
 
-function eventMessage()
-{
-	<?php if (isset($chat_size) && $chat_size): ?>
-	parent.chat_hidden.document.formHidden.chat_size_old.value='<?php echo $chat_size; ?>';
-	parent.chat_chat.location.href='chat_chat.php?size=<?php echo $chat_size.'&'.api_get_cidreq(); ?>#bottom';
-	<?php endif; ?>
-	document.formMessage.message.focus();
+	function updateConnected(){
+		if ('<?php echo $connected_old; ?>' != '<?php echo $connected_new; ?>'){
+			parent.chat_whoisonline.location.href='chat_whoisonline.php?size=<?php echo $connected_new; ?>';
+		}
+	}
 
-}
+	function submitHiddenForm(){
+		document.formHidden.submit();
+	}
 
-function send_message(evenement) {
-    for (prop in evenement) {
-    	if(prop == 'which') touche = evenement.which; else touche = evenement.keyCode;
-    }
+	function eventMessage(){
+		<?php if (isset($chat_size) && $chat_size): ?>
+		parent.chat_hidden.document.formHidden.chat_size_old.value='<?php echo $chat_size; ?>';
+		parent.chat_chat.location.href='chat_chat.php?size=<?php echo $chat_size.'&'.api_get_cidreq(); ?>#bottom';
+		<?php endif; ?>
+		document.formMessage.message.focus();
+	}
 
-    if (touche == 13) {
-    	document.formMessage.submit();
-    }
-}
+	function send_message(keyEvent) {
+		for (prop in keyEvent) {
+			if(prop == 'which') key = keyEvent.which; else key = keyEvent.keyCode;
+		}
+		if (key == 13) {
+			document.formMessage.submit();
+		}
+	}
 </script>
 </head>
-<body <?php echo $bodyXtra; ?> >
+<body <?php echo $bodyXtra; ?> >

BIN
main/chat/sound/notification.mp3


BIN
main/chat/sound/notification.ogg


BIN
main/chat/sound/notification.wav


BIN
main/chat/sound/sonido_notificacion.mp3


BIN
main/chat/sound/sonido_notificacion.ogg


BIN
main/chat/sound/sonido_notificacion.wav


+ 4 - 6
main/css/academica/images/user_icon.png


+ 2 - 3
main/css/baby_orange/images/bg-button.png


+ 2 - 3
main/css/bg-scrollbar-thumb-y.png


+ 71 - 52
main/css/chamilo/images/bg-button.png


+ 58 - 52
main/css/chat.css

@@ -8,17 +8,19 @@ body{
 }
 .page-chat{
 	padding: 10px;
-	background: #2C2C2C;
+	background: #e5e5e5; /* Old browsers */
+	background: -moz-linear-gradient(top, #e5e5e5 0%, #ffffff 99%); /* FF3.6+ */
+	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(99%,#ffffff)); /* Chrome,Safari4+ */
+	background: -webkit-linear-gradient(top, #e5e5e5 0%,#ffffff 99%); /* Chrome10+,Safari5.1+ */
+	background: -o-linear-gradient(top, #e5e5e5 0%,#ffffff 99%); /* Opera 11.10+ */
+	background: -ms-linear-gradient(top, #e5e5e5 0%,#ffffff 99%); /* IE10+ */
+	background: linear-gradient(to bottom, #e5e5e5 0%,#ffffff 99%); /* W3C */
+	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
 }
 #clear-chat{
-		/*position: absolute;
-        top:0;
-        left: 10px;*/
-        background: #2C2C2C;
-		border:1px solid #2C2C2C;
-        width:140px;
-        padding: 5px;
-        font-size: 14px;
+	width:140px;
+    padding: 5px;
+    font-size: 14px;
 }
 #clear-chat img{
 	width: 20px;
@@ -26,14 +28,14 @@ body{
 	margin-right: 5px;
 }
 #clear-chat a{
-	color: #fff;
+	color: #0088AA;
 	text-decoration: none;
 }
 #clear-chat a:hover{
 	opacity: 0.7;
 }
 #content-chat{
-	background:#3E3E3E;
+	background:#ffffff;
 	padding: 30px;
 	-webkit-border-radius: 10px;
 	-moz-border-radius: 10px;
@@ -45,15 +47,15 @@ textarea {
 	height: 100px;
 	float: left;
 	border: 0;
-	background-color: #434343; 
+	background-color: #ffffff; 
 	font-size: 0.75em;
 	font-family: Helvetica, arial, sans-serif;
 	-webkit-border-radius: 10px;
 	-moz-border-radius: 10px;
 	border-radius: 10px;
-	border: 1px solid #434343;
-	color: #BDBDBA;
-	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.075) inset;
+	border: 1px solid #EEEEEE;
+	color: #666;
+	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) inset;
 }
 .message-student .chat-image, .message-teacher .chat-image{
  	width: 80px;
@@ -65,17 +67,17 @@ textarea {
 	-moz-border-radius: 10px;
 	border-radius: 10px;
 	border:2px solid #fff;
-	box-shadow: 1px 1px 10px #484848; 
+	box-shadow: 1px 1px 2px rgba(0,0,0,0.2); 
  }
 .message-student .content-message{
-	background-color: #FAEDCE;
+	background-color: #F9F2E0;
     color: #000;
     padding: 10px;
     margin-bottom: 15px;
-    border-top: 1px solid #FAEDCE;
-    border-left: 1px solid #FAEDCE;
-    border-right: 1px solid #FAEDCE;
-    border-bottom: 1px solid #FAEDCE;
+    border-top: 1px solid #F9F2E0;
+    border-left: 1px solid #F9F2E0;
+    border-right: 2px solid #F7E5B9;
+    border-bottom: 3px solid #F7E5B9;
     border-radius: 10px;
 
 	display: inline-block;
@@ -92,7 +94,7 @@ textarea {
 	height: 0; 
 	border-top: 0px solid transparent;
 	border-bottom: 15px solid transparent;
-	border-left: 15px solid #EFE856;
+	border-left: 15px solid #EBEFF3;
 }
 .message-student .icon-message{
 	display: inline-block;
@@ -102,17 +104,17 @@ textarea {
 	height: 0; 
 	border-top: 0px solid transparent;
 	border-bottom: 15px solid transparent;
-	border-right: 15px solid #FAEDCE;
+	border-right: 15px solid #F9F2E0;
 }
 .message-teacher .content-message{
-	background-color: #EFE856;
+	background-color: #EBEFF3;
     color: #000;
     padding: 10px;
     margin-bottom: 15px;
-    border-top: 1px solid #EFE856;
-    border-left: 1px solid #EFE856;
-    border-right: 1px solid #EFE856;
-    border-bottom: 1px solid #EFE856;
+    border-top: 1px solid #EBEFF3;
+    border-left: 2px solid #DEE1E5;
+    border-right: 1px solid #EBEFF3;
+    border-bottom: 3px solid #DEE1E5;
     border-radius: 10px;
 	display: inline-block;
 	font-size: 13px;
@@ -132,24 +134,24 @@ textarea {
 	color: #666;
 	font-style: italic;
 	font-size: 10px;
-	text-align: left;
+	text-align: right;
 	margin-top: 10px;
 }
-.user-online .perfil{
+.user-online .profile{
 	list-style: none;
 	padding: 0;
 	margin:0;
 }
-.user-online .perfil li{
+.user-online .profile li{
 	margin-bottom: 5px;
 }
-.user-online .perfil li a{
-	color: #fff;
+.user-online .profile li a{
+	color: #0088AA;
 	text-decoration: none;
 }
 .user-online .title{
 	background: url(chat.png) no-repeat 0 center;
-	color: #ffffff;
+	color: #0088AA;
 	padding-top: 5px;
 	padding-left: 30px;
 	font-weight: bold;
@@ -170,16 +172,19 @@ textarea {
   display: block;
   padding: 10px 15px;
   margin-bottom: -1px;
-  background-color: #3D3D3D;
-  border: 1px solid #3D3D3D;
+  background-color: #EEEEEE;
+  border: 1px solid #E2E2E2;
   -webkit-border-radius: 10px;
 	-moz-border-radius: 10px;
 	border-radius: 10px;
 	color: #666;
 }
+
 li.list-group-item:hover, li.list-group-item:focus {
   text-decoration: none;
-  background-color: #EEEEEE;
+  background-color: #E2E2E2;
+  cursor: pointer;
+  border: 1px solid #EEEEEE;
 }
 li.list-group-item:hover a{
 	color: #000;
@@ -206,19 +211,19 @@ li.list-group-item:hover a{
 #user-online-scroll .disable { display: none; }
 .noSelect { user-select: none; -o-user-select: none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; }
 
-.btn-enviar {
-	background: #fc585d; /* Old browsers */
-	background: -moz-linear-gradient(top, #fc585d 0%, #fd3746 99%); /* FF3.6+ */
-	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fc585d), color-stop(99%,#fd3746)); /* Chrome,Safari4+ */
-	background: -webkit-linear-gradient(top, #fc585d 0%,#fd3746 99%); /* Chrome10+,Safari5.1+ */
-	background: -o-linear-gradient(top, #fc585d 0%,#fd3746 99%); /* Opera 11.10+ */
-	background: -ms-linear-gradient(top, #fc585d 0%,#fd3746 99%); /* IE10+ */
-	background: linear-gradient(to bottom, #fc585d 0%,#fd3746 99%); /* W3C */
-	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fc585d', endColorstr='#fd3746',GradientType=0 ); /* IE6-9 */
+.btn-send {
+	background: #87e0fd; /* Old browsers */
+	background: -moz-linear-gradient(top, #87e0fd 0%, #53cbf1 40%, #05abe0 100%); /* FF3.6+ */
+	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#87e0fd), color-stop(40%,#53cbf1), color-stop(100%,#05abe0)); /* Chrome,Safari4+ */
+	background: -webkit-linear-gradient(top, #87e0fd 0%,#53cbf1 40%,#05abe0 100%); /* Chrome10+,Safari5.1+ */
+	background: -o-linear-gradient(top, #87e0fd 0%,#53cbf1 40%,#05abe0 100%); /* Opera 11.10+ */
+	background: -ms-linear-gradient(top, #87e0fd 0%,#53cbf1 40%,#05abe0 100%); /* IE10+ */
+	background: linear-gradient(to bottom, #87e0fd 0%,#53cbf1 40%,#05abe0 100%); /* W3C */
+	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#87e0fd', endColorstr='#05abe0',GradientType=0 ); /* IE6-9 */
 	-webkit-border-radius: 15px;
 	-moz-border-radius: 15px;
 	border-radius: 15px;
-	border:1px solid #FD3746;
+	border:1px solid #53cbf1;
 	display:inline-block;
 	color:#ffffff;
 	font-family:Arial;
@@ -232,15 +237,16 @@ li.list-group-item:hover a{
 	text-align:center;
 	cursor: pointer;
 }
-.btn-enviar:hover {
+.btn-send:hover {
 	opacity: 0.8;
-}.btn-enviar:active {
+}
+.btn-send:active {
 	position:relative;
 	top:1px;
 }
 .emoticons-chat img{
-  width: 24px;
-  border: none;
+  	width: 24px;
+  	border: none;
 }
 .message-form-chat{
 	margin-top: 20px;
@@ -248,5 +254,5 @@ li.list-group-item:hover a{
 	-webkit-border-radius: 10px;
 	-moz-border-radius: 10px;
 	border-radius: 10px;
-	background: #3D3D3D;
+	background: #EEEEEE;
 }

BIN
main/css/chat.png


+ 2 - 4
main/css/corporate/scorm.css

@@ -7,7 +7,6 @@
 }
 
 .inner_lp_toc .scorm_item a {
-    font-weight: bold;
     font-size: 13px;
     margin-right: 1px;
     padding-bottom: 2px;
@@ -105,7 +104,7 @@
 
 .inner_lp_toc .scorm_item_section .scorm_item:before
 {
-    content : url('../../img/lp_section.png');  /* from main/newscorm/lp_controller.php file */
+    content : url('../lp_section.png');  /* from main/newscorm/lp_controller.php file */
     vertical-align: text-top;
     margin-right : 5px;
 }
@@ -231,9 +230,8 @@
     text-decoration: none;  
     
 }
-
 .inner_lp_toc .scorm_item {
-    font-size: 16px;
+    font-size: 14px;
     margin-left: 10px;
     margin-right:10px;
     text-decoration: none;

+ 2 - 3
main/css/cosmic_campus/scorm.css

@@ -7,7 +7,6 @@
 }
 
 .inner_lp_toc .scorm_item a {
-    font-weight: bold;
     font-size: 13px;
     margin-right: 1px;
     padding-bottom: 2px;
@@ -105,7 +104,7 @@
 
 .inner_lp_toc .scorm_item_section .scorm_item:before
 {
-    content : url('../../img/lp_section.png');  /* from main/newscorm/lp_controller.php file */
+    content : url('../lp_section.png');  /* from main/newscorm/lp_controller.php file */
     vertical-align: text-top;
     margin-right : 5px;
 }
@@ -240,7 +239,7 @@
 }
 
 .inner_lp_toc .scorm_item {
-    font-size: 16px;
+    font-size: 14px;
     margin-left: 10px;
     margin-right:10px;
     text-decoration: none;

+ 4 - 6
main/css/default_scorm.css

@@ -7,7 +7,6 @@
 }
 
 .inner_lp_toc .scorm_item a {
-    font-weight: bold;
     font-size: 13px;
     margin-right: 1px;
     padding-bottom: 2px;
@@ -105,7 +104,7 @@
 
 .inner_lp_toc .scorm_item_section .scorm_item:before
 {
-    content : url('../../img/lp_section.png');  /* from main/newscorm/lp_controller.php file */
+    content : url('../lp_section.png');  /* from main/newscorm/lp_controller.php file */
     vertical-align: text-top;
     margin-right : 5px;
 }
@@ -185,7 +184,6 @@
     overflow: auto;
     background-color: #E6E6E6;
     height: 210px;
-    padding: 10px;   
 }
 
 .inner_lp_toc .scorm_item a {
@@ -233,7 +231,7 @@
 }
 
 .inner_lp_toc .scorm_item {
-    font-size: 16px;
+    font-size: 14px;
     margin-left: 10px;
     margin-right:10px;
     text-decoration: none;
@@ -452,7 +450,7 @@ opacity: 0.7;
 /*STYLES PROCESS LESSION*/
 .inner_lp_toc .scorm_completed {
     background-image: url("images/blue_arrow.png")  !important;
-    background-position: 255px center !important;
+    background-position: 270px center !important;
     background-repeat: no-repeat;
 }
 
@@ -492,7 +490,7 @@ opacity: 0.7;
 .inner_lp_toc .scorm_item_highlight {
     background-color: #777777;
     background-image: url("images/white_arrow.png") !important;
-    background-position: 255px center !important;
+    background-position: 270px center !important;
     background-repeat: no-repeat;
     border: 1px solid #777777;
     text-shadow:none;

+ 4 - 6
main/css/journal/scormfs.css

@@ -7,7 +7,6 @@
 }
 
 .inner_lp_toc .scorm_item a {
-    font-weight: bold;
     font-size: 13px;
     margin-right: 1px;
     padding-bottom: 2px;
@@ -105,7 +104,7 @@
 
 .inner_lp_toc .scorm_item_section .scorm_item:before
 {
-    content : url('../../img/lp_section.png');  /* from main/newscorm/lp_controller.php file */
+    content : url('../lp_section.png');  /* from main/newscorm/lp_controller.php file */
     vertical-align: text-top;
     margin-right : 5px;
 }
@@ -185,7 +184,6 @@
     overflow: auto;
     background-color: #D7EEF4;
     height: 210px;
-    padding: 10px;   
 }
 
 .inner_lp_toc .scorm_item a {
@@ -233,7 +231,7 @@
 }
 
 .inner_lp_toc .scorm_item {
-    font-size: 16px;
+    font-size: 14px;
     margin-left: 10px;
     margin-right:10px;
     text-decoration: none;
@@ -441,7 +439,7 @@ opacity: 0.7;
 /*STYLES PROCESS LESSION*/
 .inner_lp_toc .scorm_completed {
     background-image: url("images/blue_arrow.png")  !important;
-    background-position: 255px center !important;
+    background-position: 270px center !important;
     background-repeat: no-repeat;
 }
 
@@ -481,7 +479,7 @@ opacity: 0.7;
 .inner_lp_toc .scorm_item_highlight {
     background-color: #00aad4;
     background-image: url("images/white_arrow.png") !important;
-    background-position: 255px center !important;
+    background-position: 270px center !important;
     background-repeat: no-repeat;
     border: 1px solid #00aad4;
     text-shadow:none;

BIN
main/css/lp_section.png


+ 2 - 1
main/img/archive.png


+ 15 - 17
main/inc/lib/extra_field.lib.php

@@ -9042,29 +9042,27 @@ class learnpath
 
         if (is_array($links_to_create)) {
             foreach ($links_to_create as $file => $link) {
-               $file_content = '<!DOCTYPE html>
-    <head>
-                   <meta charset="'.api_get_language_isocode().'" />
-        <title>'.$link['title'].'</title>
-    </head>
-    <body dir="'.api_get_text_direction().'">
-                        <div style="text-align:center">
-                        <a href="'.$link['url'].'">'.$link['title'].'</a></div>
-    </body>
-</html>';
+               $file_content = '<!DOCTYPE html><head>
+                                <meta charset="'.api_get_language_isocode().'" />
+                                <title>'.$link['title'].'</title>
+                                </head>
+                                <body dir="'.api_get_text_direction().'">
+                                <div style="text-align:center">
+                                <a href="'.$link['url'].'">'.$link['title'].'</a></div>
+                                </body>
+                                </html>';
                 file_put_contents($archive_path.$temp_dir_short.'/'.$file, $file_content);
             }
         }
 
         // Add non exportable message explanation.
         $lang_not_exportable = get_lang('ThisItemIsNotExportable');
-        $file_content = '<!DOCTYPE html>
-    <head>
-            <meta charset="'.api_get_language_isocode().'" />
-        <title>'.$lang_not_exportable.'</title>
-        <meta http-equiv="Content-Type" content="text/html; charset='.api_get_system_encoding().'" />
-    </head>
-        <body dir="'.api_get_text_direction().'">';
+        $file_content = '<!DOCTYPE html><head>
+                        <meta charset="'.api_get_language_isocode().'" />
+                        <title>'.$lang_not_exportable.'</title>
+                        <meta http-equiv="Content-Type" content="text/html; charset='.api_get_system_encoding().'" />
+                        </head>
+                        <body dir="'.api_get_text_direction().'">';
         $file_content .=
 <<<EOD
         <style>

+ 4 - 4
main/template/default/auth/set_temp_password.tpl

@@ -1,10 +1,10 @@
 {% for hot_course in hot_courses %}               
     {% if hot_course.extra_info.title %}        
-        <div class="span9 hot-course-box">
-            <div class="well_border">
+        <div class="span3 hot-course-box">
+            <div class="course-top">
                 <div class="row">
-                    <div class="span2">
-                        <div class="thumbnail">
+                    <div class="span3">
+                        <div class="thumbnail-course">
                             <img src="{{ hot_course.extra_info.course_image }}" alt="" />
                         </div>
                     </div>

+ 6 - 5
main/template/default/layout/main_header.tpl

@@ -28,9 +28,7 @@
         {# topbar #}
         {% include "default/layout/topbar.tpl" %}
 
-        <div id="main" class="container">
-
-            <header>
+        <header>
                 <div class="row">
                     <div id="header_left" class="span4">
                         {# logo #}
@@ -76,14 +74,17 @@
                         </div>
                     </div>
                 {% endif %}
-
+                <div class="container">
                 {# menu #}
                 {% include "default/layout/menu.tpl" %}                
-
+                </div>
                 {# breadcrumb #}
                 {{ breadcrumb }}
             </header>
 
+
+        <div id="main" class="container">
+
             <div id="top_main_content" class="row">
            
             {# course navigation links/shortcuts need to be activated by the admin #}

+ 0 - 0
main/user/add_users_to_session.php