sessions_current.tpl 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {% if hot_sessions %}
  2. <section id="sessions-current" class="grid-courses">
  3. <div class="page-header">
  4. <h4>
  5. {{ "HottestSessions"|get_lang}}
  6. </h4>
  7. </div>
  8. <div class="row">
  9. {% for session in hot_sessions %}
  10. <div class="col-xs-12 col-sm-6 col-md-4">
  11. <div class="items items-hotcourse">
  12. <div class="image">
  13. <a href="{{ _p.web }}session/{{ session.id }}/about/" title="title-session">
  14. <img class="img-responsive" src="{{ session.image ? _p.web_upload ~ session.image : 'session_default.png'|icon() }}">
  15. </a>
  16. {% if session.category_name %}
  17. <span class="category">{{ session.category_name }}</span>
  18. <div class="cribbon"></div>
  19. {% endif %}
  20. </div>
  21. <div class="description">
  22. <div class="block-title">
  23. <h5 class="title">
  24. <a href="{{ _p.web }}session/{{ session.id }}/about/"
  25. title="title-session">{{ session.name }}</a>
  26. </h5>
  27. </div>
  28. <div class="block-info">
  29. <i class="fa fa-user"></i> {{ session.users }} {{ "Users"|get_lang }}
  30. <i class="fa fa-book"></i> {{ session.lessons }} {{ "Learnpaths"|get_lang }}
  31. </div>
  32. {% if session.on_sale is defined %}
  33. {% if session.on_sale != false %}
  34. <div class="toolbar">
  35. <div class="buycourses-price">
  36. <span class="label label-primary label-price">
  37. <strong>{{ session.on_sale.iso_code }} {{ session.on_sale.price }}</strong>
  38. </span>
  39. </div>
  40. </div>
  41. {% else %}
  42. <div class="toolbar">
  43. <div class="buycourses-price">
  44. <span class="label label-primary label-free">
  45. <strong>{{ 'Free'|get_plugin_lang('BuyCoursesPlugin') }}</strong>
  46. </span>
  47. </div>
  48. </div>
  49. {% endif %}
  50. {% endif %}
  51. </div>
  52. </div>
  53. </div>
  54. {% endfor %}
  55. </div>
  56. </section>
  57. {% endif %}