sessions_current.tpl 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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>
  38. {{ session.on_sale.total_price_formatted }}
  39. </strong>
  40. </span>
  41. </div>
  42. </div>
  43. {% else %}
  44. <div class="toolbar">
  45. <div class="buycourses-price">
  46. <span class="label label-primary label-free">
  47. <strong>{{ 'Free'|get_plugin_lang('BuyCoursesPlugin') }}</strong>
  48. </span>
  49. </div>
  50. </div>
  51. {% endif %}
  52. {% endif %}
  53. </div>
  54. </div>
  55. </div>
  56. {% endfor %}
  57. </div>
  58. </section>
  59. {% endif %}