hot_course_item.tpl 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {% for item in hot_courses %}
  2. {% if item.title %}
  3. <div class="col-xs-12 col-sm-6 col-md-4">
  4. <div class="items items-hotcourse">
  5. <div class="image">
  6. <a title="{{ item.title}}" href="{{ _p.web }}course/{{ item.real_id }}/about">
  7. <img src="{{ item.course_image_large }}" class="img-responsive" alt="{{ item.title }}">
  8. </a>
  9. {% if item.categoryName != '' %}
  10. <span class="category">{{ item.categoryName }}</span>
  11. <div class="cribbon"></div>
  12. {% endif %}
  13. <div class="user-actions">{{ item.description_button }}</div>
  14. </div>
  15. <div class="description">
  16. <div class="block-title">
  17. <h5 class="title">
  18. {% if item.is_course_student or item.is_course_teacher %}
  19. <a alt="{{ item.title }}" title="{{ item.title }}" href="{{ _p.web }}courses/{{ item.code }}/">
  20. {{ item.title_cut}}
  21. </a>
  22. {% else %}
  23. <a alt="{{ item.title }}" title="{{ item.title }}" href="{{ _p.web }}course/{{ item.real_id }}/about">
  24. {{ item.title_cut}}
  25. </a>
  26. {% endif %}
  27. </h5>
  28. </div>
  29. <div class="ranking">
  30. {{ item.rating_html }}
  31. </div>
  32. <div class="toolbar row">
  33. <div class="col-sm-4">
  34. {% if item.price %}
  35. {{ item.price }}
  36. {% endif %}
  37. </div>
  38. <div class="col-sm-8">
  39. <div class="btn-group" role="group">
  40. {{ item.register_button }}
  41. {{ item.unsubscribe_button }}
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. {% endif %}
  49. {% endfor %}