hot_course_item.tpl 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. {% if item.is_registerd %}
  7. <a title="{{ item.title}}" href="{{ item.course_public_url }}">
  8. <img src="{{ item.course_image_large }}" class="img-responsive" alt="{{ item.title }}">
  9. </a>
  10. {% else %}
  11. <img src="{{ item.course_image_large }}" class="img-responsive" alt="{{ item.title }}">
  12. {% endif %}
  13. {% if item.categoryName != '' %}
  14. <span class="category">{{ item.categoryName }}</span>
  15. <div class="cribbon"></div>
  16. {% endif %}
  17. <div class="user-actions">{{ item.description_button }}</div>
  18. </div>
  19. <div class="description">
  20. <div class="block-title">
  21. {% if item.is_registerd %}
  22. <h4 class="title">
  23. <a alt="{{ item.title }}" title="{{ item.title }}" href="{{ item.course_public_url }}">{{ item.title_cut}}</a>
  24. </h4>
  25. {% else %}
  26. <h4 class="title" title="{{ item.title }}">
  27. {{ item.title_cut}}
  28. </h4>
  29. {% endif %}
  30. </div>
  31. <div class="ranking">
  32. {{ item.rating_html }}
  33. </div>
  34. <div class="block-author">
  35. {% for teacher in item.teachers %}
  36. {% if item.teachers | length > 2 %}
  37. <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
  38. <img src="{{ teacher.avatar }}" alt="{{ 'TeacherPicture' | get_lang }}" />
  39. </a>
  40. {% else %}
  41. <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
  42. <img src="{{ teacher.avatar }}" alt="{{ 'TeacherPicture' | get_lang }}" />
  43. </a>
  44. <div class="teachers-details">
  45. <h5>
  46. <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
  47. {{ teacher.firstname }} {{ teacher.lastname }}
  48. </a>
  49. </h5>
  50. <p>{{ 'Teacher' | get_lang }}</p>
  51. </div>
  52. {% endif %}
  53. {% endfor %}
  54. </div>
  55. <div class="toolbar">
  56. <div class="left">
  57. {% if item.price %}
  58. {{ item.price }}
  59. {% endif %}
  60. </div>
  61. <div class="right">
  62. <div class="btn-group" role="group">
  63. {{ item.register_button }}
  64. {{ item.unsubscribe_button }}
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. {% endif %}
  72. {% endfor %}