layout_2_col.tpl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. {% extends 'layout/page.tpl'|get_template %}
  2. {% import 'default/macro/macro.tpl' as display %}
  3. {% block body %}
  4. {% if plugin_main_top %}
  5. {{ display.pluginPanel('main-top', plugin_main_top) }}
  6. {% endif %}
  7. <div class="row">
  8. <div class="col-md-9 col-md-push-3">
  9. <div class="page-content">
  10. {% if plugin_content_top %}
  11. <div class="page-content-top">
  12. {{ plugin_content_top }}
  13. </div>
  14. {% endif %}
  15. {#{{ sniff_notification }}#}
  16. {% if home_welcome %}
  17. <article id="home-welcome">
  18. {{ home_welcome }}
  19. </article>
  20. {% endif %}
  21. {% if home_include %}
  22. <article id="home-include">
  23. {{ home_include }}
  24. </article>
  25. {% endif %}
  26. {% block page_body %}
  27. {% include 'layout/page_body.tpl'|get_template %}
  28. {% endblock %}
  29. {% if welcome_to_course_block %}
  30. <article id="homepage-course">
  31. {{ welcome_to_course_block }}
  32. </article>
  33. {% endif %}
  34. {% block content %}
  35. {% if content is not null %}
  36. <section id="page" class="{{ course_history_page }}">
  37. {{ content }}
  38. </section>
  39. {% endif %}
  40. {% endblock %}
  41. {% if course_category_block %}
  42. <article id="homepage-course-category">
  43. {{ course_category_block }}
  44. </article>
  45. {% endif %}
  46. {% if plugin_content_bottom %}
  47. <div id="plugin_content_bottom">
  48. {{ plugin_content_bottom }}
  49. </div>
  50. {% endif %}
  51. </div>
  52. </div>
  53. <div class="col-md-3 col-md-pull-9">
  54. <div class="sidebar">
  55. {% if plugin_menu_top %}
  56. {{ display.pluginSidebar('sidebar-top', plugin_menu_top) }}
  57. {% endif %}
  58. {% include 'layout/login_form.tpl'|get_template %}
  59. {% if _u.logged == 1 %}
  60. {{ user_image_block }}
  61. {% endif %}
  62. <!-- BLOCK PROFILE -->
  63. {% if profile_block %}
  64. {{ display.collapseMenu('profile', 'Profile'|get_lang, profile_block) }}
  65. {% endif %}
  66. {% if section_name != 'section-mycampus' %}
  67. {% if diagnosis_block %}
  68. {{ diagnosis_block }}
  69. {% endif %}
  70. <!-- BLOCK COURSE -->
  71. {% if course_block %}
  72. {{ display.collapseMenu('courses', 'Courses'|get_lang, course_block) }}
  73. {% endif %}
  74. <!-- BLOCK SKILLS -->
  75. {% if skills_block %}
  76. {{ display.collapseMenu('skills', 'Skills'|get_lang, skills_block) }}
  77. {% endif %}
  78. {% if grade_book_sidebar %}
  79. <div class="panel-group" id="skill" role="tablist" aria-multiselectable="true">
  80. <div class="panel panel-default" id="gradebook_block">
  81. <div class="panel-heading" role="tab">
  82. <h4 class="panel-title">
  83. <a role="button" data-toggle="collapse"
  84. data-parent="#skill"
  85. href="#skillCollapse"
  86. aria-expanded="true"
  87. aria-controls="skillCollapse">
  88. {{ 'Gradebook' | get_lang }}
  89. </a>
  90. </h4>
  91. </div>
  92. <div style="" aria-expanded="true" id="skillCollapse" class="panel-collapse collapse in" role="tabpanel">
  93. <div class="panel-body">
  94. <ul class="list-group">
  95. <li class="list-group-item {{ item.class }}">
  96. {{ 'Progress' | get_lang }} : {{ grade_book_progress }} %
  97. <br />
  98. {% for badge in grade_book_badge_list %}
  99. <div class="badge_sidebar">
  100. {% for skill in badge.skills %}
  101. {% if badge.finished %}
  102. <img class="badge_sidebar_image " src ="{{ skill.icon_big }}" />
  103. {% else %}
  104. <img class="badge_sidebar_image badge_sidebar_image_transparency"
  105. src = "{{ skill.icon_big }}" />
  106. {% endif %}
  107. <div class="badge_sidebar_title">
  108. {{ skill.name }}
  109. </div>
  110. {% endfor %}
  111. </div>
  112. {% endfor %}
  113. </li>
  114. </ul>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. {% endif %}
  120. {{ certificates_search_block }}
  121. <!-- BLOCK NOTICE -->
  122. {% if notice_block %}
  123. {{ display.collapse('notice', 'Notice'|get_lang, notice_block) }}
  124. {% endif %}
  125. <!-- BLOCK HELP -->
  126. {% if help_block %}
  127. {{ display.collapse('help', 'MenuGeneral'|get_lang, help_block, true) }}
  128. {% endif %}
  129. <!-- BLOCK LINKS NAVIGATION -->
  130. {% if navigation_links %}
  131. {{ display.collapseFor('navigation_sidebar', 'MainNavigation'|get_lang, navigation_links) }}
  132. {% endif %}
  133. {{ search_block }}
  134. {{ classes_block }}
  135. {% endif %}
  136. {% if plugin_menu_bottom %}
  137. {{ display.pluginSidebar('sidebar-bottom', plugin_menu_bottom) }}
  138. {% endif %}
  139. </div>
  140. </div>
  141. </div>
  142. <div class="container">
  143. <div class="row">
  144. <div class="col-md-12">
  145. {% if home_page_block %}
  146. <section id="homepage-home">
  147. {{ home_page_block }}
  148. </section>
  149. {% endif %}
  150. {% if section_name == 'section-mycampus' %}
  151. <div id="latest_blocks"></div>
  152. {% if announcements_block %}
  153. <article id="homepage-announcements">
  154. {{ announcements_block }}
  155. </article>
  156. {% endif %}
  157. <!-- HOT COURSE -->
  158. {% include 'layout/hot_courses.tpl'|get_template %}
  159. <!-- END HOT COURSE -->
  160. <div id="download-app" class="download-app">
  161. <ul class="links">
  162. <li>
  163. <a href="https://play.google.com/store/apps/details?id=org.ofaj.parkur" target="_blank">
  164. <img width="150px" src="{{ _p.web_css_theme }}images/googleplaystore.svg">
  165. </a>
  166. </li>
  167. <li>
  168. <a href="https://www.apple.com/fr/ios/app-store/" target="_blank">
  169. <img width="150px" src="{{ _p.web_css_theme }}images/applestore.svg">
  170. </a>
  171. </li>
  172. </ul>
  173. </div>
  174. <div id="latest_courses"></div>
  175. <!-- MESSAGE -->
  176. <section id="demo-home">
  177. <h2 class="section-title">{{ 'TestDemoTitle' | get_lang }} </h2>
  178. <div class="demostration">
  179. <a href="{{ _p.web }}web/page-de-dmo-francais" class="btn btn-primary btn-demo">
  180. {{ 'demo' | get_lang }}
  181. </a>
  182. </div>
  183. </section>
  184. <!-- CMS -->
  185. {#{% include template ~ "/layout/cms.tpl" %}#}
  186. <script>
  187. $(function () {
  188. $.ajax({
  189. url: "{{ _p.web_url }}{{ document_language }}-{{ document_language }}/cms/page/latest/3?_locale={{ document_language }}",
  190. success: function (data) {
  191. $('#latest_pages').html(data);
  192. }
  193. });
  194. $.ajax({
  195. url: "{{ _p.web_url }}{{ document_language }}-{{ document_language }}/cms/page/blocks/4?_locale={{ document_language }}",
  196. success: function (data) {
  197. $('#latest_blocks').html(data);
  198. }
  199. });
  200. $.ajax({
  201. url: "{{ _p.web_url }}{{ document_language }}-{{ document_language }}/cms/page/courses/3?_locale={{ document_language }}",
  202. success: function (data) {
  203. $('#latest_courses').html(data);
  204. }
  205. });
  206. });
  207. </script>
  208. <div id="latest_pages"></div>
  209. <!-- END CSS -->
  210. {% endif %}
  211. </div>
  212. </div>
  213. </div>
  214. {% if plugin_main_bottom %}
  215. {{ display.pluginPanel('main-bottom', plugin_main_bottom) }}
  216. {% endif %}
  217. {% endblock %}