Browse Source

Adding new teacher.png icons + adding icon in the course list see #4586

Julio Montoya 13 years ago
parent
commit
66db467df7

+ 4 - 0
main/css/base.css

@@ -3622,4 +3622,8 @@ a.forum_group_link {
     height: 600px !important;
     position: relative !important;
     z-index: 100;
+}
+
+#main_content .course_item {
+    padding: 5px 0px 5px 0px;
 }

BIN
main/img/icons/16/teacher.png


BIN
main/img/icons/22/teacher.png


+ 3 - 3
main/inc/lib/course.lib.php

@@ -2788,7 +2788,7 @@ class CourseManager {
         $html = '';
         $class = "well";
         if ($is_sub_content) {
-            $class = "";
+            $class = "course_item";
         }                     
         $html .= '<div class="'.$class.'">'; 
             $html .= '<div class="row">';    
@@ -2796,10 +2796,10 @@ class CourseManager {
             $html .= '<div class="span6">';
             $html .= '<h4>'.$params['title'].$params['notifications'].'</h4>';                    
             if (!empty($params['teachers'])) {                    
-                $html .= '<h5>'.$params['teachers'].'</h5>';
+                $html .= '<h5>'.Display::return_icon('teacher.png', get_lang('Teacher'), array(), ICON_SIZE_TINY).$params['teachers'].'</h5>';
             }                    
             if (!empty($params['coaches'])) {                    
-                $html .= '<h5>'.$params['coaches'].'</h5>';
+                $html .= '<h5>'.Display::return_icon('teacher.png', get_lang('Coach'), array(), ICON_SIZE_TINY).$params['coaches'].'</h5>';
             }    
             $html .= '</div>';                        
             $html .= '<div class="span1 pull-right">'.$params['right_actions'].'</div>';