about.tpl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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.total_price_formatted }}
  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">
  177. <em class="fa fa-book"></em> {{ objectives.title }}
  178. </h4>
  179. <div class="content-info">
  180. {{ objectives.content }}
  181. </div>
  182. </div>
  183. {% endfor %}
  184. {% endif %}
  185. {% if course_data.topics %}
  186. {% for topics in course_data.topics %}
  187. <div class="topics">
  188. <h4 class="title-info">
  189. <em class="fa fa-book"></em> {{ topics.title }}
  190. </h4>
  191. <div class="content-info">
  192. {{ topics.content }}
  193. </div>
  194. </div>
  195. {% endfor %}
  196. {% endif %}
  197. {% if course_data.methodology %}
  198. {% for methodology in course_data.methodology %}
  199. <div class="topics">
  200. <h4 class="title-info">
  201. <em class="fa fa-book"></em>
  202. {{ methodology.title }}
  203. </h4>
  204. <div class="content-info">
  205. {{ methodology.content }}
  206. </div>
  207. </div>
  208. {% endfor %}
  209. {% endif %}
  210. {% if course_data.material %}
  211. {% for material in course_data.material %}
  212. <div class="topics">
  213. <h4 class="title-info"><em
  214. class="fa fa-book"></em> {{ material.title }}</h4>
  215. <div class="content-info">
  216. {{ material.content }}
  217. </div>
  218. </div>
  219. {% endfor %}
  220. {% endif %}
  221. {% if course_data.resources %}
  222. {% for resources in course_data.resources %}
  223. <div class="topics">
  224. <h4 class="title-info">
  225. <em class="fa fa-book"></em>
  226. {{ resources.title }}
  227. </h4>
  228. <div class="content-info">
  229. {{ resources.content }}
  230. </div>
  231. </div>
  232. {% endfor %}
  233. {% endif %}
  234. {% if course_data.assessment %}
  235. {% for assessment in course_data.assessment %}
  236. <div class="topics">
  237. <h4 class="title-info">
  238. <em class="fa fa-book"></em> {{ assessment.title }}
  239. </h4>
  240. <div class="content-info">
  241. {{ assessment.content }}
  242. </div>
  243. </div>
  244. {% endfor %}
  245. {% endif %}
  246. {% if course_data.custom %}
  247. {% for custom in course_data.custom %}
  248. <div class="topics">
  249. <h4 class="title-info">
  250. <em class="fa fa-book"></em> {{ custom.title }}
  251. </h4>
  252. <div class="content-info">
  253. {{ custom.content }}
  254. </div>
  255. </div>
  256. {% endfor %}
  257. {% endif %}
  258. </div>
  259. </div>
  260. </div>
  261. </div>
  262. <div class="col-md-4">
  263. <div class="panel panel-default">
  264. <div class="panel-body">
  265. {% if course_data.coaches %}
  266. <div class="panel-teachers">
  267. <h3 class="sub-title">{{ "Coaches"|get_lang }}</h3>
  268. {% for coach in course_data.coaches %}
  269. <div class="coach-information">
  270. <div class="coach-header">
  271. <div class="coach-avatar">
  272. <img class="img-circle img-responsive" src="{{ coach.image }}"
  273. alt="{{ coach.complete_name }}">
  274. </div>
  275. <div class="coach-title">
  276. <h4>{{ coach.complete_name }}</h4>
  277. {% if coach.diploma %}
  278. <p>{{ coach.diploma }}</p>
  279. {% endif %}
  280. </div>
  281. </div>
  282. {% if coach.openarea %}
  283. <div class="open-area {{ course_data.coaches | length >= 2 ? 'open-more' : ' ' }}">
  284. <p>{{ coach.openarea }}</p>
  285. </div>
  286. {% endif %}
  287. {% for coach_extra_field in coach.extra_fields %}
  288. {% set coach_field = coach_extra_field.value.field %}
  289. {% set coach_field_value = coach_extra_field.value.value %}
  290. {% if not coach_field_value is empty %}
  291. <dl class="coach-extrafield">
  292. <dt class="extrafield_dt dt_{{ coach_field.variable }}">{{ coach_field.displayText }}</dt>
  293. <dd class="extrafield_dd dd_{{ coach_field.variable }}">{{ coach_extra_field.value.value }}</dd>
  294. </dl>
  295. {% endif %}
  296. {% endfor %}
  297. </div>
  298. {% endfor %}
  299. </div>
  300. {% endif %}
  301. </div>
  302. </div>
  303. </div>
  304. </div>
  305. </section>
  306. {% endfor %}
  307. </div>
  308. </section>
  309. <script>
  310. $(function () {
  311. $('.course-information').readmore({
  312. speed: 100,
  313. lessLink: '<a class="hide-content" href="#">{{ 'SetInvisible' | get_lang }}</a>',
  314. moreLink: '<a class="read-more" href="#">{{ 'ReadMore' | get_lang }}</a>',
  315. collapsedHeight: 500,
  316. heightMargin: 100
  317. });
  318. $('.open-more').readmore({
  319. speed: 100,
  320. lessLink: '<a class="hide-content" href="#">{{ 'SetInvisible' | get_lang }}</a>',
  321. moreLink: '<a class="read-more" href="#">{{ 'ReadMore' | get_lang }}</a>',
  322. collapsedHeight: 90,
  323. heightMargin: 20
  324. });
  325. });
  326. </script>