about.tpl 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <div id="about-course">
  2. <div id="course-info-top">
  3. <h2 class="session-title">{{ course.title }}</h2>
  4. <div class="course-short">
  5. <ul>
  6. <li class="author">{{ "Professors"|get_lang }}</li>
  7. {% for teacher in course.teachers %}
  8. <li>{{ teacher.complete_name }} | </li>
  9. {% endfor %}
  10. </ul>
  11. </div>
  12. </div>
  13. {% set course_video = '' %}
  14. {% for extra_field in course.extra_fields %}
  15. {% if extra_field.value.getField().getVariable() == 'video_url' %}
  16. {% set course_video = extra_field.value.getValue() %}
  17. {% endif %}
  18. {% endfor %}
  19. <div class="panel panel-default">
  20. <div class="panel-body">
  21. <div class="row">
  22. <div class="col-sm-5">
  23. {% if course_video %}
  24. <div class="course-video">
  25. <div class="embed-responsive embed-responsive-16by9">
  26. {{ essence.replace(course_video) }}
  27. </div>
  28. </div>
  29. {% else %}
  30. <div class="course-image">
  31. <img src="{{ course.image }}" class="img-responsive" />
  32. </div>
  33. {% endif %}
  34. {% if not 'hide_social_media_links'|api_get_configuration_value %}
  35. <div class="share-social-media">
  36. <ul class="sharing-buttons">
  37. <li>
  38. {{ "ShareWithYourFriends"|get_lang }}
  39. </li>
  40. <li>
  41. <a href="https://www.facebook.com/sharer/sharer.php?u={{ url }}"
  42. target="_blank" class="btn btn-facebook btn-inverse btn-xs">
  43. <em class="fa fa-facebook"></em> Facebook
  44. </a>
  45. </li>
  46. <li>
  47. <a href="https://twitter.com/home?{{ {'status': course.title ~ ' ' ~ url }|url_encode }}"
  48. target="_blank" class="btn btn-twitter btn-inverse btn-xs">
  49. <em class="fa fa-twitter"></em> Twitter
  50. </a>
  51. </li>
  52. <li>
  53. <a href="https://www.linkedin.com/shareArticle?{{ {'mini': 'true', 'url': url , 'title': course.title }|url_encode }}"
  54. target="_blank" class="btn btn-linkedin btn-inverse btn-xs">
  55. <em class="fa fa-linkedin"></em> Linkedin
  56. </a>
  57. </li>
  58. </ul>
  59. </div>
  60. {% endif %}
  61. </div>
  62. <div class="col-sm-7">
  63. <div class="course-description">
  64. {{ course.description }}
  65. </div>
  66. </div>
  67. </div>
  68. {% if course.tags %}
  69. <div class="panel-tags">
  70. <ul class="list-inline course-tags">
  71. <li>{{ 'Tags'|get_lang }} :</li>
  72. {% for tag in course.tags %}
  73. <li class="tag-value">
  74. <span>{{ tag.getTag }}</span>
  75. </li>
  76. {% endfor %}
  77. </ul>
  78. </div>
  79. {% endif %}
  80. </div>
  81. </div>
  82. <section id="course-info-bottom" class="course">
  83. <div class="row">
  84. <div class="col-sm-8">
  85. <div class="panel panel-default">
  86. <div class="panel-body">
  87. <h3 class="sub-title">{{ "CourseInformation"|get_lang }}</h3>
  88. <div class="course-information">
  89. {% for topic in course.syllabus %}
  90. {% if topic.content != '' %}
  91. <div class="topics">
  92. <h4 class="title-info">
  93. <em class="fa fa-book"></em> {{ topic.title }}
  94. </h4>
  95. <div class="content-info">
  96. {{ topic.content }}
  97. </div>
  98. </div>
  99. {% endif %}
  100. {% endfor %}
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="col-sm-4">
  106. {% if allow_subscribe == true %}
  107. <div class="panel panel-default">
  108. <div class="panel-body">
  109. {% if is_premium == false %}
  110. <div class="session-subscribe">
  111. {% if _u.logged == 0 %}
  112. {% if 'allow_registration'|api_get_setting != 'false' %}
  113. <a
  114. href="{{ _p.web_main ~ 'auth/inscription.php' ~ redirect_to_session }}"
  115. class="btn btn-success btn-block btn-lg">
  116. <i class="fa fa-pencil" aria-hidden="true"></i>
  117. {{ 'SignUp'|get_lang }}
  118. </a>
  119. {% endif %}
  120. {% elseif course.subscription %}
  121. <a href="{{ _p.web }}courses/{{ course.code }}/index.php?id_session=0"
  122. class="btn btn-lg btn-success btn-block">
  123. {{ 'CourseHomepage'|get_lang }}
  124. </a>
  125. {% else %}
  126. <a
  127. href="{{ _p.web }}courses/{{ course.code }}/index.php?action=subscribe&sec_token={{ token }}"
  128. class="btn btn-lg btn-success btn-block">
  129. {{ 'Subscribe'|get_lang }}
  130. </a>
  131. {% endif %}
  132. </div>
  133. {% else %}
  134. <div class="session-price">
  135. <div class="sale-price">
  136. {{ 'SalePrice'|get_lang }}
  137. </div>
  138. <div class="price-text">
  139. {{ is_premium.iso_code }} {{ is_premium.price }}
  140. </div>
  141. <div class="buy-box">
  142. <a
  143. href="{{ _p.web }}plugin/buycourses/src/process.php?i={{ is_premium.product_id }}&t={{ is_premium.product_type }}"
  144. class="btn btn-lg btn-primary btn-block">{{ 'BuyNow'|get_lang }}</a>
  145. </div>
  146. </div>
  147. {% endif %}
  148. </div>
  149. </div>
  150. {% endif %}
  151. {% if course.teachers %}
  152. <div class="panel panel-default">
  153. <div class="panel-body">
  154. <div class="panel-teachers">
  155. <h3 class="sub-title">{{ "Coaches"|get_lang }}</h3>
  156. </div>
  157. {% for teacher in course.teachers %}
  158. <div class="coach-information">
  159. <div class="coach-header">
  160. <div class="coach-avatar">
  161. <img class="img-circle img-responsive" src="{{ teacher.image }}" alt="{{ teacher.complete_name }}">
  162. </div>
  163. <div class="coach-title">
  164. <h4>{{ teacher.complete_name }}</h4>
  165. <p> {{ teacher.diploma }}</p>
  166. </div>
  167. </div>
  168. <div class="open-area {{ course.teachers | length >= 2 ? 'open-more' : ' ' }}">
  169. {{ teacher.openarea }}
  170. </div>
  171. </div>
  172. {% endfor %}
  173. </div>
  174. </div>
  175. {% endif %}
  176. </div>
  177. </div>
  178. </section>
  179. </div>
  180. <script>
  181. $(document).ready(function() {
  182. $('.course-information').readmore({
  183. speed: 100,
  184. lessLink: '<a class="hide-content" href="#">{{ 'SetInvisible' | get_lang }}</a>',
  185. moreLink: '<a class="read-more" href="#">{{ 'ReadMore' | get_lang }}</a>',
  186. collapsedHeight: 730,
  187. heightMargin: 100
  188. });
  189. $('.open-more').readmore({
  190. speed: 100,
  191. lessLink: '<a class="hide-content" href="#">{{ 'SetInvisible' | get_lang }}</a>',
  192. moreLink: '<a class="read-more" href="#">{{ 'ReadMore' | get_lang }}</a>',
  193. collapsedHeight: 90,
  194. heightMargin: 20
  195. });
  196. });
  197. </script>