diff --git a/main/template/default/layout/hot_course_item.tpl b/main/template/default/layout/hot_course_item.tpl index 806e18d44f..2e3955f422 100755 --- a/main/template/default/layout/hot_course_item.tpl +++ b/main/template/default/layout/hot_course_item.tpl @@ -33,26 +33,52 @@ {{ item.rating_html }}
- {% for teacher in item.teachers %} - - {% if item.teachers | length > 2 %} - - {{ 'TeacherPicture' | get_lang }} - - {% else %} - - {{ 'TeacherPicture' | get_lang }} - -
-
- - {{ teacher.firstname }} {{ teacher.lastname }} + {% if item.teachers | length > 6 %} + + + +
+ {% for teacher in item.teachers %} +
+ + -
-

{{ 'Teacher' | get_lang }}

-
- {% endif %} - {% endfor %} +
+
+ + {{ teacher.firstname }} {{ teacher.lastname }} + +
+
+
+ {% endfor %} + + {% else %} + {% for teacher in item.teachers %} + {% if item.teachers | length <= 2 %} + + + +
+
+ + {{ teacher.firstname }} {{ teacher.lastname }} + +
+

{{ 'Teacher' | get_lang }}

+
+ {% elseif item.teachers | length <= 6 %} + + + + {% endif %} + {% endfor %} + {% endif %}