From 7956de981bcb72858754160c944e90b5e0822b9b Mon Sep 17 00:00:00 2001 From: Alex Aragon Date: Tue, 10 Oct 2017 11:18:23 -0500 Subject: [PATCH] fix hot course --- .../default/layout/hot_course_item.tpl | 64 +++++++++++++------ 1 file changed, 45 insertions(+), 19 deletions(-) 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 %} + +
+ {% 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 %}