about.tpl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <div id="about-session">
  2. <div class="row">
  3. <div class="col-xs-12">
  4. <p>
  5. <em class="fa fa-clock-o" aria-hidden="true"></em>
  6. {% if session.duration %}
  7. <em>{{ 'SessionDurationXDaysLeft'|get_lang|format(session.duration) }}</em>
  8. {% else %}
  9. <em>{{ session_date.display }}</em>
  10. {% endif %}
  11. </p>
  12. {% if show_tutor %}
  13. <p>
  14. <em class="fa fa-user"></em> {{ 'SessionGeneralCoach'|get_lang }}: <em>{{ session.generalCoach.getCompleteName() }}</em>
  15. </p>
  16. {% endif %}
  17. {% if session.getShowDescription() %}
  18. <div class="lead">
  19. {{ session.getDescription() }}
  20. </div>
  21. {% endif %}
  22. </div>
  23. </div>
  24. {% if has_requirements %}
  25. <div class="row">
  26. <div class="col-xs-12">
  27. <div class="panel panel-default">
  28. <div class="panel-heading">{{ 'RequiredSessions'|get_lang }}</div>
  29. <div class="panel-body">
  30. <div class="row">
  31. {% for sequence in sequences %}
  32. <div class="col-md-4">
  33. <dl class="dl-horizontal">
  34. {% if sequence.requirements %}
  35. <dt>{{ sequence.name }}</dt>
  36. {% for requirement in sequence.requirements %}
  37. <dd>
  38. <a href="{{ _p.web ~ 'session/' ~ requirement.getId ~ '/about/' }}">
  39. {{ requirement.getName }}
  40. </a>
  41. </dd>
  42. {% endfor %}
  43. {% endif %}
  44. </dl>
  45. </div>
  46. {% endfor %}
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. {% endif %}
  53. {% if is_subscribed and user_session_time != -0 and user_session_time >= 1 %}
  54. <div class="alert alert-info">
  55. {{ 'AlreadyRegisteredToSession'|get_lang }}
  56. </div>
  57. {% elseif is_subscribed and user_session_time < 1 %}
  58. <div class="alert alert-warning">
  59. {{ 'YourSessionTimeIsExpired'|get_lang }}
  60. </div>
  61. {% endif %}
  62. {% for course_data in courses %}
  63. {% set course_video = '' %}
  64. {% for extra_field in course_data.extra_fields %}
  65. {% if extra_field.value.getField().getVariable() == 'video_url' %}
  66. {% set course_video = extra_field.value.getValue() %}
  67. {% endif %}
  68. {% endfor %}
  69. <div class="row">
  70. {% if courses|length > 1 %}
  71. <div class="col-xs-12">
  72. <h3 class="text-uppercase">{{ course_data.course.getTitle }}</h3>
  73. </div>
  74. {% endif %}
  75. {% if course_video %}
  76. <div class="col-sm-6 col-md-7">
  77. <div class="embed-responsive embed-responsive-16by9">
  78. {{ essence.replace(course_video) }}
  79. </div>
  80. </div>
  81. {% endif %}
  82. <div class="{{ course_video ? 'col-sm-6 col-md-5' : 'col-sm-12' }}">
  83. <div class="description-course">
  84. {{ course_data.description.getContent }}
  85. </div>
  86. </div>
  87. </div>
  88. <div class="row info-course">
  89. <div class="col-xs-12 col-md-7">
  90. <div class="panel panel-default">
  91. <div class="panel-heading">
  92. <h4>{{ "CourseInformation"|get_lang }}</h4>
  93. </div>
  94. <div class="panel-body">
  95. {% if course_data.objectives %}
  96. <div class="objective-course">
  97. <h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.objectives.getTitle }}</h4>
  98. <div class="content-info">
  99. {{ course_data.objectives.getContent }}
  100. </div>
  101. </div>
  102. {% endif %}
  103. {% if course_data.topics %}
  104. <div class="topics">
  105. <h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.topics.getTitle }}</h4>
  106. <div class="content-info">
  107. {{ course_data.topics.getContent }}
  108. </div>
  109. </div>
  110. {% endif %}
  111. {% if course_data.methodology %}
  112. <div class="topics">
  113. <h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.methodology.getTitle }}</h4>
  114. <div class="content-info">
  115. {{ course_data.methodology.getContent }}
  116. </div>
  117. </div>
  118. {% endif %}
  119. {% if course_data.material %}
  120. <div class="topics">
  121. <h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.material.getTitle }}</h4>
  122. <div class="content-info">
  123. {{ course_data.material.getContent }}
  124. </div>
  125. </div>
  126. {% endif %}
  127. {% if course_data.resources %}
  128. <div class="topics">
  129. <h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.resources.getTitle }}</h4>
  130. <div class="content-info">
  131. {{ course_data.resources.getContent }}
  132. </div>
  133. </div>
  134. {% endif %}
  135. {% if course_data.assessment %}
  136. <div class="topics">
  137. <h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.assessment.getTitle }}</h4>
  138. <div class="content-info">
  139. {{ course_data.assessment.getContent }}
  140. </div>
  141. </div>
  142. {% endif %}
  143. {% if course_data.custom %}
  144. {% for custom in course_data.custom %}
  145. <div class="topics">
  146. <h4 class="title-info"><em class="fa fa-book"></em> {{ custom.getTitle }}</h4>
  147. <div class="content-info">
  148. {{ custom.getContent }}
  149. </div>
  150. </div>
  151. {% endfor %}
  152. {% endif %}
  153. </div>
  154. </div>
  155. </div>
  156. <div class="col-xs-12 col-md-5">
  157. {% if course_data.coaches %}
  158. <div class="panel panel-default teachers">
  159. <div class="panel-heading">
  160. <h4>{{ "Coaches"|get_lang }}</h4>
  161. </div>
  162. <div class="panel-body">
  163. {% for coach in course_data.coaches %}
  164. <div class="row">
  165. <div class="col-xs-7 col-md-7">
  166. <h4>{{ coach.complete_name }}</h4>
  167. {% for extra_field in coach.extra_fields %}
  168. <dl>
  169. <dt>{{ extra_field.value.getField().getDisplayText() }}</dt>
  170. <dd>{{ extra_field.value.getValue() }}</dd>
  171. </dl>
  172. {% endfor %}
  173. </div>
  174. <div class="col-xs-5 col-md-5">
  175. <div class="text-center">
  176. <img class="img-circle" src="{{ coach.image }}" alt="{{ coach.complete_name }}">
  177. </div>
  178. </div>
  179. </div>
  180. {% endfor %}
  181. </div>
  182. </div>
  183. {% endif %}
  184. {% if course_data.tags %}
  185. <div class="panel panel-default">
  186. <div class="panel-heading">{{ 'Tags'|get_lang }}</div>
  187. <div class="panel-body">
  188. <ul class="list-inline">
  189. {% for tag in course_data.tags %}
  190. <li>
  191. <span class="label label-info">{{ tag.getTag }}</span>
  192. </li>
  193. {% endfor %}
  194. </ul>
  195. </div>
  196. </div>
  197. {% endif %}
  198. <div class="panel panel-default social-share">
  199. <div class="panel-heading">{{ "ShareWithYourFriends"|get_lang }}</div>
  200. <div class="panel-body">
  201. <div class="icons-social text-center">
  202. <a href="https://www.facebook.com/sharer/sharer.php?{{ {'u': page_url }|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
  203. <em class="fa fa-facebook fa-2x"></em>
  204. </a>
  205. <a href="https://twitter.com/home?{{ {'status': session.getName() ~ ' ' ~ page_url }|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
  206. <em class="fa fa-twitter fa-2x"></em>
  207. </a>
  208. <a href="https://www.linkedin.com/shareArticle?{{ {'mini': 'true', 'url': page_url , 'title': session.getName() }|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
  209. <em class="fa fa-linkedin fa-2x"></em>
  210. </a>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. {% endfor %}
  217. <div class="row">
  218. <div class="col-md-12">
  219. <div class="text-center">
  220. {% if _u.logged and not is_subscribed %}
  221. {{ subscribe_button }}
  222. {% elseif not _u.logged %}
  223. {% if 'allow_registration'|api_get_setting == 'true' %}
  224. <a href="{{ _p.web_main ~ 'auth/inscription.php' ~ redirect_to_session }}" class="btn btn-info btn-lg">
  225. <i class="fa fa-pencil" aria-hidden="true"></i> {{ 'SignUp'|get_lang }}
  226. </a>
  227. {% endif %}
  228. {% endif %}
  229. </div>
  230. </div>
  231. </div>
  232. </div>