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