hot_course_item.tpl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {% for item in hot_courses %}
  2. {% if item.title %}
  3. <div class="col-xs-12 col-sm-4 col-md-3">
  4. <div class="items">
  5. <div class="image">
  6. <img src="{{ item.course_image_large }}" class="img-responsive">
  7. {% if item.categoryName != '' %}
  8. <span class="category">{{ item.categoryName }}</span>
  9. <div class="cribbon"></div>
  10. {% endif %}
  11. <div class="black-shadow">
  12. <div class="author-card">
  13. {% for teacher in item.teachers %}
  14. {% set counter = counter + 1 %}
  15. {% if counter <= 3 %}
  16. <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
  17. <img src="{{ teacher.avatar }}"/>
  18. </a>
  19. <div class="teachers-details">
  20. <h5>
  21. <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
  22. {{ teacher.firstname }} {{ teacher.lastname }}
  23. </a>
  24. </h5>
  25. </div>
  26. {% endif %}
  27. {% endfor %}
  28. </div>
  29. </div>
  30. <div class="user-actions">{{ item.description_button }}</div>
  31. </div>
  32. <div class="description">
  33. <h4 class="title">
  34. <a title="{{ item.title}}" href="{{ item.course_public_url }}">{{ item.title}}</a>
  35. </h4>
  36. <div class="ranking">
  37. {{ item.rating_html }}
  38. </div>
  39. <div class="toolbar">
  40. <div class="btn-group" role="group">
  41. {{ item.register_button }}
  42. {{ item.unsubscribe_button }}
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. {% endif %}
  49. {% endfor %}