about.tpl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <section id="about-course">
  2. {% if is_subscribed and user_session_time != -0 and user_session_time >= 1 %}
  3. <div class="alert alert-info">
  4. {{ 'AlreadyRegisteredToSession'|get_lang }}
  5. </div>
  6. {% elseif is_subscribed and user_session_time < 1 %}
  7. <div class="alert alert-warning">
  8. {{ 'YourSessionTimeIsExpired'|get_lang }}
  9. </div>
  10. {% endif %}
  11. <section class="session">
  12. <div class="panel panel-default">
  13. <div class="panel-body">
  14. <div class="row">
  15. <div class="col-md-8">
  16. <h2 class="session-title">{{ session.name }}</h2>
  17. {% if show_tutor and session.generalCoach %}
  18. <div class="session-tutor">
  19. <em class="fa fa-user"></em> {{ 'SessionGeneralCoach'|get_lang }}:
  20. <em>{{ session.generalCoach.getCompleteName() }}</em>
  21. </div>
  22. {% endif %}
  23. {% if session.getShowDescription() %}
  24. <div class="session-description">
  25. {{ session.getDescription() }}
  26. </div>
  27. {% endif %}
  28. {% if not 'hide_social_media_links'|api_get_configuration_value %}
  29. <div class="share-social-media">
  30. <ul class="sharing-buttons">
  31. <li>
  32. {{ "ShareWithYourFriends"|get_lang }}
  33. </li>
  34. <li>
  35. <a href="https://www.facebook.com/sharer/sharer.php?{{ {'u': page_url }|url_encode }}"
  36. target="_blank" class="btn btn-facebook btn-inverse btn-xs">
  37. <em class="fa fa-facebook"></em> Facebook
  38. </a>
  39. </li>
  40. <li>
  41. <a href="https://twitter.com/home?{{ {'status': session.getName() ~ ' ' ~ page_url }|url_encode }}"
  42. target="_blank" class="btn btn-twitter btn-inverse btn-xs">
  43. <em class="fa fa-twitter"></em> Twitter
  44. </a>
  45. </li>
  46. <li>
  47. <a href="https://www.linkedin.com/shareArticle?{{ {'mini': 'true', 'url': page_url , 'title': session.getName() }|url_encode }}"
  48. target="_blank" class="btn btn-linkedin btn-inverse btn-xs">
  49. <em class="fa fa-linkedin"></em> Linkedin
  50. </a>
  51. </li>
  52. </ul>
  53. </div>
  54. {% endif %}
  55. </div>
  56. <div class="col-md-4">
  57. <div class="session-info">
  58. <div class="date">
  59. <p>
  60. {% if session.duration %}
  61. {{ 'SessionDurationXDaysTotal'|get_lang|format(session.duration) }}
  62. {% else %}
  63. {{ session_date.display }}
  64. {% endif %}
  65. </p>
  66. </div>
  67. {% if is_premium == false %}
  68. <h5>{{ 'CourseSubscription'|get_lang }}</h5>
  69. <div class="session-subscribe">
  70. {% if _u.logged and not is_subscribed %}
  71. {{ subscribe_button }}
  72. {% elseif not _u.logged %}
  73. {% if 'allow_registration'|api_get_setting != 'false' %}
  74. <a href="{{ _p.web_main ~ 'auth/inscription.php' ~ redirect_to_session }}"
  75. class="btn btn-success btn-block btn-lg">
  76. <i class="fa fa-pencil" aria-hidden="true"></i> {{ 'SignUp'|get_lang }}
  77. </a>
  78. {% endif %}
  79. {% endif %}
  80. </div>
  81. {% else %}
  82. <div class="session-price">
  83. <div class="sale-price">
  84. {{ 'SalePrice'|get_lang }}
  85. </div>
  86. <div class="price-text">
  87. {{ is_premium.iso_code }} {{ is_premium.price }}
  88. </div>
  89. <div class="buy-box">
  90. <a href="{{ _p.web }}plugin/buycourses/src/process.php?i={{ is_premium.product_id }}&t={{ is_premium.product_type }}"
  91. class="btn btn-lg btn-primary btn-block">{{ 'BuyNow'|get_lang }}</a>
  92. </div>
  93. </div>
  94. {% endif %}
  95. {% if has_requirements %}
  96. <div class="session-requirements">
  97. <h5>{{ 'RequiredSessions'|get_lang }}</h5>
  98. {% for sequence in sequences %}
  99. {% if sequence.requirements %}
  100. <p>
  101. {{ sequence.name }} :
  102. {% for requirement in sequence.requirements %}
  103. <a href="{{ _p.web ~ 'session/' ~ requirement.getId ~ '/about/' }}">
  104. {{ requirement.getName }}
  105. </a>
  106. {% endfor %}
  107. </p>
  108. {% endif %}
  109. {% endfor %}
  110. </div>
  111. {% endif %}
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </section>
  118. {% for course_data in courses %}
  119. {% set course_video = '' %}
  120. {% for extra_field in course_data.extra_fields %}
  121. {% if extra_field.value.getField().getVariable() == 'video_url' %}
  122. {% set course_video = extra_field.value.getValue() %}
  123. {% endif %}
  124. {% endfor %}
  125. <div class="panel panel-default panel-course">
  126. <div class="panel-body">
  127. <div class="row">
  128. <div class="col-sm-5">
  129. {% if course_video %}
  130. <div class="embed-responsive embed-responsive-16by9">
  131. {{ essence.replace(course_video) }}
  132. </div>
  133. {% else %}
  134. <div class="course-image">
  135. <img src="{{ course_data.image }}" class="img-rounded img-responsive" width="100%">
  136. </div>
  137. {% endif %}
  138. </div>
  139. <div class="col-sm-7">
  140. {% if courses|length > 1 %}
  141. <div class="course-title">
  142. <h3>{{ course_data.course.getTitle }}</h3>
  143. </div>
  144. {% endif %}
  145. <div class="course-description">
  146. {% for description in course_data.description %}
  147. {{ description.content }}
  148. {% endfor %}
  149. </div>
  150. </div>
  151. </div>
  152. {% if course_data.tags %}
  153. <div class="panel-tags">
  154. <ul class="list-inline course-tags">
  155. <li>{{ 'Tags'|get_lang }} :</li>
  156. {% for tag in course_data.tags %}
  157. <li class="tag-value">
  158. <span>{{ tag.getTag }}</span>
  159. </li>
  160. {% endfor %}
  161. </ul>
  162. </div>
  163. {% endif %}
  164. </div>
  165. </div>
  166. <section class="course">
  167. <div class="row">
  168. <div class="col-md-8">
  169. <div class="panel panel-default">
  170. <div class="panel-body">
  171. <h3 class="sub-title">{{ "CourseInformation"|get_lang }}</h3>
  172. <div class="course-information read-more-area">
  173. {% if course_data.objectives %}
  174. {% for objectives in course_data.objectives %}
  175. <div class="topics">
  176. <h4 class="title-info"><em
  177. class="fa fa-book"></em> {{ objectives.title }}</h4>
  178. <div class="content-info">
  179. {{ objectives.content }}
  180. </div>
  181. </div>
  182. {% endfor %}
  183. {% endif %}
  184. {% if course_data.topics %}
  185. {% for topics in course_data.topics %}
  186. <div class="topics">
  187. <h4 class="title-info"><em
  188. class="fa fa-book"></em> {{ topics.title }}</h4>
  189. <div class="content-info">
  190. {{ topics.content }}
  191. </div>
  192. </div>
  193. {% endfor %}
  194. {% endif %}
  195. {% if course_data.methodology %}
  196. {% for methodology in course_data.methodology %}
  197. <div class="topics">
  198. <h4 class="title-info"><em
  199. class="fa fa-book"></em> {{ methodology.title }}</h4>
  200. <div class="content-info">
  201. {{ methodology.content }}
  202. </div>
  203. </div>
  204. {% endfor %}
  205. {% endif %}
  206. {% if course_data.material %}
  207. {% for material in course_data.material %}
  208. <div class="topics">
  209. <h4 class="title-info"><em
  210. class="fa fa-book"></em> {{ material.title }}</h4>
  211. <div class="content-info">
  212. {{ material.content }}
  213. </div>
  214. </div>
  215. {% endfor %}
  216. {% endif %}
  217. {% if course_data.resources %}
  218. {% for resources in course_data.resources %}
  219. <div class="topics">
  220. <h4 class="title-info"><em
  221. class="fa fa-book"></em> {{ resources.title }}</h4>
  222. <div class="content-info">
  223. {{ resources.content }}
  224. </div>
  225. </div>
  226. {% endfor %}
  227. {% endif %}
  228. {% if course_data.assessment %}
  229. {% for assessment in course_data.assessment %}
  230. <div class="topics">
  231. <h4 class="title-info"><em
  232. class="fa fa-book"></em> {{ assessment.title }}</h4>
  233. <div class="content-info">
  234. {{ assessment.content }}
  235. </div>
  236. </div>
  237. {% endfor %}
  238. {% endif %}
  239. {% if course_data.custom %}
  240. {% for custom in course_data.custom %}
  241. <div class="topics">
  242. <h4 class="title-info"><em class="fa fa-book"></em> {{ custom.title }}
  243. </h4>
  244. <div class="content-info">
  245. {{ custom.content }}
  246. </div>
  247. </div>
  248. {% endfor %}
  249. {% endif %}
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="col-md-4">
  255. <div class="panel panel-default">
  256. <div class="panel-body">
  257. {% if course_data.coaches %}
  258. <div class="panel-teachers">
  259. <h3 class="sub-title">{{ "Coaches"|get_lang }}</h3>
  260. {% for coach in course_data.coaches %}
  261. <div class="coach-information">
  262. <div class="coach-header">
  263. <div class="coach-avatar">
  264. <img class="img-circle img-responsive" src="{{ coach.image }}"
  265. alt="{{ coach.complete_name }}">
  266. </div>
  267. <div class="coach-title">
  268. <h4>{{ coach.complete_name }}</h4>
  269. {% if coach.diploma %}
  270. <p>{{ coach.diploma }}</p>
  271. {% endif %}
  272. </div>
  273. </div>
  274. {% if coach.openarea %}
  275. <div class="open-area {{ course_data.coaches | length >= 2 ? 'open-more' : ' ' }}">
  276. <p>{{ coach.openarea }}</p>
  277. </div>
  278. {% endif %}
  279. {% for coach_extra_field in coach.extra_fields %}
  280. {% set coach_field = coach_extra_field.value.field %}
  281. {% set coach_field_value = coach_extra_field.value.value %}
  282. {% if not coach_field_value is empty %}
  283. <dl class="coach-extrafield">
  284. <dt class="extrafield_dt dt_{{ coach_field.variable }}">{{ coach_field.displayText }}</dt>
  285. <dd class="extrafield_dd dd_{{ coach_field.variable }}">{{ coach_extra_field.value.value }}</dd>
  286. </dl>
  287. {% endif %}
  288. {% endfor %}
  289. </div>
  290. {% endfor %}
  291. </div>
  292. {% endif %}
  293. </div>
  294. </div>
  295. </div>
  296. </div>
  297. </section>
  298. {% endfor %}
  299. </div>
  300. </section>
  301. <script type="text/javascript">
  302. $(document).ready(function () {
  303. $('.course-information').readmore({
  304. speed: 100,
  305. lessLink: '<a class="hide-content" href="#">{{ 'SetInvisible' | get_lang }}</a>',
  306. moreLink: '<a class="read-more" href="#">{{ 'ReadMore' | get_lang }}</a>',
  307. collapsedHeight: 500,
  308. heightMargin: 100
  309. });
  310. $('.open-more').readmore({
  311. speed: 100,
  312. lessLink: '<a class="hide-content" href="#">{{ 'SetInvisible' | get_lang }}</a>',
  313. moreLink: '<a class="read-more" href="#">{{ 'ReadMore' | get_lang }}</a>',
  314. collapsedHeight: 90,
  315. heightMargin: 20
  316. });
  317. });
  318. </script>